singleincommoneyview-其它2销视图.sql 1.9 KB

123456789101112131415161718192021222324252627282930
  1. USE [db]
  2. GO
  3. /****** 对象: View [dbo].[singleincomemoneyview] 脚本日期: 05/27/2014 16:05:40 ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. ALTER VIEW [dbo].[singleincomemoneyview]
  9. AS SELECT
  10. dbo.singleincomemoney.*,
  11. dbo.singleincome.name, /* 其它2销名称 */
  12. dbo.singleincome.sale2type, /* 其它2销类型 */
  13. dbo.singleincome.renyuan3, /* 开单人 */
  14. dbo.singleincome.renyuan1 /* 客户 */
  15. FROM
  16. dbo.singleincomemoney INNER JOIN
  17. dbo.singleincome
  18. ON dbo.singleincomemoney.id = dbo.singleincome.id
  19. /* singleincomemoney表: /* 财务审核过的singleincome表记录,才会在这里出现 */
  20. [id] [nvarchar](50) NULL, /* 其它2销id */
  21. [money] [nvarchar](50) NULL, /* 其它2销收入金额 */
  22. [date] [nvarchar](50) NULL, /* 日期 */
  23. [clerk] [nvarchar](50) NULL, /* 经手人 */
  24. [paytype] [nvarchar](50) NULL, /* 支付方式 */
  25. [autoid] [int] IDENTITY(1,1) NOT NULL, /* 其它2销id */
  26. [financecheck] [nvarchar](10) NULL, /* 财务审核 */
  27. [time] [nvarchar](50) NULL, /* 时间 */
  28. [jdd] [nvarchar](50) NULL /* 接单点 */
  29. */