no message
This commit is contained in:
42
vw_bi_purchase_follow_up.sql
Normal file
42
vw_bi_purchase_follow_up.sql
Normal file
@@ -0,0 +1,42 @@
|
||||
-- View: public.vw_bi_purchase_follow_up
|
||||
|
||||
-- DROP VIEW public.vw_bi_purchase_follow_up;
|
||||
|
||||
CREATE OR REPLACE VIEW public.vw_bi_purchase_follow_up AS
|
||||
SELECT dpc."Contract Nb",
|
||||
dpc."Supplier",
|
||||
dpc."Contract Ref",
|
||||
dpc."Contract Date",
|
||||
dpc."Contract Status",
|
||||
dpc."Payment Terms",
|
||||
dpc."Currency",
|
||||
dpc."Weight Basis",
|
||||
dpc."Broker",
|
||||
dpc."Certification",
|
||||
dpc."Association",
|
||||
dpc."Crop",
|
||||
dpc."Tolerance Min %",
|
||||
dpc."Tolerance Max %",
|
||||
dpc."Inco Terms",
|
||||
dpc."Loading Place",
|
||||
dpc."Destination Place",
|
||||
dpc."Product",
|
||||
dpc."Delivery Period",
|
||||
fpc."Delivery Date From",
|
||||
fpc."Delivery DateTo",
|
||||
fpc."Quantity",
|
||||
fpc."In Transit Quantity",
|
||||
fpc."Dropship Quantity",
|
||||
fpc."Received Quantity",
|
||||
fpc."Price",
|
||||
fpc."Unit Price",
|
||||
fpc."Theoretical Quantity",
|
||||
fpc."Line Amount",
|
||||
fpc."Physical Quantity",
|
||||
fpc."Open Quantity",
|
||||
fpc."Instructed Quantity"
|
||||
FROM vw_bi_fct_purchase_physical_contract fpc
|
||||
JOIN vw_bi_dim_purchase_physical_contract dpc ON fpc."PurchaseLineId" = dpc."intPurchaseLineId";
|
||||
|
||||
ALTER TABLE public.vw_bi_purchase_follow_up
|
||||
OWNER TO postgres;
|
||||
Reference in New Issue
Block a user