Update v_analytics_contract_customer_discounts (#459)
* Initial commit * Rename view * Bump migration version
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
DROP VIEW IF EXISTS public.v_funnel_contract_customers;
|
||||||
|
CREATE OR REPLACE VIEW public.v_funnel_contract_customers
|
||||||
|
AS
|
||||||
|
|
||||||
|
SELECT contractcustomerid AS id,
|
||||||
|
companyname,
|
||||||
|
"delivery-company" AS delivery_companyname,
|
||||||
|
COALESCE(discount, 0) AS discount_percent,
|
||||||
|
country,
|
||||||
|
inserted,
|
||||||
|
updated
|
||||||
|
FROM contract_customers
|
||||||
|
ORDER BY 1;
|
||||||
|
|
||||||
|
GRANT SELECT ON TABLE public.v_funnel_contract_customers TO funnel;
|
||||||
Reference in New Issue
Block a user