-
Notifications
You must be signed in to change notification settings - Fork 1
/
accountSelect.sql
87 lines (87 loc) · 1.3 KB
/
accountSelect.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
SELECT
Id
,IsDeleted
,MasterRecordId
,Name
,Type
,ParentId
,BillingStreet
,BillingCity
,BillingState
,BillingPostalCode
,BillingCountry
,BillingLatitude
,BillingLongitude
,ShippingStreet
,ShippingCity
,ShippingState
,ShippingPostalCode
,ShippingCountry
,ShippingLatitude
,ShippingLongitude
,AccountNumber
,Industry
,AnnualRevenue
,NumberOfEmployees
,Ownership
,TickerSymbol
,Description
,Site
,CurrencyIsoCode
,OwnerId
,CreatedDate
,CreatedById
,LastModifiedDate
,LastModifiedById
,SystemModstamp
,DunsNumber
,NaicsCode
,NaicsDesc
,Sales_Team_Assigned__c
,VAT_Number__c
,Primary_US_SIC_Code__c
,Doing_Business_As__c
,Latest_Annual_Revenue__c
,Revenue__c
,Net_Income__c
,Net_Income_Growth__c
,Employees_at_this_Location__c
,US_Ticker_Symbol__c
,CSR_Date__c
,Region__c
,Oracle_AccountID__c
,SFDC_Account_ID__c
,Address1_Line_1__c
,Address1_Line_2__c
,Address1_Line_3__c
,City1__c
,State1__c
,Zip_Code1__c
,Country1__c
,Address2_Line_1__c
,Address2_Line_2__c
,Address2_Line_3__c
,City2__c
,Country2__c
,State2__c
,Zip_Code2__c
,Office__c
,HooversId__c
,D_U_N_S__c
,Total_Invoice_Amount__c
,Terms_Of_Sale__c
,Sales_Channel__c
,Oracle_PartyID__c
,K_Date__c
,Prior_Sales_Team__c
,K_Information__c
,Sales_Team_Name__c
,Acc18ID__c
,ORS_Ownership_Date__c
,ORS__c
,Fortune_500__c
FROM
Account
WHERE
CreatedDate >= :Start
and CreatedDate <= :End