First create solution
This commit is contained in:
+53
@@ -0,0 +1,53 @@
|
||||
USE [SISTEST]
|
||||
GO
|
||||
|
||||
/****** Object: View [dbo].[vv_PartnerConnectionInfoConnect] Script Date: 05/18/2012 09:19:21 ******/
|
||||
SET ANSI_NULLS ON
|
||||
GO
|
||||
|
||||
SET QUOTED_IDENTIFIER ON
|
||||
GO
|
||||
|
||||
|
||||
|
||||
|
||||
CREATE view [dbo].[vv_PartnerConnectionInfoConnect]
|
||||
as
|
||||
select
|
||||
t1.MainType MainType,
|
||||
t1.Oid Oid,
|
||||
t1.CustomersFrom CustomersFrom,
|
||||
t1.Customers Customers,
|
||||
t1.PartnerType PartnerType,
|
||||
t1.ConnectInfo ConnectInfo,
|
||||
t1.CurrencyName CurrencyName,
|
||||
t1.DebitTotalHUF DebitTotalHUF,
|
||||
t1.CreditTotalHUF CreditTotalHUF,
|
||||
t1.DebitTotalDEV DebitTotalDEV,
|
||||
t1.CreditTotalDEV CreditTotalDEV,
|
||||
t1.BallanceHUF BallanceHUF,
|
||||
t1.BallanceDEV BallanceDEV,
|
||||
t1.ShortName ShortName,
|
||||
t1.Description Description,
|
||||
t1.DateExecution DateExecution,
|
||||
t1.DateCreated DateCreated,
|
||||
t1.DatePayment DatePayment,
|
||||
t1.DelayedDay DelayedDay,
|
||||
t1.DelayedRange DelayedRange,
|
||||
t1.CurrencyName_Account CurrencyName_Account,
|
||||
t1.AmountHUF_Account AmountHUF_Account,
|
||||
t1.AmountDEV_Account AmountDEV_Account,
|
||||
t1.DateExecution_Account DateExecution_Account,
|
||||
t2.BallanceState BallanceState,
|
||||
t2.BallanceRateDiff 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
|
||||
|
||||
|
||||
|
||||
GO
|
||||
|
||||
Reference in New Issue
Block a user