Files
Nuvolar/Nuvolar.Module/BusinessObjects/SIS/SQLscripts/POSTGRESQL/vv_PartnerConnectionInfoConnect.sql
T
2017-03-08 11:21:27 +01:00

36 lines
1.3 KiB
SQL

select
t1."MainType" AS "MainType",
t1."Oid" AS "Oid",
t1."CustomersFrom" AS "CustomersFrom",
t1."Customers" AS "Customers",
t1."PartnerType" AS "PartnerType",
t1."ConnectInfo" AS "ConnectInfo",
t1."CurrencyName" AS "CurrencyName",
t1."DebitTotalHUF" AS "DebitTotalHUF",
t1."CreditTotalHUF" AS "CreditTotalHUF",
t1."DebitTotalDEV" AS "DebitTotalDEV",
t1."CreditTotalDEV" AS "CreditTotalDEV",
t1."BallanceHUF" AS "BallanceHUF",
t1."BallanceDEV" AS "BallanceDEV",
t1."ShortName" AS "ShortName",
t1."Description" AS "Description",
t1."DateExecution" AS "DateExecution",
t1."DateCreated" AS "DateCreated",
t1."DatePayment" AS "DatePayment",
t1."DelayedDay" AS "DelayedDay",
t1."DelayedRange" AS "DelayedRange",
t1."CurrencyName_Account" AS "CurrencyName_Account",
t1."AmountHUF_Account" AS "AmountHUF_Account",
t1."AmountDEV_Account" AS "AmountDEV_Account",
t1."DateExecution_Account" AS "DateExecution_Account",
t2."BallanceState" AS "BallanceState",
t2."BallanceRateDiff" AS "BallanceRateDiff"
from "vv_PartnerConnectionInfoDetail" t1
join "vv_PartnerConnectionInfoDetailGroup" t2 on
t1."CustomersFrom"=t2."CustomersFrom" and
t1."Customers"=t2."Customers" and
t1."PartnerType"=t2."PartnerType" and
t1."ConnectInfo"=t2."ConnectInfo"