xtract.Customer.sql 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. SET QUOTED_IDENTIFIER ON
  2. GO
  3. SET ANSI_NULLS ON
  4. GO
  5. CREATE VIEW [xtract].[Customer] AS
  6. SELECT [timestamp]
  7. , [No_]
  8. , [Name]
  9. -- , [Search Name]
  10. -- , [Name 2]
  11. -- , [Address]
  12. -- , [Address 2]
  13. -- , [City]
  14. -- , [Contact]
  15. -- , [Phone No_]
  16. -- , [Telex No_]
  17. -- , [Document Sending Profile]
  18. -- , [Our Account No_]
  19. -- , [Territory Code]
  20. -- , [Global Dimension 1 Code]
  21. -- , [Global Dimension 2 Code]
  22. -- , [Chain Name]
  23. -- , [Budgeted Amount]
  24. -- , [Credit Limit (LCY)]
  25. -- , [Customer Posting Group]
  26. -- , [Currency Code]
  27. -- , [Customer Price Group]
  28. -- , [Language Code]
  29. -- , [Statistics Group]
  30. -- , [Payment Terms Code]
  31. -- , [Fin_ Charge Terms Code]
  32. -- , [Salesperson Code]
  33. -- , [Shipment Method Code]
  34. -- , [Shipping Agent Code]
  35. -- , [Place of Export]
  36. -- , [Invoice Disc_ Code]
  37. -- , [Customer Disc_ Group]
  38. -- , [Country_Region Code]
  39. -- , [Collection Method]
  40. -- , [Amount]
  41. -- , [Blocked]
  42. -- , [Invoice Copies]
  43. -- , [Last Statement No_]
  44. -- , [Print Statements]
  45. -- , [Bill-to Customer No_]
  46. -- , [Priority]
  47. -- , [Payment Method Code]
  48. -- , [Last Date Modified]
  49. -- , [Application Method]
  50. -- , [Prices Including VAT]
  51. -- , [Location Code]
  52. -- , [Fax No_]
  53. -- , [Telex Answer Back]
  54. -- , [VAT Registration No_]
  55. -- , [Combine Shipments]
  56. , [Gen_ Bus_ Posting Group]
  57. -- , [Picture]
  58. -- , [GLN]
  59. -- , [Post Code]
  60. -- , [County]
  61. -- , [E-Mail]
  62. -- , [Home Page]
  63. -- , [Reminder Terms Code]
  64. -- , [No_ Series]
  65. -- , [Tax Area Code]
  66. -- , [Tax Liable]
  67. -- , [VAT Bus_ Posting Group]
  68. -- , [Reserve]
  69. -- , [Block Payment Tolerance]
  70. -- , [IC Partner Code]
  71. -- , [Prepayment _]
  72. -- , [Partner Type]
  73. -- , [Preferred Bank Account]
  74. -- , [Cash Flow Payment Terms Code]
  75. -- , [Primary Contact No_]
  76. -- , [Responsibility Center]
  77. -- , [Shipping Advice]
  78. -- , [Shipping Time]
  79. -- , [Shipping Agent Service Code]
  80. -- , [Service Zone Code]
  81. -- , [Allow Line Disc_]
  82. -- , [Base Calendar Code]
  83. -- , [Copy Sell-to Addr_ to Qte From]
  84. -- , [Home Phone No_]
  85. -- , [Mobile Phone No_]
  86. -- , [Service Advisor No_]
  87. -- , [Branch Posting Group]
  88. -- , [Address No_]
  89. -- , [Date of Update]
  90. -- , [Time of Update]
  91. -- , [Updated by User ID]
  92. -- , [Update Company]
  93. , [Last Name]
  94. , [First Name]
  95. -- , [Address Salutation Code]
  96. -- , [Letter Salutation Code]
  97. -- , [Bulk Customer No_]
  98. -- , [Title Code]
  99. -- , [Customer Type]
  100. -- , [Labor Price Group]
  101. -- , [Ext_ Service Price Group]
  102. -- , [Vehicle Sales Price Group]
  103. -- , [Item Sales Price Group]
  104. -- , [Employee No_]
  105. -- , [Home Fax No_]
  106. -- , [Home Mobile Phone No_]
  107. -- , [Home E-Mail]
  108. -- , [Home Page 2]
  109. -- , [Date 1]
  110. -- , [Date 2]
  111. -- , [Extra Code 1]
  112. -- , [Extra Code 2]
  113. -- , [Extra Code 3]
  114. -- , [Text 1]
  115. -- , [Text 2]
  116. -- , [Text 3]
  117. -- , [Text 4]
  118. -- , [Text 5]
  119. -- , [Text 6]
  120. -- , [Distribute Blocked Field]
  121. -- , [Show Discount]
  122. -- , [Inv_ Discount _]
  123. -- , [Option Sales Price Group]
  124. , [Customer Group Code]
  125. -- , [Add Service Surcharges]
  126. -- , [Creation Date]
  127. -- , [Respect Inv_ Buffer Quantity]
  128. -- , [Transfer Method]
  129. -- , [Partner Code]
  130. -- , [Proposal for Alternative Part]
  131. -- , [Date of Birth]
  132. -- , [Disable Applies-to Doc_ No_]
  133. -- , [EU Business Customer]
  134. -- , [Search Result Ranking]
  135. -- , [Action triggered by Card Page]
  136. -- , [Disable for Requisition]
  137. -- , [Messaging App ID]
  138. -- , [Messaging App Type]
  139. -- , [Message Type]
  140. -- , [Message Notification]
  141. -- , [Message Notification App Type]
  142. -- , [OPP DD Follow Up Letter Code]
  143. -- , [OPP Association No_]
  144. -- , [OPP Association Sort Code]
  145. -- , [OPP Balance Acknowledgmt_ Code]
  146. -- , [OPP Last Posting at]
  147. -- , [OPP Bal_ Ack_ Shipping Address]
  148. -- , [OPP Bal_ Ack_ Shipping Type]
  149. -- , [OPP Advice Shipping Type]
  150. -- , [OPP Advice Shipping Address]
  151. -- , [Traffic Light]
  152. -- , [Traffic Light Value]
  153. -- , [Template Code]
  154. -- , [Type]
  155. -- , [Apply Remaining Cust_ Amount]
  156. -- , [Consider Price Calculation]
  157. -- , [Credit Limit After Sales (LCY)]
  158. -- , [Credit Limit Vehicles (LCY)]
  159. -- , [Main Area Filter]
  160. -- , [Disable Remarks]
  161. -- , [Tour Code]
  162. -- , [eDoc_ Exchange Profile]
  163. -- , [OPP Installment Template]
  164. -- , [OPP Installment Template Type]
  165. -- , [OPP Value Date Calculation]
  166. -- , [VAT Calculation Logic]
  167. , [Client_DB]
  168. FROM [GC_TRANSIT_ARI].[import].[Customer]
  169. GO
  170. SET QUOTED_IDENTIFIER OFF
  171. GO
  172. SET ANSI_NULLS OFF
  173. GO
  174. GO