0

I want to create indexed view, any help would be appreciated. I have this:

ALTER VIEW vwCF WITH SCHEMABINDING
as  
SELECT
ftt.FTSName
,cf.FTSTypeID
,ftt.SortOrder
,cf.SecTypeID
,st.SecTypeName
,st.SortOrder
IssuanceDate
,Issuance
,Principal
,Interest
,FlowAmounts
,Net
 FROM dbo.CashFlow AS cf
 INNER JOIN dbo.FinancialType AS ftt ON cf.FTSTypeID = ftt.FTSTypeID
 INNER JOIN dbo.SecType AS st ON cf.SecTypeID = st.SecTypeID
 Go

If you have any question let me know...thanks

4

1 回答 1

0

错过了昏迷,看

发行日期

应该

,发行日期


在前面添加表别名:

,tbl.IssuanceDate
,tbl.Issuance
,tbl.Principal
,tbl.Interest
,tbl.FlowAmounts
,tbl.Net

tbl上面的信息分配的表在哪里。

(字段可能会有所不同,请检查!)。

于 2014-01-15T21:20:18.563 回答