INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2975, N'TRSH81', N'SHAAM HOUSEHOLD APPLIANCES', N'SHAAM HOUSEHOLD APPLIANCES', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2976, N'TRSH82', N'SHABAB AL MADEENAH SUPERMARKET LLC BR.', N'SHABAB AL MADEENAH SUPERMARKET LLC BR.', 15, 18, 97, 3, 0, 1, 74, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2977, N'TRSH83', N'SHAMS AL SHIFA ELECT. DEVICES & MOBILE PHONE TRADING', N'SHAMS AL SHIFA ELECT. DEVICES & MOBILE PHONE TRADING', 35, 19, 20, 5, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2978, N'TRSH83A', N'SHAMS AL SHIFA ELECT. DEVICES & MOBILE PHONE TRADING', N'SHAMS AL SHIFA ELECT. DEVICES & MOBILE PHONE TRADING', 35, 19, 20, 5, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2979, N'TRSH84', N'SHARAF DG LLC (AL WASL)', N'SHARAF DG LLC (AL WASL)', 139, 17, 110, 3, 1, 1, 75, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2980, N'TRSH85', N'SHAKLAN 2 SUPERMARKET L.L.C', N'SHAKLAN 2 SUPERMARKET L.L.C', 15, 18, 22, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2981, N'TRSH85A', N'SHAKLAN 2 SUPERMARKET L.L.C', N'SHAKLAN 2 SUPERMARKET L.L.C', 15, 18, 22, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2982, N'TRSH86', N'SHAHAB AL NAWA HOUSEHOLD', N'SHAHAB AL NAWA HOUSEHOLD', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2983, N'TRSH87', N'SHAHEEN ELECTRONICS', N'SHAHEEN ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2984, N'TRSH87E', N'SHAHEEN ELECTRONICS', N'SHAHEEN ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2985, N'TRSH88', N'AL SHAFAR PROPERTIES L.L.C', N'AL SHAFAR PROPERTIES L.L.C', 32, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2986, N'TRSH89', N'SHAMEENA TRADING LLC', N'SHAMEENA TRADING LLC', 13, 19, 20, 9, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2987, N'TRSH90', N'SHAH TRADING & IMPORTS LLC', N'SHAH TRADING & IMPORTS LLC', 13, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2988, N'TRSH90A', N'SHAH TRADING & IMPORTS LLC', N'SHAH TRADING & IMPORTS LLC', 13, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2989, N'TRSH91', N'AL SHIRAWI CONTRACTING COMPANY LLC', N'AL SHIRAWI CONTRACTING COMPANY LLC', 41, 31, 21, 3, 0, 1, 69, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2990, N'TRSI02', N'AL SINAM ELECTRONICS', N'AL SINAM ELECTRONICS', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2991, N'TRSI02W', N'AL SINAM ELECTRONICS', N'AL SINAM ELECTRONICS', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2992, N'TRSI02WW', N'AL SINNAM ELECTRONICS DEVICES TRADING', N'AL SINNAM ELECTRONICS DEVICES TRADING', 33, 18, 22, 5, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2993, N'TRSI07', N'SILVER RACK GENERAL TRADING', N'SILVER RACK GENERAL TRADING', 13, 19, 20, 3, 0, 1, 60, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2994, N'TRSI08', N'SIGMA ENGINEERING LLC', N'SIGMA ENGINEERING LLC', 36, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2995, N'TRSI11', N'SILVER ROCK TRADING', N'SILVER ROCK TRADING', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2996, N'TRSI15', N'SIGMA TECH TRADING', N'SIGMA TECH TRADING', 13, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2997, N'TRSK01', N'SKY EMIRATES  ELECTRONICS  ABUDAHBI', N'SKY EMIRATES  ELECTRONICS  ABUDAHBI', 15, 18, 22, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2998, N'TRSO01', N'SOLAR ELECTRONICS', N'SOLAR ELECTRONICS', 13, 19, 20, 5, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (2999, N'TRSO01E', N'SOLAR ELECTRONICS', N'SOLAR ELECTRONICS', 13, 19, 20, 5, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3000, N'TRSO02', N'SOUQ AL MADEENA', N'SOUQ AL MADEENA', 15, 18, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3001, N'TRSO02A', N'SOUQ AL MADEENA', N'SOUQ AL MADEENA', 15, 18, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3002, N'TRSO03E', N'AL SOWAEI TRDG. EST.', N'AL SOWAEI TRDG. EST.', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3003, N'TRSO06', N'SOUTH LAND TRADING', N'SOUTH LAND TRADING', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3004, N'TRSO07', N'SOOHEL ELECTRONICS TRADING (L.L.C.)', N'SOOHEL ELECTRONICS TRADING (L.L.C.)', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3005, N'TRSP01', N'SPRING SUPER MARKET', N'SPRING SUPER MARKET', 15, 19, 20, 3, 0, 1, 74, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3006, N'TRSP02', N'SPLASH GULF LLC', N'SPLASH GULF LLC', 139, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3007, N'TRSP03', N'S.P.JAIN CENTER OF MANAGEMENT', N'S.P.JAIN CENTER OF MANAGEMENT', 124, 19, 20, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3008, N'TRSP04', N'SPRING CRESCENT TRADING', N'SPRING CRESCENT TRADING', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3009, N'TRSP05', N'SPRING WATER', N'SPRING WATER', 32, 146, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3010, N'TRSP06', N'SPRING CRESCENT ELECTRONICS & MOBILE TRADING (DIP)', N'SPRING CRESCENT ELECTRONICS & MOBILE TRADING (DIP)', 13, 19, 22, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3011, N'TRSP06A', N'SPRING CRESCENT ELECTRONICS & MOBILE TRADING (DIP)', N'SPRING CRESCENT ELECTRONICS & MOBILE TRADING (DIP)', 13, 19, 22, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3012, N'TRST09', N'STAR GIFT SHOP', N'STAR GIFT SHOP', 13, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3013, N'TRST10', N'STAR CHOICE TRADING', N'STAR CHOICE TRADING', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3014, N'TRFA43', N'AL FANOON TRADING', N'AL FANOON TRADING', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3015, N'TRFA43A', N'AL FANOON TRADING', N'AL FANOON TRADING', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3016, N'TRFA45', N'FARAZ ELECTRONICS', N'FARAZ ELECTRONICS', 13, 19, 20, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3017, N'TRFA46', N'FAJER AL MADINA SUPERMARKET', N'FAJER AL MADINA SUPERMARKET', 13, 19, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3018, N'TRFA46A', N'FAJER AL MADINA SUPERMARKET', N'FAJER AL MADINA SUPERMARKET', 13, 19, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3019, N'TRFA47', N'FAMILIES SUPRMARKET CO.LLC', N'FAMILIES SUPRMARKET CO.LLC', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3020, N'TRFA47E', N'FAMILIES SUPRMARKET CO.LLC', N'FAMILIES SUPRMARKET CO.LLC', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3021, N'TRFA48', N'FATHILA TECHNOLOGY L.L.C', N'FATHILA TECHNOLOGY L.L.C', 35, 19, 21, 3, 1, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3022, N'TRFA49', N'AL FARAA GENERAL CONTRACTING CO L.L.C', N'AL FARAA GENERAL CONTRACTING CO L.L.C', 32, 31, 21, 4, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3023, N'TRFA50', N'FAMILIES CENTRE GENERAL TRADING L.L.C', N'FAMILIES CENTRE GENERAL TRADING L.L.C', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3024, N'TRFA50E', N'FAMILIES CENTRE GENERAL TRADING L.L.C', N'FAMILIES CENTRE GENERAL TRADING L.L.C', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3025, N'TRFA60E', N'AL FADEL ELECTRONICS', N'AL FADEL ELECTRONICS', 42, 18, 105, 8, 0, 1, 51, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3026, N'TRFA61', N'FAHIM RASHED ELECTRONICS EQUIPMENT TRADING EST.', N'FAHIM RASHED ELECTRONICS EQUIPMENT TRADING EST.', 13, 19, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3027, N'TRFA62', N'FATHIMA SHOPPING CENTRE L.L.C (AJMAN)', N'FATHIMA SHOPPING CENTRE L.L.C (AJMAN)', 13, 18, 86, 10, 1, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3028, N'TRFA63', N'FATHIMA SHOPPING CENTRE LLC (FUJ)', N'FATHIMA SHOPPING CENTRE LLC (FUJ)', 13, 18, 86, 9, 1, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3029, N'TRFA64', N'FAMILIES STARS HYPERMARKET LLC', N'FAMILIES STARS HYPERMARKET LLC', 13, 19, 20, 5, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3030, N'TRFA64A', N'FAMILIES STARS HYPERMARKET LLC', N'FAMILIES STARS HYPERMARKET LLC', 13, 19, 20, 5, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3031, N'TRFI01', N'FIRST SAFEER CENTRE (KHABISI ALIN)', N'FIRST SAFEER CENTRE (KHABISI ALIN)', 15, 17, 109, 4, 1, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3032, N'TRFI01W', N'FIRST SAFEER CENTRE (KHABISI ALIN)', N'FIRST SAFEER CENTRE (KHABISI ALIN)', 15, 17, 109, 4, 1, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3033, N'TRFL01', N'FLOW TRADING L.L.C.', N'FLOW TRADING L.L.C.', 136, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3034, N'TRFO03', N'FORTUNE RESIDENCE HOTEL APARTMENTS', N'FORTUNE RESIDENCE HOTEL APARTMENTS', 132, 18, 20, 9, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3035, N'TRFR04', N'FREEDOM ELECTRTONICS', N'FREEDOM ELECTRTONICS', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3036, N'TRFR05', N'AL FREEJ BAZAAR', N'AL FREEJ BAZAAR', 13, 19, 20, 4, 0, 1, 60, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3037, N'TRFR05A', N'AL FREEJ BAZAAR', N'AL FREEJ BAZAAR', 13, 19, 20, 4, 0, 1, 60, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3038, N'TRFR07', N'FRESH & MORE SUPER MARKET LLC.', N'FRESH & MORE SUPER MARKET LLC.', 15, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3039, N'TRFR07E', N'FRESH & MORE SUPER MARKET LLC', N'FRESH & MORE SUPER MARKET LLC', 15, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3040, N'TRGA02', N'GAINT SUPERMARKET & TRADING', N'GAINT SUPERMARKET & TRADING', 15, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3041, N'TRGA03', N'GALAXY SUPERMARKET L.L.C', N'GALAXY SUPERMARKET L.L.C', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3042, N'TRGA03E', N'GALAXY SUPERMARKET L.L.C', N'GALAXY SUPERMARKET L.L.C', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3043, N'TRGD01', N'G D T', N'G D T', 133, 17, 22, 3, 1, 1, 74, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3044, N'TRGE03', N'GEANT - GARDENS SHOPPING MALL', N'GEANT - GARDENS SHOPPING MALL', 42, 17, 87, 3, 1, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3045, N'TRGE03E', N'GEANT - GARDENS SHOPPING MALL', N'GEANT - GARDENS SHOPPING MALL', 42, 17, 87, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3046, N'TRGE05', N'GENERAL MEDICAL CENTRE', N'GENERAL MEDICAL CENTRE', 131, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3047, N'TRGE06', N'GEORGE V LEISURE & HOSPITALITY LLC', N'GEORGE V LEISURE & HOSPITALITY LLC', 32, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3048, N'TRGE10', N'GERMAN GENERAL MAINTENANCE SERVICE COMPANY LLC (GEMACO INTERIORS)', N'GERMAN GENERAL MAINTENANCE SERVICE COMPANY LLC (GEMACO INTERIORS)', 36, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3049, N'TRGE10E', N'GERMAN GENERAL MAINTENANCE SERVICE COMPANY LLC (GEMACO INTERIORS)', N'GERMAN GENERAL MAINTENANCE SERVICE COMPANY LLC (GEMACO INTERIORS)', 36, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3050, N'TRGE11', N'GENERAL DIRECTORATE OF RESIDENCY AND FOREIGNERSS-DUBAI', N'GENERAL DIRECTORATE OF RESIDENCY AND FOREIGNERSS-DUBAI', 128, 19, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3051, N'TRGG01', N'GIFT GALLERY CENTRE', N'GIFT GALLERY CENTRE', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3052, N'TRGG01E', N'GIFT GALLERY CENTRE', N'GIFT GALLERY CENTRE', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3053, N'TRGH01', N'AL GHAFARI ELECTRONICS EST.', N'AL GHAFARI ELECTRONICS EST.', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3054, N'TRGH01E', N'AL GHAFARI ELECTRONICS EST.', N'AL GHAFARI ELECTRONICS EST.', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3055, N'TRGH09', N'AL GHADEER TRADING', N'AL GHADEER TRADING', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3056, N'TRGH10', N'AL GHAD AL MUSHRIK ELECTRONICS', N'AL GHAD AL MUSHRIK ELECTRONICS', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3057, N'TRGH10E', N'AL GHAD AL MUSHRIK ELECTRONICS', N'AL GHAD AL MUSHRIK ELECTRONICS', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3058, N'TRGH10W', N'AL GHAD AL MUSHRIK ELECTRONICS', N'AL GHAD AL MUSHRIK ELECTRONICS', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3059, N'TRGH14', N'AL GHUROOB TRDG EST.', N'AL GHUROOB TRDG EST.', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3060, N'TRGH15', N'AL GHAZAL MOBILE PHONES TRADING', N'AL GHAZAL MOBILE PHONES TRADING', 13, 19, 22, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3061, N'TRGH15A', N'AL GHAZAL MOBILE PHONES TRADING', N'AL GHAZAL MOBILE PHONES TRADING', 13, 19, 22, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
GO
print 'Processed 1800 total records'
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3062, N'TRGH16', N'AL GHURAIR CENTRE LLC', N'AL GHURAIR CENTRE LLC', 32, 31, 21, 3, 0, 1, 69, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3063, N'TRGI01', N'GIFTS STAR TRADING', N'GIFTS STAR TRADING', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3064, N'TRGI02', N'GIFT VILLAGE TRADING', N'GIFT VILLAGE TRADING', 13, 19, 20, 3, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3065, N'TRGI02E', N'GIFT VILLAGE TRADING', N'GIFT VILLAGE TRADING', 13, 19, 20, 3, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3066, N'TRGI03', N'GIFT GARDEN', N'GIFT GARDEN', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3067, N'TRGI03E', N'GIFT GARDEN', N'GIFT GARDEN', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3068, N'TRGI04', N'GIFT MARKETS LLC', N'GIFT MARKETS LLC', 32, 17, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3069, N'TRGI04E', N'GIFT MARKETS LLC', N'GIFT MARKETS LLC', 32, 17, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3070, N'TRGI05', N'GIFT CITY- ALAIN', N'GIFT CITY- ALAIN', 35, 19, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3071, N'TRGI05E', N'GIFT CITY- ALAIN', N'GIFT CITY- ALAIN', 35, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3072, N'TRGI06W', N'GIFTLAND CENTER LLC', N'GIFTLAND CENTER LLC', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3073, N'TRGI50', N'GIFT LAND CENTER - DEIRA', N'GIFT LAND CENTER - DEIRA', 121, 18, 105, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3074, N'TRGL02', N'GLAXO SMITHKLINE', N'GLAXO SMITHKLINE', 130, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3075, N'TRGO03', N'GOLDEN SPIKE SUPERMARKET', N'GOLDEN SPIKE SUPERMARKET', 15, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3076, N'TRGO03A', N'GOLDEN SPIKE SUPERMARKET', N'GOLDEN SPIKE SUPERMARKET', 15, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3077, N'TRGO04', N'GOLDEN ELECTRONICS', N'GOLDEN ELECTRONICS', 13, 19, 20, 8, 0, 1, 72, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3078, N'TRGO05', N'GOLDEN STAR ELECTRONICS', N'GOLDEN STAR ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3079, N'TRGO05E', N'GOLDEN STAR ELECTRONICS', N'GOLDEN STAR ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3080, N'TRGO09', N'GOLDEN GULF PALACE', N'GOLDEN GULF PALACE', 13, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3081, N'TRGO09A', N'GOLDEN GULF PALACE', N'GOLDEN GULF PALACE', 13, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3082, N'TRGO11', N'GOLDEN LINE ELETRONICS STORE', N'GOLDEN LINE ELETRONICS STORE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3083, N'TRGO11A', N'GOLDEN LINE ELETRONICS STORE', N'GOLDEN LINE ELETRONICS STORE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3084, N'TRGO12', N'GOLDEN AGE ELECTRONICS', N'GOLDEN AGE ELECTRONICS', 13, 19, 20, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3085, N'TRGO12A', N'GOLDEN AGE ELECTRONICS', N'GOLDEN AGE ELECTRONICS', 13, 19, 20, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3086, N'TRGO13', N'GOLDEN TEXTILE AND DEPARTMENT STORE', N'GOLDEN TEXTILE AND DEPARTMENT STORE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3087, N'TRGO13E', N'GOLDEN TEXTILE AND DEPARTMENT STORE', N'GOLDEN TEXTILE AND DEPARTMENT STORE', 13, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3088, N'TRGO14', N'GOLDEN READYMIX LLC', N'GOLDEN READYMIX LLC', 32, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3089, N'TRGR01', N'GRAND MART GENERAL TRADING (L.L.C.)', N'GRAND MART GENERAL TRADING (L.L.C.)', 13, 19, 20, 3, 0, 1, 74, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3090, N'TRGR01E', N'GRAND MART GENERAL TRADING (L.L.C.)', N'GRAND MART GENERAL TRADING (L.L.C.)', 13, 19, 20, 3, 0, 1, 74, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3091, N'TRGR02', N'GREEN SQUARE ELECT. DEVICES TRADING', N'GREEN SQUARE ELECT. DEVICES TRADING', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3092, N'TRGR03', N'GRAPHICS INTERNATIONAL', N'GRAPHICS INTERNATIONAL', 13, 19, 20, 3, 0, 1, 46, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3093, N'TRGR04', N'GREEN MART SUPERMARKET L.L.C', N'GREEN MART SUPERMARKET L.L.C', 15, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3094, N'TRGR05', N'GREEN HOUSE CENTRE', N'GREEN HOUSE CENTRE', 35, 19, 20, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3095, N'TRGR06', N'GREEN HOUSE SPORT L.L.C', N'GREEN HOUSE SPORT L.L.C', 33, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3096, N'TRGR07', N'REGENCY TRADING LLC', N'REGENCY TRADING LLC', 121, 17, 90, 3, 1, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3097, N'TRGR07E', N' REGENCY TRADING LLC', N' REGENCY TRADING LLC', 121, 17, 90, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3098, N'TRGR08', N'GRAND MINI MALL', N'GRAND MINI MALL', 15, 17, 90, 3, 1, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3099, N'TRGR08E', N'GRAND MINI MALL', N'GRAND MINI MALL', 15, 17, 90, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3100, N'TRGR09A', N'GRAND HYPER MARKET', N'GRAND HYPER MARKET', 42, 17, 90, 3, 1, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3101, N'TRGR10', N'GREEN SQUARE ELECT. DEVICES TR.', N'GREEN SQUARE ELECT. DEVICES TR.', 13, 19, 20, 5, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3102, N'TRGR10E', N'GREEN SQUARE ELECT. DEVICES TR.', N'GREEN SQUARE ELECT. DEVICES TR.', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3103, N'TRGR11', N'GRAND CITY GENERAL TRADING', N'GRAND CITY GENERAL TRADING', 13, 19, 20, 10, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3104, N'TRGR11A', N'GRAND CITY GENERAL TRADING', N'GRAND CITY GENERAL TRADING', 13, 19, 20, 10, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3105, N'TRGR12', N'GRAND HYPER MARKET AL KHAIL MALL', N'GRAND HYPER MARKET AL KHAIL MALL', 42, 17, 90, 3, 1, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3106, N'TRGR12E', N'GRAND HYPER MARKET AL KHAIL MALL', N'GRAND HYPER MARKET AL KHAIL MALL', 42, 17, 90, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3107, N'TRGR13', N'GRAND CITY HYPER MARKET', N'GRAND CITY HYPER MARKET', 42, 17, 90, 3, 1, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3108, N'TRGR13E', N'GRAND CITY HYPER MARKET', N'GRAND CITY HYPER MARKET', 42, 17, 90, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3109, N'TRGR14', N'GREEN SQUARE ELECTRICAL EQUIPMENT TRADING LLC', N'GREEN SQUARE ELECTRICAL EQUIPMENT TRADING LLC', 13, 19, 20, 3, 0, 1, 71, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3110, N'TRGR15', N'GREEN BRANCH EST.', N'GREEN BRANCH EST.', 13, 19, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3111, N'TRGS01', N'GSS INTERNATIONAL TRADING L.L.C.', N'GSS INTERNATIONAL TRADING L.L.C.', 35, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3112, N'TRGTXCAS', N'GITEX CASH CUSTOMER', N'GITEX CASH CUSTOMER', 32, 146, 89, 3, 0, 1, 85, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3113, N'TRGTXCC', N'GITEX - CREDIT CARD CUSTOMER', N'GITEX - CREDIT CARD CUSTOMER', 32, 146, 89, 3, 0, 1, 85, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3114, N'TRGTXGFT', N'GITEX - MISC. GIFTS', N'GITEX - MISC. GIFTS', 32, 146, 89, 3, 0, 1, 85, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3115, N'TRGTXHD', N'GITEX - HOME DELIVERY CUSTOMER', N'GITEX - HOME DELIVERY CUSTOMER', 32, 146, 89, 3, 0, 1, 85, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3116, N'TRGU01', N'GULF MECHANICS', N'GULF MECHANICS', 14, 31, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3117, N'TRGU02', N'GURJAR INTERNATIONAL', N'GURJAR INTERNATIONAL', 35, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3118, N'TRGU03', N'GULF PEARL ELECTRONICS', N'GULF PEARL ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3119, N'TRGU04', N'GULF STORE', N'GULF STORE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3120, N'TRGU04A', N'GULF STORE', N'GULF STORE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3121, N'TRGU10', N'GULF ELECTRIC STORES', N'GULF ELECTRIC STORES', 13, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3122, N'TRGU10A', N'GULF ELECTRIC STORES', N'GULF ELECTRIC STORES', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3123, N'TRGU11', N'GULF OASIS ELECTRONICS CO LLC', N'GULF OASIS ELECTRONICS CO LLC', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3124, N'TRGU12', N'GUANG SHA MIDDLE EAST CONSTRUCTION L.L.C', N'GUANG SHA MIDDLE EAST CONSTRUCTION L.L.C', 36, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3125, N'TRHA02', N'AL HAMIDIYAH TRADING', N'AL HAMIDIYAH TRADING', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3126, N'TRHA03', N'HAYATH CENTRE', N'HAYATH CENTRE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3127, N'TRHA03A', N'HAYATH CENTRE', N'HAYATH CENTRE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3128, N'TRHA04', N'HAPPY LIFE SUPERMARKET', N'HAPPY LIFE SUPERMARKET', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3129, N'TRHA04E', N'HAPPY LIFE SUPERMARKET', N'HAPPY LIFE SUPERMARKET', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3130, N'TRHA05', N'HAQEEQAT STORES & BROS', N'HAQEEQAT STORES & BROS', 13, 19, 20, 5, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3131, N'TRHA06', N'HASSAN ZAMANI', N'HASSAN ZAMANI', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3132, N'TRHA06E', N'HASSAN ZAMANI', N'HASSAN ZAMANI', 13, 19, 20, 3, 0, 1, 51, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3133, N'TRHA07', N'HAJI ZAINAL & ABBAS QUAIDI TRDG. CO.', N'HAJI ZAINAL & ABBAS QUAIDI TRDG. CO.', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3134, N'TRHA07W', N'HAIMA ELECTRONICS', N'HAIMA ELECTRONICS', 32, 19, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3135, N'TRHA08', N'HALEEMA TRADING EST.', N'HALEEMA TRADING EST.', 13, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3136, N'TRHA08E', N'HALEEMA TRADING EST.', N'HALEEMA TRADING EST.', 13, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3137, N'TRHA08S', N'HALEEMA TRADING EST.', N'HALEEMA TRADING EST.', 13, 31, 20, 2, 0, 1, 48, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3138, N'TRHA08W', N'HALEEMA TRADING EST.', N'HALEEMA TRADING EST.', 13, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3139, N'TRHA09', N'AL HARAMAIN ELECTRICAL', N'AL HARAMAIN ELECTRICAL', 13, 19, 20, 10, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3140, N'TRHA09E', N'AL HARAMAIN ELECTRICAL', N'AL HARAMAIN ELECTRICAL', 13, 19, 20, 10, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3141, N'TRHA12', N'HASSAN AL SAYED ABDULLAH SALEH ELECTRICAL EQPT. TRD.', N'HASSAN AL SAYED ABDULLAH SALEH ELECTRICAL EQPT. TRD.', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3142, N'TRHA12E', N'HASSAN AL SAYED ABDULLAH SALEH ELECTRICAL EQPT. TRD.', N'HASSAN AL SAYED ABDULLAH SALEH ELECTRICAL EQPT. TRD.', 13, 19, 20, 3, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3143, N'TRHA12W', N'HASSAN AL SAYED ABDULLAH', N'HASSAN AL SAYED ABDULLAH', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3144, N'TRHA13', N'AL HAWI ELECTRONICS', N'AL HAWI ELECTRONICS', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3145, N'TRHA13E', N'AL HAWI ELECTRONICS', N'AL HAWI ELECTRONICS', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3146, N'TRHA14', N'HAMASAT ELECT. DEVICES', N'HAMASAT ELECT. DEVICES', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3147, N'TRHA15', N'HAPPY HOME HOUSEHOLD APPLIANCES', N'HAPPY HOME HOUSEHOLD APPLIANCES', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3148, N'TRHA15E', N'HAPPY HOME HOUSEHOLD APPLIANCES', N'HAPPY HOME HOUSEHOLD APPLIANCES', 13, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3149, N'TRHA16', N'AL HAZRI GROCERY', N'AL HAZRI GROCERY', 13, 19, 20, 3, 0, 1, 68, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3150, N'TRHA17', N'AL HARAM ELECTRONICS', N'AL HARAM ELECTRONICS', 13, 19, 20, 25, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3151, N'TRHA17A', N'AL HARAM ELECTRONICS', N'AL HARAM ELECTRONICS', 13, 19, 20, 25, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3152, N'TRHA18', N'AL HASOUN ARABIAN GROUP', N'AL HASOUN ARABIAN GROUP', 36, 31, 20, 2, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3153, N'TRHA32', N'AL HABARI PERFUMES & GIFTS TRDG.', N'AL HABARI PERFUMES & GIFTS TRDG.', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3154, N'TRHA32E', N'AL HABARI PERFUMES & GIFTS TRDG.', N'AL HABARI PERFUMES & GIFTS TRDG.', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3155, N'TRHA32W', N'AL HABARI PERFUMES', N'AL HABARI PERFUMES', 33, 19, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3156, N'TRHA34', N'HAMADCO TRADING', N'HAMADCO TRADING', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3157, N'TRHA34E', N'HAMADCO TRADING', N'HAMADCO TRADING', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3158, N'TRHA34W', N'HAMADCO TRADING', N'HAMADCO TRADING', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3159, N'TRHA39', N'HAPPY LAND SUPERMARKET', N'HAPPY LAND SUPERMARKET', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3160, N'TRHA39E', N'HAPPY LAND SUPERMARKET', N'HAPPY LAND SUPERMARKET', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3161, N'TRHA41', N'AL HABESH TRADING', N'AL HABESH TRADING', 13, 19, 20, 3, 0, 1, 60, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3162, N'TRHA54', N'HAJI MOHD STORE', N'HAJI MOHD STORE', 13, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
GO
print 'Processed 1900 total records'
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3163, N'TRHA54A', N'HAJI MOHD STORE', N'HAJI MOHD STORE', 13, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3164, N'TRHA61', N'HAPPY HOME TRADING EST.', N'HAPPY HOME TRADING EST.', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3165, N'TRHA61E', N'HAPPY HOME TRADING EST.', N'HAPPY HOME TRADING EST.', 13, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3166, N'TRHA63', N'HARMOOD TRADING CO', N'HARMOOD TRADING CO', 13, 19, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3167, N'TRHA63E', N'HARMOOD TRADING CO', N'HARMOOD TRADING CO', 13, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3168, N'TRHA65', N'HAIMA GENERAL TRADING', N'HAIMA GENERAL TRADING', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3169, N'TRHA65E', N'HAIMA GENERAL TRADING', N'HAIMA GENERAL TRADING', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3170, N'TRHA67', N'AL HARMOODI TRADING LLC', N'AL HARMOODI TRADING LLC', 13, 19, 20, 3, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3171, N'TRHA67E', N'AL HARMOODI TRADING LLC', N'AL HARMOODI TRADING LLC', 13, 19, 20, 3, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3172, N'TRHA68', N'AL HALA RESIDENCE ( BRANCH OF FIRDOUS RESID.)', N'AL HALA RESIDENCE ( BRANCH OF FIRDOUS RESID.)', 13, 19, 20, 5, 0, 1, 46, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3173, N'TRHA69', N'HAPPY HOUSE FOR HOUSE HOLDS', N'HAPPY HOUSE FOR HOUSE HOLDS', 35, 19, 20, 9, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3174, N'TRHA69E', N'HAPPY HOUSE FOR HOUSE HOLDS', N'HAPPY HOUSE FOR HOUSE HOLDS', 35, 19, 20, 9, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3175, N'TRHA70', N'HADEER SUPERMARKET L.L.C', N'HADEER SUPERMARKET L.L.C', 15, 19, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3176, N'TRHA71', N'HAPPY LAND WATCHES LLC', N'HAPPY LAND WATCHES LLC', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3177, N'TRHA71E', N'HAPPY LAND WATCHES LLC', N'HAPPY LAND WATCHES LLC', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3178, N'TRHA72', N'HASSAN FIKREE USED FURNITURE', N'HASSAN FIKREE USED FURNITURE', 33, 19, 22, 3, 0, 1, 60, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3179, N'TRHA73', N'AL HASHIM FURNITURE CENTER', N'AL HASHIM FURNITURE CENTER', 121, 17, 20, 9, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3180, N'TRHA74', N'HAIF COMPANY', N'HAIF COMPANY', 36, 17, 21, 3, 1, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3181, N'TRHA75', N'HAJI ZAINAL & MEHDI GHAEDI GEN TRADG. CO', N'HAJI ZAINAL & MEHDI GHAEDI GEN TRADG. CO', 35, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3182, N'TRHA76', N'AL HASHMI ELECT COMPANY7 LLC', N'AL HASHMI ELECT COMPANY7 LLC', 32, 19, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3183, N'TRHA76E', N'AL HASHMI ELECT COMPANY7 LLC', N'AL HASHMI ELECT COMPANY7 LLC', 32, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3184, N'TRHA77', N'AL HANIYOORI GROCERY & CATERING', N'AL HANIYOORI GROCERY & CATERING', 13, 19, 20, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3185, N'TRHA78', N'AL HAMARIYA SELECTION', N'AL HAMARIYA SELECTION', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3186, N'TRHA79', N'AL HASHEMI ELECT COMPANY LLC -  BRANCH1', N'AL HASHEMI ELECT COMPANY LLC -  BRANCH1', 32, 19, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3187, N'TRHA89', N'HAPPY LAND CITY SUPERMARKET L.L.C', N'HAPPY LAND CITY SUPERMARKET L.L.C', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3188, N'TRHA89E', N'HAPPY LAND CITY SUPERMARKET L.L.C', N'HAPPY LAND CITY SUPERMARKET L.L.C', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3189, N'TRHA90', N'HADEQAT AL MADINA HYPERMARKET (LLC)', N'HADEQAT AL MADINA HYPERMARKET (LLC)', 13, 19, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3190, N'TRHA90A', N'HADEQAT AL MADINA HYPERMARKET (LLC)', N'HADEQAT AL MADINA HYPERMARKET (LLC)', 13, 19, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3191, N'TRHA91', N'AL HAMRA PALACE HOTEL. L.L.C', N'AL HAMRA PALACE HOTEL. L.L.C', 132, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3192, N'TRHA92', N'AL HAMRA GOLF CLUB & RESORTS', N'AL HAMRA GOLF CLUB & RESORTS', 132, 31, 21, 8, 0, 1, 69, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3193, N'TRHE01', N'AL HENAWI ELECTRONICS', N'AL HENAWI ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3194, N'TRHE01E', N'AL HENAWI ELECTRONICS', N'AL HENAWI ELECTRONICS', 13, 19, 20, 8, 0, 1, 51, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3195, N'TRHI01', N'AL HIND AL SHARQIAH ELECT. DEVICES TR.', N'AL HIND AL SHARQIAH ELECT. DEVICES TR.', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3196, N'TRHI02', N'HIRA BAZAR', N'HIRA BAZAR', 121, 18, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3197, N'TRHI02E', N'HIRA BAZAR', N'HIRA BAZAR', 121, 18, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3198, N'TRHI03', N'HILAL AL MADINA SUPER MKT  SHAJRAH', N'HILAL AL MADINA SUPER MKT  SHAJRAH', 35, 18, 97, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3199, N'TRHI03W', N'HENDI AL SHAMSI ELECTRONICS', N'HENDI AL SHAMSI ELECTRONICS', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3200, N'TRHI05', N'HIGH LIGHT ELECTRONICS LLC', N'HIGH LIGHT ELECTRONICS LLC', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3201, N'TRHI05E', N'HIGH LIGHT ELECTRONICS LLC', N'HIGH LIGHT ELECTRONICS LLC', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3202, N'TRHI06', N'HIBAT AL MADINAH SUPERMARKET', N'HIBAT AL MADINAH SUPERMARKET', 15, 19, 97, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3203, N'TRHI08', N'HIRUX', N'HIRUX', 32, 31, 21, 3, 0, 1, 60, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3204, N'TRHI11', N'HILAL AL MADINA SUPERMARKET(L.L.C)', N'HILAL AL MADINA SUPERMARKET(L.L.C)', 13, 19, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3205, N'TRHI11A', N'HILAL AL MADINA SUPERMARKET(L.L.C)', N'HILAL AL MADINA SUPERMARKET(L.L.C)', 13, 19, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3206, N'TRHI12', N'HILAL AL MADINA GEN TR. LLC', N'HILAL AL MADINA GEN TR. LLC', 13, 19, 97, 5, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3207, N'TRHI12A', N'HILAL AL MADINA GEN TR. LLC', N'HILAL AL MADINA GEN TR. LLC', 13, 19, 97, 5, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3208, N'TRHL01', N'HIGH LAND FOODSTUFF TRADING LLC', N'HIGH LAND FOODSTUFF TRADING LLC', 13, 19, 20, 3, 0, 1, 68, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3209, N'TRHO01', N'AL HORMOODI STORE', N'AL HORMOODI STORE', 13, 19, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3210, N'TRHO01A', N'AL HORMOODI STORE', N'AL HORMOODI STORE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3211, N'TRHO04', N'HOLYDAY ARABIAN RESORT', N'HOLYDAY ARABIAN RESORT', 132, 19, 21, 10, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3212, N'TRHO05', N'HOME CENTRE LLC', N'HOME CENTRE LLC', 13, 18, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3213, N'TRHO07', N'HOUSE OF EQUIPMENT (LLC)', N'HOUSE OF EQUIPMENT (LLC)', 35, 31, 21, 3, 1, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3214, N'TRHO08', N'HOME MARKET GENERAL TRADING', N'HOME MARKET GENERAL TRADING', 121, 18, 22, 5, 0, 1, 48, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3215, N'TRHU04', N'HUSSAIN AMIRI EST.', N'HUSSAIN AMIRI EST.', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3216, N'TRHU04E', N'HUSSAIN AMIRI EST.', N'HUSSAIN AMIRI EST.', 13, 19, 20, 5, 0, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3217, N'TRHU07', N'HUNTER FOODS LIMITED FZCO', N'HUNTER FOODS LIMITED FZCO', 13, 19, 20, 3, 0, 1, 68, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3218, N'TRHY01', N'HYPER PANDA', N'HYPER PANDA', 13, 17, 91, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3219, N'TRHY01A', N'HYPER PANDA', N'HYPER PANDA', 13, 17, 91, 3, 1, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3220, N'TRHY01E', N'HYPER PANDA', N'HYPER PANDA', 13, 17, 91, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3221, N'TRHY10', N'HYPERCORP LLC  ( AUCHAN - DRAGON MART)', N'HYPERCORP LLC  ( AUCHAN - DRAGON MART)', 42, 18, 22, 3, 1, 1, 75, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3222, N'TRHY10A', N'HYPERCORP LLC  ( AUCHAN - DRAGON MART)', N'HYPERCORP LLC  ( AUCHAN - DRAGON MART)', 42, 18, 22, 3, 1, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3223, N'TRHY11', N'HYPER RAMEZ', N'HYPER RAMEZ', 15, 19, 22, 5, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3224, N'TRIB01', N'IBRAHIM KHOORY GIFT SHOP', N'IBRAHIM KHOORY GIFT SHOP', 33, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3225, N'TRIB02', N'IBRAHIM MURAD ELECTRIC', N'IBRAHIM MURAD ELECTRIC', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3226, N'TRIB02E', N'IBRAHIM MURAD ELECTRIC', N'IBRAHIM MURAD ELECTRIC', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3227, N'TRIB04', N'IBN SINHA TRDG', N'IBN SINHA TRDG', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3228, N'TRIB04E', N'IBN SINHA TRDG', N'IBN SINHA TRDG', 13, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3229, N'TRIN01', N'INTERGULF FOOD INC.', N'INTERGULF FOOD INC.', 127, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3230, N'TRIN01W', N'AL INSHA SUPERMARKET', N'AL INSHA SUPERMARKET', 33, 18, 22, 5, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3231, N'TRIN06', N'INTERNATIONAL DUTY FREE SUPPLIES', N'INTERNATIONAL DUTY FREE SUPPLIES', 13, 19, 20, 3, 0, 1, 46, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3232, N'TRIN07', N'INDONESIA GERNERAL TRADING', N'INDONESIA GERNERAL TRADING', 35, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3233, N'TRIN07E', N'INDONESIA GERNERAL TRADING', N'INDONESIA GERNERAL TRADING', 35, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3234, N'TRIN08', N'INTER COOL AIR CONDITIONING LLC', N'INTER COOL AIR CONDITIONING LLC', 35, 19, 20, 3, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3235, N'TRIN09A', N'INNOVATIVE BUSINESS SOLUTION GENERAL TRADING LLC', N'INNOVATIVE BUSINESS SOLUTION GENERAL TRADING LLC', 33, 31, 21, 3, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3236, N'TRIN09E', N'INNOVATIVE BUSINESS SOLUTION GENERAL TRADING LLC', N'INNOVATIVE BUSINESS SOLUTION GENERAL TRADING LLC', 33, 31, 21, 3, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3237, N'TRIQ01', N'IQBAL ELECTRONICS', N'IQBAL ELECTRONICS', 13, 19, 20, 10, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3238, N'TRIQ01E', N'IQBAL ELECTRONICS', N'IQBAL ELECTRONICS', 13, 19, 20, 10, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3239, N'TRIQ01S', N'IQBAL ELECTRONICS', N'IQBAL ELECTRONICS', 13, 19, 20, 10, 0, 1, 48, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3240, N'TRIQ02', N'AL IQLEEM SUPERMARKET', N'AL IQLEEM SUPERMARKET', 15, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3241, N'TRIQ03', N'IQBAL ELECTRONICS LLC (BR)', N'IQBAL ELECTRONICS LLC (BR)', 33, 146, 101, 5, 0, 1, 96, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3242, N'TRIR02', N'IRISAT LLC', N'IRISAT LLC', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3243, N'TRIS03', N'ISMAIL MUSSABAH TRADING EST. LLC', N'ISMAIL MUSSABAH TRADING EST. LLC', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3244, N'TRIS03E', N'ISMAIL MUSSABAH TRADING EST. LLC', N'ISMAIL MUSSABAH TRADING EST. LLC', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3245, N'TRIT01', N'ITALCO INTERNATIONAL (LLC)', N'ITALCO INTERNATIONAL (LLC)', 33, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3246, N'TRIT01S', N'ITALCO INTERNATIONAL (LLC)', N'ITALCO INTERNATIONAL (LLC)', 33, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3247, N'TRJA01', N'JAWAL AL MADEENA SUPERMARKET', N'JAWAL AL MADEENA SUPERMARKET', 15, 17, 105, 5, 1, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3248, N'TRJA02', N'AL JATOOSI STORE', N'AL JATOOSI STORE', 13, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3249, N'TRJA02A', N'AL JATOOSI STORE', N'AL JATOOSI STORE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3250, N'TRJA04', N'AL JABRIAH ELECTRONICS & GIFTS', N'AL JABRIAH ELECTRONICS & GIFTS', 13, 19, 20, 5, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3251, N'TRJA04E', N'AL JABRIAH ELECTRONICS & GIFTS', N'AL JABRIAH ELECTRONICS & GIFTS', 13, 19, 20, 5, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3252, N'TRJA06', N'JAMAL POUR STORES', N'JAMAL POUR STORES', 13, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3253, N'TRJA06A', N'JAMAL POUR STORES', N'JAMAL POUR STORES', 13, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3254, N'TRJA08', N'JAGADISH', N'JAGADISH', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3255, N'TRJA09', N'AL JAZEERA DISCOUNT MARKETS', N'AL JAZEERA DISCOUNT MARKETS', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3256, N'TRJA09E', N'AL JAZEERA DISCOUNT MARKETS', N'AL JAZEERA DISCOUNT MARKETS', 13, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3257, N'TRJA10', N'JACKYS ELECTRONICS', N'JACKYS ELECTRONICS', 139, 17, 92, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3258, N'TRJA10A', N'JACKYS ELECTRONICS', N'JACKYS ELECTRONICS', 139, 17, 92, 3, 1, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3259, N'TRJA10E', N'JACKYS ELECTRONICS', N'JACKYS ELECTRONICS', 139, 17, 92, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3260, N'TRJA10S', N'JACKY''S ELECTRONIS AIRPORT ROAD', N'JACKY''S ELECTRONIS AIRPORT ROAD', 139, 17, 92, 3, 1, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3261, N'TRJA11', N'JABAR KHOORY STORE', N'JABAR KHOORY STORE', 13, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3262, N'TRJA11A', N'JABAR KHOORY STORE', N'JABAR KHOORY STORE', 13, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3263, N'TRJA12', N'JAFFAR HUSSAIN KASIM', N'JAFFAR HUSSAIN KASIM', 13, 19, 20, 3, 0, 1, 60, CAST(0x81370B00 AS Date), 28)
GO
print 'Processed 2000 total records'
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3264, N'TRJA15', N'JABAL AL NOOR ELECTRONICS DEVICES LTD.', N'JABAL AL NOOR ELECTRONICS DEVICES LTD.', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3265, N'TRJA15E', N'JABAL AL NOOR ELECTRONICS DEVICES LTD.', N'JABAL AL NOOR ELECTRONICS DEVICES LTD.', 13, 19, 20, 5, 0, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3266, N'TRJA16', N'JANNAT AL BAQIE ELECTRICAL TRADING L.L.C.', N'JANNAT AL BAQIE ELECTRICAL TRADING L.L.C.', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3267, N'TRJA17', N'AL JABARI ELECTRONICS', N'AL JABARI ELECTRONICS', 13, 19, 20, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3268, N'TRJA19', N'AL JABAL AL SHAMEKH TRADING (BR.)', N'AL JABAL AL SHAMEKH TRADING (BR.)', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3269, N'TRJA19E', N'AL JABAL AL SHAMEKH TRADING (BR.)', N'AL JABAL AL SHAMEKH TRADING (BR.)', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3270, N'TRJA30', N'AL JANDOOL GIFTS', N'AL JANDOOL GIFTS', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3271, N'TRJA30E', N'AL JANDOOL GIFTS', N'AL JANDOOL GIFTS', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3272, N'TRJA34', N'JACKYS ELECTRONICS - CORPORATE SALES', N'JACKYS ELECTRONICS - CORPORATE SALES', 139, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3273, N'TRJA35', N'AL JASAR HOUSE HOLD TRADING', N'AL JASAR HOUSE HOLD TRADING', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3274, N'TRJA36', N'AL JAMHOUR ELECTRONICS EXHIBITION', N'AL JAMHOUR ELECTRONICS EXHIBITION', 13, 19, 20, 5, 0, 1, 103, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3275, N'TRJA37', N'JARS AL MADINH SUPERMARKET', N'JARS AL MADINH SUPERMARKET', 13, 19, 97, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3276, N'TRJA37E', N'JARS AL MADINH SUPERMARKET', N'JARS AL MADINH SUPERMARKET', 13, 19, 97, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3277, N'TRJA38', N'AL JAZEERA  MOBILE PHONES & ELECTRONICS', N'AL JAZEERA  MOBILE PHONES & ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3278, N'TRJA38E', N'AL JAZEERA  MOBILE PHONES & ELECTRONICS', N'AL JAZEERA  MOBILE PHONES & ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3279, N'TRJE01', N'JESCO (AL MAYA LALS ) SUPERMARKET LLC', N'JESCO (AL MAYA LALS ) SUPERMARKET LLC', 15, 19, 72, 5, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3280, N'TRJE01A', N'JESCO (AL MAYA LALS ) SUPERMARKET LLC', N'JESCO (AL MAYA LALS ) SUPERMARKET LLC', 15, 19, 72, 5, 1, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3281, N'TRJE01W', N'JENOUB AL MADINAH SUPER MARKET', N'JENOUB AL MADINAH SUPER MARKET', 33, 18, 22, 5, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3282, N'TRJE02', N'JESCO (AL MAYA LALS) SUPERMARKET (L.L.C.) BR., NASSER SQ.', N'JESCO (AL MAYA LALS) SUPERMARKET (L.L.C.) BR., NASSER SQ.', 15, 19, 72, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3283, N'TRJE02E', N'JESCO (AL MAYA LALS) SUPERMARKET (L.L.C.) BR., NASSER SQ.', N'JESCO (AL MAYA LALS) SUPERMARKET (L.L.C.) BR., NASSER SQ.', 15, 19, 72, 3, 1, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3284, N'TRJE03', N'JESCO (AL MAYA LALS) SUPERMARKET (L.L.C.), HAMARIYAH', N'JESCO (AL MAYA LALS) SUPERMARKET (L.L.C.), HAMARIYAH', 15, 19, 72, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3285, N'TRJE03E', N'JESCO (AL MAYA LALS) SUPERMARKET (L.L.C.), HAMARIYAH', N'JESCO (AL MAYA LALS) SUPERMARKET (L.L.C.), HAMARIYAH', 15, 19, 72, 3, 1, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3286, N'TRJE04', N'AL JEER ELECTRONICS', N'AL JEER ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3287, N'TRJE04E', N'AL JEER ELECTRONICS', N'AL JEER ELECTRONICS', 13, 19, 20, 8, 0, 1, 51, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3288, N'TRJE09', N'JEHANGIR ALAVI HOUSEHOLD MATERIALS L L C ABUDHABI', N'JEHANGIR ALAVI HOUSEHOLD MATERIALS L L C ABUDHABI', 13, 18, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3289, N'TRJE09E', N'JEHANGIR ALAVI HOUSEHOLD MATERIALS L L C ABUDHABI', N'JEHANGIR ALAVI HOUSEHOLD MATERIALS L L C ABUDHABI', 13, 18, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3290, N'TRJE10', N'JENOUB AL MADINAH SUPERMARKET', N'JENOUB AL MADINAH SUPERMARKET', 13, 19, 97, 5, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3291, N'TRJE10E', N'JENOUB AL MADINAH SUPERMARKET', N'JENOUB AL MADINAH SUPERMARKET', 13, 19, 97, 5, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3292, N'TRJE11W', N'JENOUB AL MADINAH SUPER MARKET ( BRANCH )', N'JENOUB AL MADINAH SUPER MARKET ( BRANCH )', 33, 18, 22, 5, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3293, N'TRJE12', N'JENOUB AL MADINAH SUPERMARKET L.L.C ( HILAL MADINA SU.MKT)(BR.)', N'JENOUB AL MADINAH SUPERMARKET L.L.C ( HILAL MADINA SU.MKT)(BR.)', 15, 19, 97, 5, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3294, N'TRJE12E', N'JENOUB AL MADINAH SUPERMARKET L.L.C ( HILAL MADINA SU.MKT)(BR.)', N'JENOUB AL MADINAH SUPERMARKET L.L.C ( HILAL MADINA SU.MKT)(BR.)', 15, 19, 97, 5, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3295, N'TRJE49', N'JEEL AL SHAHAM TRADING  CO L L C', N'JEEL AL SHAHAM TRADING  CO L L C', 15, 18, 22, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3296, N'TRJM01', N'J.MART SUPERMARKET LLC. BR.', N'J.MART SUPERMARKET LLC. BR.', 15, 18, 22, 3, 1, 1, 74, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3297, N'TRJM02', N'J.MART SUPERMARKET LLC. BR.', N'J.MART SUPERMARKET LLC. BR.', 15, 18, 22, 3, 1, 1, 68, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3298, N'TRJM03', N'J.MART SUPERMARKET LLC. BR.', N'J.MART SUPERMARKET LLC. BR.', 15, 18, 22, 3, 1, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3299, N'TRJM04', N'J.MART SUPER MARKET- 2ND SALES', N'J.MART SUPER MARKET- 2ND SALES', 13, 19, 20, 3, 0, 1, 60, CAST(0x81370B00 AS Date), 148)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3300, N'TRJO01', N'JORDANIAN FIRE & SAFETY', N'JORDANIAN FIRE & SAFETY', 14, 19, 21, 5, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3301, N'TRJO02', N'JOYALUKKAS', N'JOYALUKKAS', 32, 18, 22, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3302, N'TRJO03', N'JORMAND HOTEL APARTMENTS', N'JORMAND HOTEL APARTMENTS', 132, 31, 21, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3303, N'TRJU01', N'JUMA AL MAJID EST.', N'JUMA AL MAJID EST.', 123, 31, 21, 3, 0, 1, 69, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3304, N'TRJU01W', N'JUMANAH NOVELTIES & GIFTS', N'JUMANAH NOVELTIES & GIFTS', 33, 18, 22, 5, 0, 1, 121, CAST(0x81370B00 AS Date), 149)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3305, N'TRJU02', N'JUMEIRA ROTANA HOTEL', N'JUMEIRA ROTANA HOTEL', 132, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3306, N'TRJU03', N'JUMBO ELECTRONICS CO. LLC', N'JUMBO ELECTRONICS CO. LLC', 123, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3307, N'TRJU04', N'JUMEIRAH INTERNATIONAL', N'JUMEIRAH INTERNATIONAL', 132, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3308, N'TRKA03', N'KHAYYAM EXHIBITION', N'KHAYYAM EXHIBITION', 13, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3309, N'TRKA03A', N'KHAYYAM EXHIBITION', N'KHAYYAM EXHIBITION', 13, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3310, N'TRKA05', N'KADEEJA TRADING EST.', N'KADEEJA TRADING EST.', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3311, N'TRKA05E', N'KADEEJA TRADING EST.', N'KADEEJA TRADING EST.', 13, 19, 20, 3, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3312, N'TRKA06', N'KARANI STORE', N'KARANI STORE', 13, 19, 20, 5, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3313, N'TRKA06A', N'KARANI STORE', N'KARANI STORE', 13, 19, 20, 5, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3314, N'TRKA07', N'KALA TRADERS', N'KALA TRADERS', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3315, N'TRKA07E', N'KALA TRADERS', N'KALA TRADERS', 13, 19, 20, 4, 0, 1, 67, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3316, N'TRKA08', N'AL KARNAK SUPERMARKET', N'AL KARNAK SUPERMARKET', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3317, N'TRKA08E', N'AL KARNAK SUPERMARKET', N'AL KARNAK SUPERMARKET', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3318, N'TRKA09', N'AL KABAYIL DISCOUNT CENTER', N'AL KABAYIL DISCOUNT CENTER', 13, 19, 22, 3, 1, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3319, N'TRKA09E', N'AL KABAYIL DISCOUNT CENTER', N'AL KABAYIL DISCOUNT CENTER', 13, 19, 22, 3, 1, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3320, N'TRKA09W', N'AL KABAYIL GENERAL TRADING CO', N'AL KABAYIL GENERAL TRADING CO', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3321, N'TRKA10', N'AL KABAYL TRADING - SABKHA', N'AL KABAYL TRADING - SABKHA', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3322, N'TRKA10E', N'AL KABAYL TRADING - SABKHA', N'AL KABAYL TRADING - SABKHA', 13, 19, 22, 3, 1, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3323, N'TRKA10W', N'AL KABAYL TRADING', N'AL KABAYL TRADING', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3324, N'TRKA11', N'KADOOLI SUPER MARKET L.L.C.(DEIRA BR.)', N'KADOOLI SUPER MARKET L.L.C.(DEIRA BR.)', 15, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3325, N'TRKA11E', N'KADOOLI SUPER MARKET L.L.C.(DEIRA BR.)', N'KADOOLI SUPER MARKET L.L.C.(DEIRA BR.)', 15, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3326, N'TRKA12', N'AL KABAYEL TRADING - SHARAJAH', N'AL KABAYEL TRADING - SHARAJAH', 35, 18, 20, 5, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3327, N'TRKA12A', N'AL KABAYEL TRADING - SHARAJAH', N'AL KABAYEL TRADING - SHARAJAH', 35, 18, 20, 5, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3328, N'TRKA13', N'KASTURI TRADING EST', N'KASTURI TRADING EST', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3329, N'TRKA13E', N'KASTURI TRADING EST.', N'KASTURI TRADING EST.', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3330, N'TRKA13W', N'KASTURI ELECTRONICS', N'KASTURI ELECTRONICS', 33, 19, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3331, N'TRKA17', N'KAMILI STORE', N'KAMILI STORE', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3332, N'TRKA17E', N'KAMILI STORE', N'KAMILI STORE', 13, 19, 20, 3, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3333, N'TRKA17W', N'KAMILI STORES', N'KAMILI STORES', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3334, N'TRKA18', N'AL KATBI AIR CONDITIONING', N'AL KATBI AIR CONDITIONING', 14, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3335, N'TRKA19', N'AL KAMAL SUPER MARKET', N'AL KAMAL SUPER MARKET', 15, 19, 20, 10, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3336, N'TRKA20', N'KAMLESH ELECTRONICS LLC', N'KAMLESH ELECTRONICS LLC', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3337, N'TRKA25', N'AL KAMANI TRADING L.L.C.', N'AL KAMANI TRADING L.L.C.', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3338, N'TRKA26', N'KA READYMADE', N'KA READYMADE', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3339, N'TRKA27', N'KAREEM TRADING  LLC', N'KAREEM TRADING  LLC', 35, 18, 22, 3, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3340, N'TRKA27E', N'KAREEM TRADING  LLC', N'KAREEM TRADING  LLC', 35, 18, 22, 3, 0, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3341, N'TRKA28', N'KAMAL OSMAN JAMJOOM  TRADING EST.', N'KAMAL OSMAN JAMJOOM  TRADING EST.', 13, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3342, N'TRKA29', N'AL KABAYEL OASIS TRADING L.L.C', N'AL KABAYEL OASIS TRADING L.L.C', 13, 19, 22, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3343, N'TRKA29A', N'AL KABAYEL OASIS TRADING L.L.C', N'AL KABAYEL OASIS TRADING L.L.C', 13, 19, 22, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3344, N'TRKA90W', N'AL KABAYL DISCOUNT CENTER LLC', N'AL KABAYL DISCOUNT CENTER LLC', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3345, N'TRKE02', N'KELE CONTRACTING ( LLC )', N'KELE CONTRACTING ( LLC )', 36, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3346, N'TRKE03', N'KERALA SUPER MARKET L.L.C.', N'KERALA SUPER MARKET L.L.C.', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3347, N'TRKH01', N'KHALIFA OBAID KHALIFA ELECTRONICS', N'KHALIFA OBAID KHALIFA ELECTRONICS', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3348, N'TRKH01E', N'KHALIFA OBAID KHALIFA ELECTRONICS', N'KHALIFA OBAID KHALIFA ELECTRONICS', 13, 19, 20, 3, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3349, N'TRKH03', N'KHALIFA AL MAZROEI ELECTRONICS EST', N'KHALIFA AL MAZROEI ELECTRONICS EST', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3350, N'TRKH04', N'KHALIFA AL NAZER TRDG. EST.', N'KHALIFA AL NAZER TRDG. EST.', 13, 19, 20, 3, 0, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3351, N'TRKH04W', N'KHALIFA AL NAZEER TRADING', N'KHALIFA AL NAZEER TRADING', 33, 18, 22, 3, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3352, N'TRKH05', N'KHIARA STORES', N'KHIARA STORES', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3353, N'TRKH06', N'KHALFAN AL SAYER TRADING EST.', N'KHALFAN AL SAYER TRADING EST.', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3354, N'TRKH06E', N'KHALFAN AL SAYER TRADING EST.', N'KHALFAN AL SAYER TRADING EST.', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3355, N'TRKH08', N'KHALED BAHMAN BUILDING MATERIALS TRDG', N'KHALED BAHMAN BUILDING MATERIALS TRDG', 35, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3356, N'TRKH16', N'KHOORY STORE', N'KHOORY STORE', 13, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3357, N'TRKH21', N'KHALID & MAHMOOD TRADING CO. LLC', N'KHALID & MAHMOOD TRADING CO. LLC', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3358, N'TRKH26', N'AL KHALEDYA CO-OPERATIVE SOCIETY', N'AL KHALEDYA CO-OPERATIVE SOCIETY', 13, 19, 20, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3359, N'TRKH29', N'KHAMEES ALI HASSAN TRADING', N'KHAMEES ALI HASSAN TRADING', 13, 18, 20, 25, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3360, N'TRKH30', N'KHAWLA HASSAN ELECTRONICS', N'KHAWLA HASSAN ELECTRONICS', 13, 19, 20, 3, 0, 1, 66, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3361, N'TRKH31', N'KHATIM ELECTRONICS', N'KHATIM ELECTRONICS', 13, 19, 20, 9, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3362, N'TRKH31E', N'KHATIM ELECTRONICS', N'KHATIM ELECTRONICS', 13, 19, 20, 9, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3363, N'TRKH32', N'AL KHALEEJ ELECTRONICS', N'AL KHALEEJ ELECTRONICS', 13, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3364, N'TRKH33', N'KHALIFA AL NASER ELECTRONICS', N'KHALIFA AL NASER ELECTRONICS', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
GO
print 'Processed 2100 total records'
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3365, N'TRKH34', N'KHAT SWEET WATER L.L.C', N'KHAT SWEET WATER L.L.C', 134, 19, 20, 8, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3366, N'TRKH35', N'AL KHOR RAYHAAN BY ROTANA DUBAI', N'AL KHOR RAYHAAN BY ROTANA DUBAI', 132, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3367, N'TRKH36', N'KHALEEJ AL KEER HOUSEHOLD APPLIANCES LLC', N'KHALEEJ AL KEER HOUSEHOLD APPLIANCES LLC', 13, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3368, N'TRKI01', N'KINGS PEARL TRADING LLC', N'KINGS PEARL TRADING LLC', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3369, N'TRKM01', N'K.M. TRADING EST.', N'K.M. TRADING EST.', 13, 17, 93, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3370, N'TRKM02', N'K. M. TRADING CO, LLC', N'K. M. TRADING CO, LLC', 13, 17, 93, 4, 1, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3371, N'TRKM03', N'K.M. TRADING SHOPPING CENTER', N'K.M. TRADING SHOPPING CENTER', 13, 17, 93, 3, 1, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3372, N'TRKM04', N'K.MART DEPT. STORES', N'K.MART DEPT. STORES', 13, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3373, N'TRKM04E', N'K.MART DEPT. STORES', N'K.MART DEPT. STORES', 13, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3374, N'TRKM05', N'K.M. TRADING (ABHUSHAGARA, SHJ)', N'K.M. TRADING (ABHUSHAGARA, SHJ)', 13, 17, 93, 5, 1, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3375, N'TRKM06', N'K.M. TRADING (ROLLA STREET, SHJ)', N'K.M. TRADING (ROLLA STREET, SHJ)', 13, 17, 93, 5, 1, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3376, N'TRKM07', N'K.M. TRADING (HEALTHCARE CITY, DXB)', N'K.M. TRADING (HEALTHCARE CITY, DXB)', 13, 17, 93, 5, 1, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3377, N'TRKM08', N'K.M. TRADING (ALAIN)', N'K.M. TRADING (ALAIN)', 13, 17, 93, 4, 1, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3378, N'TRKM09', N'K.M. TRADING (FUJ)', N'K.M. TRADING (FUJ)', 13, 17, 93, 5, 1, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3379, N'TRKM10', N'K.M. TRADING (MADINAT ZAYED)', N'K.M. TRADING (MADINAT ZAYED)', 13, 17, 93, 5, 1, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3380, N'TRKM11', N'KMH EXPRESS LLC', N'KMH EXPRESS LLC', 13, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3381, N'TRKN01', N'KNOWLEDGE & HUMAN DEV. AUTHORITY', N'KNOWLEDGE & HUMAN DEV. AUTHORITY', 128, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3382, N'TRKO01W', N'KHALIFA OBAID KHALIFA TRADING EST', N'KHALIFA OBAID KHALIFA TRADING EST', 33, 146, 101, 3, 0, 1, 96, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3383, N'TRKR01', N'KRISH SHEEBA GENERAL TRADING L.L.C', N'KRISH SHEEBA GENERAL TRADING L.L.C', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3384, N'TRKS01', N'KS-KROMBERG & SCHUBERT GmbH', N'KS-KROMBERG & SCHUBERT GmbH', 35, 19, 21, 3, 0, 1, 74, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3385, N'TRKT01', N'KTC INTERNATIONAL LLC', N'KTC INTERNATIONAL LLC', 32, 31, 21, 3, 0, 1, 69, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3386, N'TRKU01', N'KUWAIT STORE', N'KUWAIT STORE', 13, 19, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3387, N'TRKU01A', N'KUWAIT STORE', N'KUWAIT STORE', 13, 19, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3388, N'TRKU02', N'KUWAIT FOOD CO. (AMERICANA)', N'KUWAIT FOOD CO. (AMERICANA)', 127, 18, 21, 3, 0, 1, 50, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3389, N'TRKW01', N'KWALITY ELECTRONICS TRADING', N'KWALITY ELECTRONICS TRADING', 13, 19, 20, 9, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3390, N'TRLA01', N'AL LAZIM WATCHES TRADING', N'AL LAZIM WATCHES TRADING', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3391, N'TRLA02', N'LAHOUD ENGINEERING CO. LTD.', N'LAHOUD ENGINEERING CO. LTD.', 36, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3392, N'TRLA03', N'LABOUR POWER GROCERY', N'LABOUR POWER GROCERY', 13, 19, 20, 3, 0, 1, 68, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3393, N'TRLA05', N'LAL S/MRKT BURJUMAN CENTRE', N'LAL S/MRKT BURJUMAN CENTRE', 15, 19, 72, 3, 1, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3394, N'TRLA06', N'LAND & SEA HOUSEHOLD TR.CO.LLC', N'LAND & SEA HOUSEHOLD TR.CO.LLC', 13, 19, 20, 5, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3395, N'TRLA13', N'LATEST ELECTRONIC EST.', N'LATEST ELECTRONIC EST.', 13, 19, 20, 5, 0, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3396, N'TRLA14', N'LAMCY', N'LAMCY', 15, 19, 72, 2, 1, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3397, N'TRLA16', N'AL MAYA LALS SUPERMARKET (L.L.C.) BR., SATWA', N'AL MAYA LALS SUPERMARKET (L.L.C.) BR., SATWA', 15, 19, 72, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3398, N'TRLA16E', N'AL MAYA LALS SUPERMARKET (L.L.C.) BR., SATWA', N'AL MAYA LALS SUPERMARKET (L.L.C.) BR., SATWA', 15, 19, 72, 3, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3399, N'TRLA17', N'LALS SUPERMARKET - AJMAN', N'LALS SUPERMARKET - AJMAN', 15, 19, 72, 10, 1, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3400, N'TRLA20', N'AL MAYA LALS SUPERMARKET (L.L.C.), DEIRA (RIQA)', N'AL MAYA LALS SUPERMARKET (L.L.C.), DEIRA (RIQA)', 15, 19, 72, 3, 1, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3401, N'TRLA21', N'LAMA DESERT TOURS & CRUISES LLC', N'LAMA DESERT TOURS & CRUISES LLC', 32, 31, 21, 3, 1, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3402, N'TRLE01', N'LE MERIDIEN HOTEL ( OWNED BY ABUDHABI NATIONAL HOTELS )', N'LE MERIDIEN HOTEL ( OWNED BY ABUDHABI NATIONAL HOTELS )', 13, 19, 20, 2, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3403, N'TRLE02', N'LE ROYAL MERIDIEN BEACH RESORT & SPA', N'LE ROYAL MERIDIEN BEACH RESORT & SPA', 13, 19, 20, 3, 0, 1, 46, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3404, N'TRLE03', N'LEGACY HOTEL APARTMENTS FZ LLC', N'LEGACY HOTEL APARTMENTS FZ LLC', 132, 31, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3405, N'TRLE04', N'LEMINAR AIR CONDITIONINF LLC', N'LEMINAR AIR CONDITIONINF LLC', 32, 31, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3406, N'TRLE05', N'LEMINAR COILS LLC', N'LEMINAR COILS LLC', 32, 19, 21, 3, 0, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3407, N'TRLI01', N'LIFCO SUPERMARKET', N'LIFCO SUPERMARKET', 15, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3408, N'TRLI02', N'LIBERTY DEPARTMENT STORES L.L.C.', N'LIBERTY DEPARTMENT STORES L.L.C.', 13, 19, 22, 3, 1, 1, 61, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3409, N'TRLI03', N'LIBRA SUPER GENERAL TRADING (L.L.C)', N'LIBRA SUPER GENERAL TRADING (L.L.C)', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3410, N'TRLI03E', N'LIBRA SUPER GENERAL TRADING (L.L.C)', N'LIBRA SUPER GENERAL TRADING (L.L.C)', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3411, N'TRLI05', N'LITTLE MIMI TRADING', N'LITTLE MIMI TRADING', 13, 19, 20, 3, 0, 1, 60, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3412, N'TRLO02', N'LONDON CROWN HOTEL APTS.', N'LONDON CROWN HOTEL APTS.', 132, 31, 21, 3, 0, 1, 69, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3413, N'TRLO04', N'LORANCE ELECTRONICS', N'LORANCE ELECTRONICS', 13, 19, 20, 5, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3414, N'TRLO04E', N'LORANCE ELECTRONICS', N'LORANCE ELECTRONICS', 13, 19, 20, 5, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3415, N'TRLU01', N'LULU CENTER - DEIRA', N'LULU CENTER - DEIRA', 42, 17, 96, 3, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3416, N'TRLU01E', N'LULU CENTER - DEIRA', N'LULU CENTER - DEIRA', 42, 17, 96, 3, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3417, N'TRLU01W', N'LULUAT DUBAI WATCHES & ELECT DEVICES TR', N'LULUAT DUBAI WATCHES & ELECT DEVICES TR', 33, 18, 22, 5, 0, 1, 37, CAST(0x81370B00 AS Date), 29)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3418, N'TRLU02', N'LULU HYPER MARKET   AL BARSHA', N'LULU HYPER MARKET   AL BARSHA', 42, 17, 96, 3, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3419, N'TRLU02E', N'LULU HYPER MARKET   AL BARSHA', N'LULU HYPER MARKET   AL BARSHA', 42, 17, 96, 3, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3420, N'TRLU03', N'LUCKY PLAZA', N'LUCKY PLAZA', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3421, N'TRLU04', N'LULU VILLAGE', N'LULU VILLAGE', 42, 17, 96, 3, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3422, N'TRLU04E', N'LULU VILLAGE', N'LULU VILLAGE', 42, 17, 96, 3, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3423, N'TRLU05', N'LULU CENTER - CENTRAL AUH', N'LULU CENTER - CENTRAL AUH', 42, 17, 95, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3424, N'TRLU05A', N'LULU CENTER - CENTRAL AUH', N'LULU CENTER - CENTRAL AUH', 42, 17, 95, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3425, N'TRLU05E', N'LULU CENTER - CENTRAL AUH', N'LULU CENTER - CENTRAL AUH', 42, 17, 95, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3426, N'TRLU06', N'LULU HYPER MARKET ( BANIYAS)', N'LULU HYPER MARKET ( BANIYAS)', 42, 17, 95, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3427, N'TRLU06E', N'LULU HYPER MARKET ( BANIYAS)', N'LULU HYPER MARKET ( BANIYAS)', 42, 17, 95, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3428, N'TRLU07', N'LULU CENTER - KARAMA', N'LULU CENTER - KARAMA', 42, 17, 96, 3, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3429, N'TRLU07E', N'LULU CENTER - KARAMA', N'LULU CENTER - KARAMA', 42, 17, 96, 3, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3430, N'TRLU08', N'LUBE TRDG. EST.', N'LUBE TRDG. EST.', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3431, N'TRLU08E', N'LUBE TRDG. EST.', N'LUBE TRDG. EST.', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3432, N'TRLU10', N'LULU CENTRE- AL AIN', N'LULU CENTRE- AL AIN', 42, 17, 95, 4, 1, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3433, N'TRLU10A', N'LULU CENTRE- AL AIN', N'LULU CENTRE- AL AIN', 42, 17, 95, 4, 1, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3434, N'TRLU11', N'LULU HYPERMARKET SANAIYA- ALN', N'LULU HYPERMARKET SANAIYA- ALN', 42, 17, 95, 4, 1, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3435, N'TRLU12', N'LULU CENTER - RAK', N'LULU CENTER - RAK', 42, 17, 96, 8, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3436, N'TRLU12E', N'LULU CENTER - RAK', N'LULU CENTER - RAK', 42, 17, 96, 8, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3437, N'TRLU13', N'LULU CENTER - CENTRAL WAREHOUSE', N'LULU CENTER - CENTRAL WAREHOUSE', 42, 17, 96, 3, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3438, N'TRLU13E', N'LULU CENTER - CENTRAL WAREHOUSE', N'LULU CENTER - CENTRAL WAREHOUSE', 42, 17, 96, 3, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3439, N'TRLU13LA', N'LULU HYPERMARKET -(LOCAL)', N'LULU HYPERMARKET -(LOCAL)', 42, 17, 96, 3, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3440, N'TRLU13LE', N'LULU HYPERMARKET -(LOCAL)', N'LULU HYPERMARKET -(LOCAL)', 42, 17, 96, 3, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3441, N'TRLU13T', N'LULU CENTER - CENTRAL WAREHOUSE', N'LULU CENTER - CENTRAL WAREHOUSE', 42, 17, 96, 3, 1, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3442, N'TRLU14', N'LULU CENTER - SHJ', N'LULU CENTER - SHJ', 42, 17, 96, 5, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3443, N'TRLU14E', N'LULU CENTER - SHJ', N'LULU CENTER - SHJ', 42, 17, 96, 5, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3444, N'TRLU15', N'LULU HYPER -FUJAIRAH', N'LULU HYPER -FUJAIRAH', 42, 17, 96, 9, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3445, N'TRLU15E', N'LULU HYPER -FUJAIRAH', N'LULU HYPER -FUJAIRAH', 42, 17, 96, 9, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3446, N'TRLU16', N'LULU CENTER - UAQ', N'LULU CENTER - UAQ', 42, 17, 96, 25, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3447, N'TRLU16E', N'LULU CENTER - UAQ', N'LULU CENTER - UAQ', 42, 17, 96, 25, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3448, N'TRLU17', N'LULU HYPERMARKET - AJMAN', N'LULU HYPERMARKET - AJMAN', 42, 17, 96, 10, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3449, N'TRLU17E', N'LULU HYPERMARKET - AJMAN', N'LULU HYPERMARKET - AJMAN', 42, 17, 96, 10, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3450, N'TRLU18', N'AL LULU AL MUMTAZ ELECT. DEVICES TR.', N'AL LULU AL MUMTAZ ELECT. DEVICES TR.', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3451, N'TRLU19', N'LULU AL ROLLA TRADING', N'LULU AL ROLLA TRADING', 13, 19, 20, 5, 0, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3452, N'TRLU20', N'LULU HYPER MARKET ( AL WAHDA MALL- ADH)', N'LULU HYPER MARKET ( AL WAHDA MALL- ADH)', 42, 17, 95, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3453, N'TRLU20E', N'LULU HYPER MARKET ( AL WAHDA MALL- ADH)', N'LULU HYPER MARKET ( AL WAHDA MALL- ADH)', 42, 17, 95, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3454, N'TRLU21', N'LULU HYPERMARKET-KARAMA', N'LULU HYPERMARKET-KARAMA', 42, 17, 96, 3, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3455, N'TRLU21E', N'LULU HYPERMARKET-KARAMA', N'LULU HYPERMARKET-KARAMA', 42, 17, 96, 3, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3456, N'TRLU22', N'LULU HYPERMARKET - KHALIDIYAH MALL (AUH)', N'LULU HYPERMARKET - KHALIDIYAH MALL (AUH)', 42, 17, 95, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3457, N'TRLU22E', N'LULU HYPERMARKET - KHALIDIYAH MALL (AUH)', N'LULU HYPERMARKET - KHALIDIYAH MALL (AUH)', 42, 17, 95, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3458, N'TRLU23', N'LULU EXPRESS -AL RAHA MALL (AUH)', N'LULU EXPRESS -AL RAHA MALL (AUH)', 42, 17, 95, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3459, N'TRLU23E', N'LULU EXPRESS -AL RAHA MALL (AUH)', N'LULU EXPRESS -AL RAHA MALL (AUH)', 42, 17, 95, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3460, N'TRLU24A', N'LULU HYPERMARKET    AL KUWAITAT', N'LULU HYPERMARKET    AL KUWAITAT', 13, 17, 95, 4, 1, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3461, N'TRLU24E', N'LULU HYPERMARKET    AL KUWAITAT', N'LULU HYPERMARKET    AL KUWAITAT', 13, 17, 95, 4, 1, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3462, N'TRLU25', N'LULU EXPRESS- MUSAFFA', N'LULU EXPRESS- MUSAFFA', 13, 17, 95, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3463, N'TRLU25E', N'LULU EXPRESS- MUSAFFA', N'LULU EXPRESS- MUSAFFA', 13, 17, 95, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3464, N'TRLU26', N'LUCKY MARKETING & TRADING', N'LUCKY MARKETING & TRADING', 13, 19, 20, 10, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3465, N'TRLU27', N'LULU HYPER MARKET (AL NAHDHA)', N'LULU HYPER MARKET (AL NAHDHA)', 42, 17, 96, 5, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
GO
print 'Processed 2200 total records'
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3466, N'TRLU27E', N'LULU HYPER MARKET (AL NAHDHA)', N'LULU HYPER MARKET (AL NAHDHA)', 42, 17, 96, 5, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3467, N'TRLU28', N'LULU HYPERMARKET - DIBBA', N'LULU HYPERMARKET - DIBBA', 42, 17, 96, 9, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3468, N'TRLU28E', N'LULU HYPERMARKET - DIBBA', N'LULU HYPERMARKET - DIBBA', 42, 17, 96, 9, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3469, N'TRLU29', N'LULU HYPER MARKET (AL FOAH -ALAIN)', N'LULU HYPER MARKET (AL FOAH -ALAIN)', 42, 17, 95, 4, 1, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3470, N'TRLU30', N'LULU HYPER MARKET (ARABIAN CENTRE-MIRDIFF)', N'LULU HYPER MARKET (ARABIAN CENTRE-MIRDIFF)', 42, 17, 96, 3, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3471, N'TRLU30E', N'LULU HYPER MARKET (ARABIAN CENTRE-MIRDIFF)', N'LULU HYPER MARKET (ARABIAN CENTRE-MIRDIFF)', 42, 17, 96, 3, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3472, N'TRLU31', N'LULU HYPER MARKET (MUSHRIF MALL)', N'LULU HYPER MARKET (MUSHRIF MALL)', 42, 17, 95, 3, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3473, N'TRLU31E', N'LULU HYPER MARKET (MUSHRIF MALL)', N'LULU HYPER MARKET (MUSHRIF MALL)', 42, 17, 95, 3, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3474, N'TRLU32', N'LULU HYPER MARKET (MADINAT ZAYED SHOPPING CENTRE)', N'LULU HYPER MARKET (MADINAT ZAYED SHOPPING CENTRE)', 42, 17, 95, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3475, N'TRLU32E', N'LULU HYPER MARKET (MADINAT ZAYED SHOPPING CENTRE)', N'LULU HYPER MARKET (MADINAT ZAYED SHOPPING CENTRE)', 42, 17, 95, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3476, N'TRLU33', N'LULU HYPER MARKET - RAK', N'LULU HYPER MARKET - RAK', 42, 17, 96, 8, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3477, N'TRLU33E', N'LULU HYPER MARKET - RAK', N'LULU HYPER MARKET - RAK', 42, 17, 96, 8, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3478, N'TRLU34', N'LULU CENTER - SALAM - AUH', N'LULU CENTER - SALAM - AUH', 42, 17, 95, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3479, N'TRLU34E', N'LULU CENTER - SALAM - AUH', N'LULU CENTER - SALAM - AUH', 42, 17, 95, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3480, N'TRMA01', N'EMIRATES & AL MANAMA CENTER LLC - AJMAN', N'EMIRATES & AL MANAMA CENTER LLC - AJMAN', 15, 18, 98, 10, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3481, N'TRMA01E', N'EMIRATES & AL MANAMA CENTER LLC - AJMAN', N'EMIRATES & AL MANAMA CENTER LLC - AJMAN', 15, 18, 98, 10, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3482, N'TRMA02', N'AJMAN & AL MANAMA SUPER MARKET LLC - SHJ', N'AJMAN & AL MANAMA SUPER MARKET LLC - SHJ', 15, 18, 98, 5, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3483, N'TRMA02E', N'AJMAN & AL MANAMA SUPER MARKET LLC - SHJ', N'AJMAN & AL MANAMA SUPER MARKET LLC - SHJ', 15, 18, 98, 5, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3484, N'TRMA03', N'AL MAJD GEN. TRDG. EST.', N'AL MAJD GEN. TRDG. EST.', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3485, N'TRMA04', N'AL MADINA HOUSE HOLD', N'AL MADINA HOUSE HOLD', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3486, N'TRMA05', N'AL MAZHAR ELECTRONICS LLC', N'AL MAZHAR ELECTRONICS LLC', 123, 17, 100, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3487, N'TRMA05A', N'AL MAZHAR ELECTRONICS LLC', N'AL MAZHAR ELECTRONICS LLC', 123, 17, 100, 2, 1, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3488, N'TRMA05W', N'AL MAZHAR ELECTRONICS LLC', N'AL MAZHAR ELECTRONICS LLC', 123, 17, 100, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3489, N'TRMA06', N'MALALLAH & DARWISH AL-RABHA STORE', N'MALALLAH & DARWISH AL-RABHA STORE', 13, 19, 20, 4, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3490, N'TRMA07', N'MARAHABA  HOUSEHOLD', N'MARAHABA  HOUSEHOLD', 13, 19, 20, 8, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3491, N'TRMA08', N'MARWA PARCO SUPERMARKET', N'MARWA PARCO SUPERMARKET', 15, 19, 105, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3492, N'TRMA09', N'AL MAJIRY ELECTRONICS', N'AL MAJIRY ELECTRONICS', 13, 19, 20, 5, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3493, N'TRMA09E', N'AL MAJIRY ELECTRONICS', N'AL MAJIRY ELECTRONICS', 13, 19, 20, 5, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3494, N'TRMA10', N'AL MADINA INTERNATIONAL MARKETS L.L.C', N'AL MADINA INTERNATIONAL MARKETS L.L.C', 13, 18, 20, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3495, N'TRMA100', N'AL MADINA HYPER MARKET L.L.C', N'AL MADINA HYPER MARKET L.L.C', 13, 17, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3496, N'TRMA100A', N'AL MADINA HYPER MARKET L.L.C', N'AL MADINA HYPER MARKET L.L.C', 13, 17, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3497, N'TRMA101', N'MALABAR SUPERMARKET (JABELALI)', N'MALABAR SUPERMARKET (JABELALI)', 13, 17, 112, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3498, N'TRMA101A', N'MALABAR SUPERMARKET (JABELALI)', N'MALABAR SUPERMARKET (JABELALI)', 13, 17, 112, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3499, N'TRMA102', N'AL MADINA HYPERMARKET LLC (BANIYAS AUH)', N'AL MADINA HYPERMARKET LLC (BANIYAS AUH)', 42, 18, 97, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3500, N'TRMA102E', N'AL MADINA HYPERMARKET LLC (BANIYAS AUH)', N'AL MADINA HYPERMARKET LLC (BANIYAS AUH)', 42, 18, 97, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3501, N'TRMA103', N'AL MADINA HYPERMARKET -2', N'AL MADINA HYPERMARKET -2', 42, 18, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3502, N'TRMA103A', N'AL MADINA HYPERMARKET -2', N'AL MADINA HYPERMARKET -2', 42, 18, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3503, N'TRMA104', N'MADINA  ALMARAI  SUPERMARKET', N'MADINA  ALMARAI  SUPERMARKET', 15, 146, 22, 2, 0, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3504, N'TRMA104E', N'MADINA  ALMARAI  SUPERMARKET', N'MADINA  ALMARAI  SUPERMARKET', 15, 146, 22, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3505, N'TRMA105', N'MALMAS AL-MADINA HYPERMARKET LLC', N'MALMAS AL-MADINA HYPERMARKET LLC', 42, 18, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3506, N'TRMA105A', N'MALMAS AL-MADINA HYPERMARKET LLC', N'MALMAS AL-MADINA HYPERMARKET LLC', 42, 18, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3507, N'TRMA106', N'AL MASSAM TRADING & ELECTRICAL EST.', N'AL MASSAM TRADING & ELECTRICAL EST.', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3508, N'TRMA106E', N'AL MASSAM TRADING & ELECTRICAL EST.', N'AL MASSAM TRADING & ELECTRICAL EST.', 13, 19, 20, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3509, N'TRMA107', N'EXPRESS AL MADINA HYPERMARKET LLC', N'EXPRESS AL MADINA HYPERMARKET LLC', 42, 18, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3510, N'TRMA107A', N'EXPRESS AL MADINA HYPERMARKET LLC', N'EXPRESS AL MADINA HYPERMARKET LLC', 42, 18, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3511, N'TRMA108', N'MADINAT SANMARCO SUPERMARKET LLC', N'MADINAT SANMARCO SUPERMARKET LLC', 15, 19, 22, 3, 1, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3512, N'TRMA108A', N'MADINAT SANMARCO SUPERMARKET LLC', N'MADINAT SANMARCO SUPERMARKET LLC', 15, 19, 22, 3, 1, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3513, N'TRMA108E', N'MADINAT SANMARCO SUPERMARKET LLC', N'MADINAT SANMARCO SUPERMARKET LLC', 15, 19, 22, 3, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3514, N'TRMA109', N'MALMAS AL-MADINA SUPERMARKET LLC', N'MALMAS AL-MADINA SUPERMARKET LLC', 42, 18, 97, 3, 1, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3515, N'TRMA109A', N'MALMAS AL-MADINA SUPERMARKET LLC', N'MALMAS AL-MADINA SUPERMARKET LLC', 42, 18, 97, 3, 1, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3516, N'TRMA10E', N'AL MADINA INTERNATIONAL MARKETS L.L.C', N'AL MADINA INTERNATIONAL MARKETS L.L.C', 13, 18, 20, 2, 0, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3517, N'TRMA110', N'AL MADINA HYPER MARKET LLC BR. 2', N'AL MADINA HYPER MARKET LLC BR. 2', 42, 18, 97, 2, 1, 1, 40, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3518, N'TRMA110A', N'AL MADINA HYPER MARKET LLC BR. 2', N'AL MADINA HYPER MARKET LLC BR. 2', 42, 18, 97, 2, 1, 1, 41, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3519, N'TRMA111', N'SALAM AL MADINA SUPERMARKET L.L.C', N'SALAM AL MADINA SUPERMARKET L.L.C', 15, 19, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3520, N'TRMA111E', N'SALAM AL MADINA SUPERMARKET L.L.C', N'SALAM AL MADINA SUPERMARKET L.L.C', 15, 19, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3521, N'TRMA112', N'AL MANAMA HYPERMARKET LLC ( SHJ )', N'AL MANAMA HYPERMARKET LLC ( SHJ )', 13, 18, 98, 5, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3522, N'TRMA112E', N'AL MANAMA HYPERMARKET LLC ( SHJ )', N'AL MANAMA HYPERMARKET LLC ( SHJ )', 13, 18, 98, 5, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3523, N'TRMA12', N'MANOJ ELECTRONICS', N'MANOJ ELECTRONICS', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3524, N'TRMA14', N'MALSONS TRADING CO.', N'MALSONS TRADING CO.', 35, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3525, N'TRMA15', N'MAHZI HOME APPLIANCES', N'MAHZI HOME APPLIANCES', 13, 19, 20, 3, 0, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3526, N'TRMA16', N'SHARJAH & AL MANAMA SUPERMARKET', N'SHARJAH & AL MANAMA SUPERMARKET', 15, 18, 98, 5, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3527, N'TRMA16E', N'SHARJAH & AL MANAMA SUPERMARKET', N'SHARJAH & AL MANAMA SUPERMARKET', 15, 18, 98, 5, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3528, N'TRMA17', N'MAYSALOUN ELECTRONICS EST.', N'MAYSALOUN ELECTRONICS EST.', 13, 19, 20, 4, 0, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3529, N'TRMA18', N'AL MASSAM TRADING & ELECTRICAL EST.', N'AL MASSAM TRADING & ELECTRICAL EST.', 13, 19, 20, 3, 0, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3530, N'TRMA18E', N'AL MASSAM TRADING & ELECTRICAL EST.', N'AL MASSAM TRADING & ELECTRICAL EST.', 13, 19, 20, 3, 0, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3531, N'TRMA19', N'AL MASAOOD OIL INDUSTRY SUPPLIES & SERVICES CO.', N'AL MASAOOD OIL INDUSTRY SUPPLIES & SERVICES CO.', 136, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3532, N'TRMA23', N'MASAFI GAS DISTRIBUTING', N'MASAFI GAS DISTRIBUTING', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3533, N'TRMA24', N'AL MANAMA HYPERMARKET - Dubai', N'AL MANAMA HYPERMARKET - Dubai', 15, 18, 98, 3, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3534, N'TRMA24E', N'AL MANAMA HYPERMARKET - Dubai', N'AL MANAMA HYPERMARKET - Dubai', 15, 18, 98, 3, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3535, N'TRMA25', N'AL MANAMA HYPERMARKET (L.L.C.)', N'AL MANAMA HYPERMARKET (L.L.C.)', 15, 18, 98, 10, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3536, N'TRMA25E', N'AL MANAMA HYPERMARKET (L.L.C.)', N'AL MANAMA HYPERMARKET (L.L.C.)', 15, 18, 98, 10, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3537, N'TRMA26', N'MALABAR SUPERMARKET', N'MALABAR SUPERMARKET', 15, 18, 112, 3, 1, 1, 38, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3538, N'TRMA26E', N'MALABAR SUPERMARKET', N'MALABAR SUPERMARKET', 15, 18, 112, 3, 1, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3539, N'TRMA27', N'AL MADINA SUPERMARKET', N'AL MADINA SUPERMARKET', 15, 19, 97, 5, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3540, N'TRMA28', N'MAYERS ELECTRONICS L.L.C.', N'MAYERS ELECTRONICS L.L.C.', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3541, N'TRMA29', N'AL MANAMA HYPERMARKET L.L.C. (FUJ)', N'AL MANAMA HYPERMARKET L.L.C. (FUJ)', 15, 18, 98, 9, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3542, N'TRMA29E', N'AL MANAMA HYPERMARKET L.L.C. (FUJ)', N'AL MANAMA HYPERMARKET L.L.C. (FUJ)', 15, 18, 98, 9, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3543, N'TRMA30', N'MALTA TRADING', N'MALTA TRADING', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3544, N'TRMA31', N'MATHAI TRADING', N'MATHAI TRADING', 35, 19, 21, 3, 0, 1, 59, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3545, N'TRMA32', N'EMIRATES & AL MANAMA CENTER LLC - SHARJAH', N'EMIRATES & AL MANAMA CENTER LLC - SHARJAH', 15, 18, 98, 5, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3546, N'TRMA32E', N'EMIRATES & AL MANAMA CENTER LLC - SHARJAH', N'EMIRATES & AL MANAMA CENTER LLC - SHARJAH', 15, 18, 98, 5, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3547, N'TRMA33', N'MAAFI SUPER MARKET', N'MAAFI SUPER MARKET', 15, 19, 20, 3, 0, 1, 68, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3548, N'TRMA34', N'MACRO EMIRATES', N'MACRO EMIRATES', 42, 17, 109, 5, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3549, N'TRMA34A', N'MACRO EMIRATES', N'MACRO EMIRATES', 42, 17, 109, 5, 1, 1, 62, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3550, N'TRMA34W', N'MACRO EMIRATES', N'MACRO EMIRATES', 32, 17, 109, 5, 1, 1, 50, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3551, N'TRMA35', N'AL MADINA ELECTRONICS', N'AL MADINA ELECTRONICS', 13, 19, 20, 25, 0, 1, 42, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3552, N'TRMA37', N'AL MADINA BAZAR TRADING (L.L.C)', N'AL MADINA BAZAR TRADING (L.L.C)', 13, 19, 97, 3, 0, 1, 36, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3553, N'TRMA38', N'AL MAYA TRADING CO LLC (L.PD) (CENTRAL W/H), DUBAI', N'AL MAYA TRADING CO LLC (L.PD) (CENTRAL W/H), DUBAI', 15, 19, 72, 3, 1, 1, 49, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3554, N'TRMA39', N'MARLIN FURNITURE LLC', N'MARLIN FURNITURE LLC', 35, 31, 21, 3, 1, 1, 48, CAST(0x81370B00 AS Date), 30)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3555, N'TRMA40', N'MAZAYA AL MADINA MARKET', N'MAZAYA AL MADINA MARKET', 15, 19, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3556, N'TRMA40A', N'MAZAYA AL MADINA MARKET', N'MAZAYA AL MADINA MARKET', 15, 19, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3557, N'TRMA41', N'AL MANAMA HYPERMARKET LLC (UAQ)', N'AL MANAMA HYPERMARKET LLC (UAQ)', 13, 18, 98, 25, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3558, N'TRMA41A', N'AL MANAMA HYPERMARKET LLC (UAQ)', N'AL MANAMA HYPERMARKET LLC (UAQ)', 13, 18, 98, 25, 1, 1, 73, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3559, N'TRMA41E', N'AL MANAMA HYPERMARKET LLC (UAQ)', N'AL MANAMA HYPERMARKET LLC (UAQ)', 13, 18, 98, 25, 1, 1, 39, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3560, N'TRMA42', N'MAX FACILITIES MANAGEMENT (L.L.C)', N'MAX FACILITIES MANAGEMENT (L.L.C)', 13, 17, 82, 3, 1, 1, 63, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3561, N'TRMA48', N'MARWIN GENERAL TRADING', N'MARWIN GENERAL TRADING', 13, 19, 20, 3, 0, 1, 60, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3562, N'TRMA51', N'MAHE TRADING CO. LLC', N'MAHE TRADING CO. LLC', 13, 19, 22, 3, 0, 1, 60, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3563, N'TRMA53', N'MANGO SUPER MARKET  ( MADINA)', N'MANGO SUPER MARKET  ( MADINA)', 13, 18, 97, 3, 0, 1, 53, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3564, N'TRMA53A', N'MANGO SUPER MARKET  ( MADINA)', N'MANGO SUPER MARKET  ( MADINA)', 13, 18, 97, 3, 0, 1, 52, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3565, N'TRMA59', N'MADRAS TRADING', N'MADRAS TRADING', 13, 19, 20, 3, 0, 1, 44, CAST(0x81370B00 AS Date), 28)
INSERT [dbo].[Customer] ([Customer_Id], [Customer_Code], [Customer_Name], [Customer_Name_BL], [Business_Type], [Customer_Type], [Customer_Group], [Location_Id], [Key_Account], [Status], [Updated_By], [Updated_Date], [Sales_Channel]) VALUES (3566, N'TRMA61', N'MARJAN PLAZA', N'MARJAN PLAZA', 13, 19, 20, 2, 0, 1, 45, CAST(0x81370B00 AS Date), 28)
GO
print 'Processed 2300 total records'
SET IDENTITY_INSERT [dbo].[Customer] OFF
/****** Object:  Table [dbo].[Absent]    Script Date: 09/30/2013 17:11:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Absent](
	[Absent_Id] [int] IDENTITY(1,1) NOT NULL,
	[Date] [date] NOT NULL,
	[Site_User_Id] [int] NOT NULL,
	[OnLeave] [bit] NULL,
 CONSTRAINT [PK_Absent] PRIMARY KEY CLUSTERED 
(
	[Absent_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[Absent] ON
INSERT [dbo].[Absent] ([Absent_Id], [Date], [Site_User_Id], [OnLeave]) VALUES (1, CAST(0x82370B00 AS Date), 36, 0)
INSERT [dbo].[Absent] ([Absent_Id], [Date], [Site_User_Id], [OnLeave]) VALUES (2, CAST(0x7F370B00 AS Date), 49, 1)
INSERT [dbo].[Absent] ([Absent_Id], [Date], [Site_User_Id], [OnLeave]) VALUES (3, CAST(0x80370B00 AS Date), 49, 1)
INSERT [dbo].[Absent] ([Absent_Id], [Date], [Site_User_Id], [OnLeave]) VALUES (5, CAST(0x8F370B00 AS Date), 42, 0)
INSERT [dbo].[Absent] ([Absent_Id], [Date], [Site_User_Id], [OnLeave]) VALUES (6, CAST(0x8D370B00 AS Date), 49, 1)
INSERT [dbo].[Absent] ([Absent_Id], [Date], [Site_User_Id], [OnLeave]) VALUES (7, CAST(0x96370B00 AS Date), 52, 0)
INSERT [dbo].[Absent] ([Absent_Id], [Date], [Site_User_Id], [OnLeave]) VALUES (8, CAST(0x8B370B00 AS Date), 49, 0)
INSERT [dbo].[Absent] ([Absent_Id], [Date], [Site_User_Id], [OnLeave]) VALUES (9, CAST(0x97370B00 AS Date), 49, 0)
SET IDENTITY_INSERT [dbo].[Absent] OFF
/****** Object:  StoredProcedure [dbo].[ChangePassword]    Script Date: 09/30/2013 17:13:41 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Change Password
-- =============================================
CREATE PROCEDURE [dbo].[ChangePassword]
	@User_Id int,
	@Password nvarchar(50)
AS
BEGIN
	Update Site_User
	set Password = @Password
	where Site_User_Id = @User_Id
END
GO
/****** Object:  UserDefinedFunction [dbo].[GetAbsentFn]    Script Date: 09/30/2013 17:14:19 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Absent
-- =============================================
CREATE function [dbo].[GetAbsentFn]
	(@Absent_Id int = NULL,
	 @Date datetime = NULL,
	 @Site_User_Id int = NULL,
	 @OnLeave bit = NULL)
	Returns @Absent Table
	([Absent_Id] [int],
	[Date] [date],
	[Site_User_Id] [int],
	[OnLeave] [bit])
AS
BEGIN
	insert into @Absent
	select * from Absent  
	where (Absent_Id = @Absent_Id OR @Absent_Id IS NULL)
	AND	  (Date = @Date OR @Date IS NULL)
	AND	  (Site_User_Id = @Site_User_Id OR @Site_User_Id IS NULL)
	AND   (OnLeave = @OnLeave OR @OnLeave is NULL)
	
	Return
END
GO
/****** Object:  StoredProcedure [dbo].[GetAbsent]    Script Date: 09/30/2013 17:13:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Absent
-- =============================================
CREATE procedure [dbo].[GetAbsent]
	(@Absent_Id int = NULL,
	 @Date datetime = NULL,
	 @Site_User_Id int = NULL,
	 @OnLeave bit = NULL)
AS
BEGIN
	Declare @Absent Table
					([Absent_Id] [int],
					[Date] [date],
					[Site_User_Id] [int],
					[OnLeave] [bit])
	
	insert into @Absent
	select * from Absent  
	where (Absent_Id = @Absent_Id OR @Absent_Id IS NULL)
	AND	  (Date = @Date OR @Date IS NULL)
	AND	  (Site_User_Id = @Site_User_Id OR @Site_User_Id IS NULL)
	AND   (OnLeave = @OnLeave OR @OnLeave is NULL)
	
	select * from @Absent
END
GO
/****** Object:  StoredProcedure [dbo].[GetCustomer]    Script Date: 09/30/2013 17:13:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Customer 
-- =============================================
CREATE PROCEDURE [dbo].[GetCustomer]
	@Customer_Id int = NULL,
	@Customer_Code nvarchar(50) = NULL,
	@Customer_Name nvarchar(50) = NULL,
	@Customer_Name_BL nvarchar(50) = NULL,
	@Business_Type int = NULL,
	@Customer_Type int = NULL,
	@Customer_Group int = NULL,
	@Location_Id int = NULL,
	@Key_Account bit = NULL,
	@Status bit = NULL,
	@Sales_Channel int = NULL
AS
BEGIN
	Select * from Customer 
	where (Customer_Id = @Customer_Id  OR @Customer_Id IS NULL)
	AND   (Customer_Code = @Customer_Code  OR @Customer_Code IS NULL)
	AND   (Customer_Name = @Customer_Name  OR @Customer_Name IS NULL)
	AND   (Customer_Name_BL = @Customer_Name_BL  OR @Customer_Name_BL IS NULL)
	AND   (Business_Type = @Business_Type  OR @Business_Type IS NULL)
	AND   (Customer_Type = @Customer_Type  OR @Customer_Type IS NULL)
	AND   (Customer_Group = @Customer_Group  OR @Customer_Group IS NULL)
	AND   (Location_Id = @Location_Id  OR @Location_Id IS NULL)
	AND   (Key_Account = @Key_Account  OR @Key_Account IS NULL)
	AND   (Status = @Status  OR @Status IS NULL)
	AND   (Sales_Channel = @Sales_Channel OR @Sales_Channel is null)
END
GO
/****** Object:  Table [dbo].[Contact]    Script Date: 09/30/2013 17:11:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Contact](
	[Contact_Id] [int] IDENTITY(1,1) NOT NULL,
	[Contact_Name] [nvarchar](50) NULL,
	[Contact_Name_BL] [nvarchar](50) NULL,
	[Customer_Id] [int] NOT NULL,
	[Department] [nvarchar](50) NULL,
	[Department_BL] [nvarchar](50) NULL,
	[Mobile] [nvarchar](50) NULL,
	[Status] [bit] NOT NULL,
 CONSTRAINT [PK_Contact] PRIMARY KEY CLUSTERED 
(
	[Contact_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[Contact] ON
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (1, N'MANAGER', N'MANAGER', 2737, N'SALES', N'SALES', N'0500003', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (2, N'MANAGER1', N'MANAGER1', 3434, N'DISPLAY', N'DISPLAY', N'0509898998', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (3, N'MANAGER12', N'MANAGER12', 3434, N'DISPLAY', N'DISPLAY', N'0509898998', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (4, N'SHEIKH', N'SHEIKH', 1266, N'PURCHASE', N'PURCHASE', N'0500001', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (5, N'LULU-SHJ-08E', N'LULU-SHJ-08E', 1771, N'MKT', N'MKT', N'123456', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (6, N'ABDUL WAHID', N'ABDUL WAHID', 3418, N'SALES', N'SALES', N'405050', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (7, N'ABDUL MOHAMMED', N'ABDUL MOHAMMED', 3416, N'PURCHASE', N'PURCHASE', N'059009090', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (8, N'YOUSEF ALI', N'YOUSEF ALI', 3416, N'PURCHASE', N'PURCHASE', N'55555555555', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (9, N'FERNANDES', N'FERNANDES', 3438, N'SALES', N'SALES', N'090000000', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (10, N'RASHEED', N'RASHEED', 1876, N'MERCHANDISER', N'MERCHANDISER', N'0594894440', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (11, N'NAZEER', N'NAZEER', 2756, N'ELECTRONICS & APPLIANCE', N'ELECTRONICS & APPLIANCE', N'0551006133', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (12, N'ABRAHAM', N'ABRAHAM', 3425, N'CENTRAL BUYING MANAGER', N'CENTRAL BUYING MANAGER', N'0504468786', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (13, N'SHERYL', N'SHERYL', 3423, N'CENTRAL BUYER(SDA-MDA)', N'CENTRAL BUYER(SDA-MDA)', N'0506112644', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (14, N'DEEPAK', N'DEEPAK', 2109, N'BUYER', N'BUYER', N'0559076605', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (15, N'YOUSUF', N'YOUSUF', 3423, N'CENTRAL BUYING MANAGER', N'CENTRAL BUYING MANAGER', N'000000001', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (16, N'YOUSUF ALI', N'YOUSUF ALI', 3441, N'SALES', N'SALES', N'99999999', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (17, N'MOHAMMED', N'MOHAMMED', 3453, N'FOOD', N'FOOD', N'0504003864', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (18, N'RAFAT', N'RAFAT', 2195, N'MANAGING DIRECTOR', N'MANAGING DIRECTOR', N'0590000001', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (19, N'IBRAHIM', N'IBRAHIM', 2160, N'SECTION MANAGER', N'SECTION MANAGER', N'0909090909', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (20, N'ABDUL RAHMAN', N'ABDUL RAHMAN', 1807, N'PURCHASE', N'PURCHASE', N'90809090', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (21, N'FERNANDO', N'FERNANDO', 3425, N'PURCHASER', N'PURCHASER', N'000000001', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (22, N'MOHAMMAD', N'MOHAMMAD', 3218, N'PURCHASER', N'PURCHASER', N'000000001', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (23, N'RAMZI', N'RAMZI', 2309, N'BUYER', N'BUYER', N'0552625156', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (24, N'SAMEER', N'SAMEER', 2227, N'PURCHASE MANAGER', N'PURCHASE MANAGER', N'090909090909', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (25, N'MR.BERNIE', N'MR.BERNIE', 1903, N'BUYER', N'BUYER', N'', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (26, N'MR. MURSSEY', N'MR. MURSSEY', 1836, N'ELECTRONIC. TV HIFI /APP.', N'ELECTRONIC. TV HIFI /APP.', N'O555106714', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (27, N'MR. AHMAD SAYYAD', N'MR. AHMAD SAYYAD', 2423, N'ELECTRONIC.  TV/APP.', N'ELECTRONIC.  TV/APP.', N'0552999335', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (29, N'VASU', N'VASU', 3412, N'ACCOUNTS', N'ACCOUNTS', N'04 3511119', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (30, N'Ahamed', N'Ahamed', 2160, N'SECTION Manager', N'SECTION Manager', N'0554502591', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (31, N'MR. RASHEED', N'MR. RASHEED', 1865, N'CENTRAL BUYER APPLIANCES.', N'CENTRAL BUYER APPLIANCES.', N'0540809475', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (32, N'MR. FAHAD', N'MR. FAHAD', 1866, N'MARKET BUYER TV/APP.', N'MARKET BUYER TV/APP.', N'0565855077', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (33, N'MR. ALHAM', N'MR. ALHAM', 1835, N'SECTION MANAGER -TV/APP.', N'SECTION MANAGER -TV/APP.', N'0531931428', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (34, N'MR. MASOOD JINNAH', N'MR. MASOOD JINNAH', 1856, N'SECTION MANAGER TV/APP.', N'SECTION MANAGER TV/APP.', N'0559949234', 1)
INSERT [dbo].[Contact] ([Contact_Id], [Contact_Name], [Contact_Name_BL], [Customer_Id], [Department], [Department_BL], [Mobile], [Status]) VALUES (35, N'MR. RESHAM', N'MR. RESHAM', 1853, N'SECTION MANAGER TV/APP.', N'SECTION MANAGER TV/APP.', N'0580575302', 1)
SET IDENTITY_INSERT [dbo].[Contact] OFF
/****** Object:  View [dbo].[ActiveCustomerLocationRegionCountryView]    Script Date: 09/30/2013 17:11:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[ActiveCustomerLocationRegionCountryView]
AS
SELECT     dbo.Customer.Customer_Id, dbo.Customer.Customer_Name, dbo.Customer.Key_Account, dbo.Customer.Status AS Customer_Status, dbo.Location.Location_Id, 
                      dbo.Location.Location_Name, dbo.Customer.Customer_Name_BL, dbo.Customer.Updated_By, dbo.Customer.Updated_Date, dbo.Customer.Customer_Code, 
                      dbo.Customer.Business_Type, dbo.Customer.Customer_Type, dbo.Customer.Customer_Group, dbo.Country.Country_Name, dbo.Region.Region_Name
FROM         dbo.Customer INNER JOIN
                      dbo.Location ON dbo.Customer.Location_Id = dbo.Location.Location_Id INNER JOIN
                      dbo.Region ON dbo.Location.Region_Id = dbo.Region.Region_Id INNER JOIN
                      dbo.Country ON dbo.Region.Country_Id = dbo.Country.Country_Id
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[24] 4[17] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "Customer"
            Begin Extent = 
               Top = 6
               Left = 253
               Bottom = 249
               Right = 416
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Location"
            Begin Extent = 
               Top = 6
               Left = 476
               Bottom = 110
               Right = 638
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Region"
            Begin Extent = 
               Top = 145
               Left = 665
               Bottom = 249
               Right = 825
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Country"
            Begin Extent = 
               Top = 126
               Left = 38
               Bottom = 215
               Right = 199
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 17
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 1470
         Table = 1170
         Output = 720
         Append = 1400
         NewV' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'ActiveCustomerLocationRegionCountryView'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'alue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'ActiveCustomerLocationRegionCountryView'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'ActiveCustomerLocationRegionCountryView'
GO
/****** Object:  StoredProcedure [dbo].[InsertUpdateManagerExecutive]    Script Date: 09/30/2013 17:14:04 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	InsertUpdate ManagerExecutive 
-- =============================================
Create PROCEDURE [dbo].[InsertUpdateManagerExecutive]
	@Manager_Exec_Id int,
	@Manager_Id int,
	@Executive_Id int
AS
BEGIN
	MERGE Manager_Executive AS target
    USING (SELECT @Manager_Exec_Id, @Manager_Id, @Executive_Id) 
    AS source (Manager_Exec_Id, Manager_Id, Executive_Id)
    ON (target.Manager_Exec_Id = source.Manager_Exec_Id)
    WHEN MATCHED THEN 
        UPDATE SET	Manager_Id = source.Manager_Id,
					Executive_Id = source.Executive_Id
	WHEN NOT MATCHED THEN	
	    insert 
		values(source.Manager_Id,
			   source.Executive_Id);
END
GO
/****** Object:  StoredProcedure [dbo].[InsertUpdateLinkedExecutive]    Script Date: 09/30/2013 17:14:04 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Insert Update Linked Executives 
-- =============================================
Create PROCEDURE [dbo].[InsertUpdateLinkedExecutive]
	@User_Id int,
	@LinkedUsers nvarchar(100)
AS
BEGIN
	declare @TempTable Table(LinkedUserId nvarchar(5))
	insert into @TempTable
	select * from Split(@LinkedUsers, ',')
	
	delete from Manager_Executive where Manager_Id = @User_Id
	
	Declare @TempId int
	while ((select count(*) from @TempTable) > 0)
	begin
		select top 1 @TempId = LinkedUserId from @TempTable order by LinkedUserId
		insert into Manager_Executive values(@TempId, @User_Id)
		delete from @TempTable where LinkedUserId = @TempId
	end
END
GO
/****** Object:  StoredProcedure [dbo].[InsertUpdateAbsent]    Script Date: 09/30/2013 17:14:00 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Insert Update Absent 
-- =============================================
CREATE PROCEDURE [dbo].[InsertUpdateAbsent]
	@Absent_Id int,
	@Date datetime,
	@Site_User_Id int,
	@OnLeave bit
AS
BEGIN
	MERGE Absent AS target
    USING (SELECT @Absent_Id, @Date, @Site_User_Id, @OnLeave) 
    AS source (Absent_Id, Date, Site_User_Id, OnLeave)
    ON (target.Absent_Id = source.Absent_Id OR
	   (target.Date = source.Date and target.Site_User_Id = source.Site_User_Id)
	   )
    WHEN MATCHED THEN 
        UPDATE SET	Date = source.Date,
					Site_User_Id = source.Site_User_Id,
					OnLeave = source.OnLeave
	WHEN NOT MATCHED THEN	
	    insert 
		values(source.Date, source.Site_User_Id, source.OnLeave);
END
GO
/****** Object:  StoredProcedure [dbo].[InsertUpdateCustomer]    Script Date: 09/30/2013 17:14:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	InsertUpdate Customer 
-- =============================================
CREATE PROCEDURE [dbo].[InsertUpdateCustomer]
	@Customer_Id int = NULL,
	@Customer_Code nvarchar(100) = NULL,
	@Customer_Name nvarchar(100) = NULL,
	@Customer_Name_BL nvarchar(100) = NULL,
	@Business_Type int = NULL,
	@Customer_Type int = NULL,
	@Customer_Group int = NULL,
	@Location_Id int = NULL,
	@Key_Account bit = NULL,
	@Status bit,
	@Updated_By int,
	@Sales_Channel int = NULL,
	@CustId int Output
AS
BEGIN
	MERGE Customer AS target
    USING (SELECT @Customer_Id, @Customer_Code, @Customer_Name, @Customer_Name_BL, @Business_Type, 
				  @Customer_Type, @Customer_Group, @Location_Id, @Key_Account, @Status, @Updated_By, @Sales_Channel) 
    AS source (Coustomer_Id, Customer_Code, Customer_Name, Customer_Name_BL, Business_Type, 
			   Customer_Type, Customer_Group, Location_Id, Key_Account, Status, Updated_By, Sales_Channel)
    ON (target.Customer_Id = source.Coustomer_Id)
    WHEN MATCHED THEN 
        UPDATE SET	Customer_Code = source.Customer_Code,
					Customer_Name = source.Customer_Name,
					Customer_Name_BL = source.Customer_Name_BL,
					Business_Type = source.Business_Type,
					Customer_Type = source.Customer_Type,
					Customer_Group = source.Customer_Group,
					Location_Id = source.Location_Id,
					Key_Account = source.Key_Account,
					Status = source.Status,
					Updated_By = source.Updated_By,
					Updated_Date = GETDATE(),
					Sales_Channel = source.Sales_Channel
	WHEN NOT MATCHED THEN	
	    insert 
		values( source.Customer_Code,
				source.Customer_Name,
				source.Customer_Name_BL,
				source.Business_Type,
				source.Customer_Type,
				source.Customer_Group,
				source.Location_Id,
				source.Key_Account,
				source.Status,
				source.Updated_By,
				GETDATE(),
				source.Sales_Channel);
				
	if(@Customer_Id is null)
		set @CustId = IDENT_CURRENT ('Customer') 
	else
		set @CustId = @Customer_Id
END
GO
/****** Object:  StoredProcedure [dbo].[GetUserRoleLocationRegionCountry]    Script Date: 09/30/2013 17:13:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get UserRoleLocationRegionCountry
-- =============================================
CREATE PROCEDURE [dbo].[GetUserRoleLocationRegionCountry]
	 @User_Id int = NULL,
	 @UserName nvarchar(50) = NULL,
	 @Email nvarchar(50) = NULL,
	 @Status bit = NULL,
	 @RoleId int = NULL,
	 @RoleName nvarchar(50) = NULL,
	 @LocationId int = NULL,
	 @LocationName nvarchar(50) = NULL,
	 @RegionId int = NULL,
	 @RegionName nvarchar(50) = NULL,
	 @CountryId int = NULL,
	 @CountryName nvarchar(50) = NULL
AS
BEGIN
	select * from UserRoleLocationRegionCountryView
	where (Site_User_Id = @User_Id OR @User_Id is NULL)
	and (Name = @UserName OR @UserName is NULL)
	and (Email = @Email OR @Email is NULL)
	and (Status = @Status OR @Status is NULL)
	and (Role_Id = @RoleId OR @RoleId is NULL)
	and (Role_Name = @RoleName OR @RoleName is NULL)
	and (Location_Id = @LocationId OR @LocationId is NULL)
	and (Location_Name = @LocationName OR @LocationName is NULL)
	and (Region_Id = @RegionId OR @RegionId is NULL)
	and (Region_Name = @RegionName OR @RegionName is NULL)
	and (Country_Id = @CountryId OR @CountryId is NULL)
	and (Country_Name = @CountryName OR @CountryName is NULL)
END
GO
/****** Object:  StoredProcedure [dbo].[GetUser]    Script Date: 09/30/2013 17:13:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get User
-- =============================================
CREATE PROCEDURE [dbo].[GetUser]
	@UserId int = NULL,
	@UserName nvarchar(50) = NULL,
	@Password nvarchar(50) = NULL
AS
BEGIN
	select su.*, ul.Language_Id from Site_User su
	left join   User_Language ul
	on ul.Site_User_Id = su.Site_User_Id
	where (su.Site_User_Id = @UserId OR @UserId IS NULL)
	AND   (Email = @UserName OR @UserName IS NULL)
	AND	  (Password = @Password OR @Password IS NULL)
END
GO
/****** Object:  StoredProcedure [dbo].[GetTarget]    Script Date: 09/30/2013 17:13:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Target
-- =============================================
CREATE PROCEDURE [dbo].[GetTarget]
	@User_Id int = NULL,
	@Target_Id int = NULL,
	@Month int = NULL,
	@Year int = NULL,
	@Sales int = NULL,
	@Collection int = NULL,
	@Secondary_Sales int = NULL
AS
BEGIN
	select * from Target  
	where (Target_Id = @Target_Id OR @Target_Id IS NULL)
	AND   (Site_User_Id = @User_Id OR @User_Id IS NULL)
	AND	  (Month = @Month OR @Month IS NULL)
	AND	  (Year = @Year OR @Year IS NULL)
	AND	  (Sales = @Sales OR @Sales IS NULL)
	AND	  (Collection = @Collection OR @Collection IS NULL)
	AND	  (Secondary_Sales = @Secondary_Sales OR @Secondary_Sales IS NULL)
END
GO
/****** Object:  UserDefinedFunction [dbo].[GetManagerExecutivesFn]    Script Date: 09/30/2013 17:14:22 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Manager Executives Fn
-- =============================================
CREATE function [dbo].[GetManagerExecutivesFn]
	(@Manager_Id int = NULL)
	
	Returns
	@Site_User_Ids Table (Site_User_Id int, Site_User_Name nvarchar(50))
AS
BEGIN
	if(@Manager_Id in (select Site_User_Id from Site_User where Role_Id = 1))
		insert into @Site_User_Ids
		select Site_User_Id, Name from Site_User
		where Role_Id != 1
	else
		insert into @Site_User_Ids
		select Executive_Id , su.Name
		from Manager_Executive me
		join Site_User su
		on su.Site_User_Id = me.Executive_Id
		where Manager_Id = @Manager_Id	
Return
END
GO
/****** Object:  StoredProcedure [dbo].[GetManagerExecutive]    Script Date: 09/30/2013 17:13:53 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Manager Executive 
-- =============================================
CREATE PROCEDURE [dbo].[GetManagerExecutive] 
	@Manager_Id int = NULL,
	@Executive_Id int = NULL
AS
BEGIN	
	Declare @Temp table(Name nvarchar(50), Manager_Exec_Id int, Executive_Id int, Manager_Id int)
	Declare @Temp1 table(Name nvarchar(50), Manager_Exec_Id int, Executive_Id int, Manager_Id int)

	if(@Manager_Id in (select Site_User_Id from Site_User where Role_Id = 1))
		Begin
			insert into @Temp1(Executive_Id, Name, Manager_Exec_Id, Manager_Id)
			select distinct su.Site_User_Id, su.Name, me.Manager_Exec_Id, me.Manager_Id 
			from Manager_Executive me
			right join Site_User su on me.Executive_Id = su.Site_User_Id
			where (Executive_Id = @Executive_Id OR @Executive_Id IS NULL)
			and   Role_Id != 1
			
			insert into @Temp (Executive_Id, Name, Manager_Exec_Id, Manager_Id)
			select distinct Executive_Id, Name, 0, 0 from @Temp1
		End
	else
		insert into @Temp
		select distinct su.Name, me.* from Manager_Executive me
		join Site_User su on me.Executive_Id = su.Site_User_Id
		where (Manager_Id = @Manager_Id OR @Manager_Id IS NULL)
		AND	  (Executive_Id = @Executive_Id OR @Executive_Id IS NULL)

	update @Temp set Manager_Exec_Id = 0, Manager_Id = 0 where Manager_Exec_Id is NULL
	
	select * from @Temp 
END
GO
/****** Object:  StoredProcedure [dbo].[GetReporteesForUserCreation]    Script Date: 09/30/2013 17:13:55 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get ReporteesForUserCreation
-- =============================================
CREATE PROCEDURE [dbo].[GetReporteesForUserCreation]
	 @Role_Id int,
	 @Location_Id int = NULL
AS
BEGIN
	Declare @IDS table(Id int)
	
	if(@Role_Id = 4)
		Begin
			select * from UserRoleLocationRegionCountryView
			where (Location_Id = @Location_Id or @Location_Id is null)
			and Status = 1
			and Role_Id in(5)
		end
	else if(@Role_Id = 3)
		Begin
			insert into @IDS
			select r.Region_Id from Location l join Region r
			on r.Region_Id = l.Region_Id
			where (Location_Id = @Location_Id or @Location_Id is null)
			
			select * from UserRoleLocationRegionCountryView
			where Region_Id in(select * from @IDS)
			and Status = 1
			and Role_Id in(4,5)
		end
	else if(@Role_Id = 2)
		Begin
			insert into @IDS
			select c.Country_Id 
			from Location l 
			join Region r on r.Region_Id = l.Region_Id
			join Country c on r.Country_Id = c.Country_Id
			where (Location_Id = @Location_Id or @Location_Id is null)
			
			select * from UserRoleLocationRegionCountryView
			where Country_Id in(select * from @IDS)
			and Status = 1
			and Role_Id in(3,4,5)
		end
	else if(@Role_Id = 1)
		Begin
			select * from UserRoleLocationRegionCountryView
			where Status = 1
		end
	else
		Begin
			select * from UserRoleLocationRegionCountryView
			where Country_Id = -1
		end
END
GO
/****** Object:  StoredProcedure [dbo].[InsertUpdateTarget]    Script Date: 09/30/2013 17:14:06 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Insert Update Target 
-- =============================================
CREATE PROCEDURE [dbo].[InsertUpdateTarget]
	@Target_Id int,
	@Month int,
	@Year int,
	@Sales int = NULL,
	@Collection int = NULL,
	@Secondary_Sales int = NULL,
	@Site_User_Id int = NULL
AS
BEGIN
	MERGE Target AS target
    USING (SELECT @Target_Id, @Month, @Year, @Sales, @Collection, @Secondary_Sales, @Site_User_Id) 
    AS source (Target_Id, Month, Year, Sales, Collection, Secondary_Sales, Site_User_Id)
    ON (target.Target_Id = source.Target_Id
		OR 
		(target.Site_User_Id = source.Site_User_Id and target.Year = source.Year and target.Month = source.Month)
	   )
    WHEN MATCHED THEN 
        UPDATE SET	Month = source.Month,
					Year = source.Year,
					Sales = source.Sales,
					Collection = source.Collection,
					Secondary_Sales = source.Secondary_Sales,
					Site_User_Id = source.Site_User_Id
	WHEN NOT MATCHED THEN	
	    insert 
		values(source.Month, source.Year, source.Site_User_Id, source.Sales, source.Collection, source.Secondary_Sales);
END
GO
/****** Object:  StoredProcedure [dbo].[InsertUpdateUser]    Script Date: 09/30/2013 17:14:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Insert Update User 
-- =============================================
CREATE PROCEDURE [dbo].[InsertUpdateUser]
	@User_Id int = NULL,
	@Name nvarchar(50) = NULL,
	@Password nvarchar(50) = NULL,
	@Email nvarchar(50) = NULL,
	@Role_Id int = NULL,
	@Location_Id int = NULL,
	@Employee_Code nvarchar(50) = NULL,
	@Status bit = NULL,
	@LinkedUsers nvarchar(100) = NULL,
	@Language_Id int
AS
BEGIN
	MERGE Site_User AS target
    USING (SELECT @User_Id, @Name, @Password, @Email, @Role_Id, @Location_Id, @Employee_Code, @Status) 
    AS source (User_Id, Name, Password, Email, Role_Id, Location_Id, Employee_Code, Status)
    ON (target.Site_User_Id = source.User_Id)
    WHEN MATCHED THEN 
        UPDATE SET  Name = source.Name, 
					Email = source.Email,
					Role_Id = source.Role_Id,
					Location_Id = source.Location_Id, 
					Employee_Code = source.Employee_Code, 
					Status = source.Status
	WHEN NOT MATCHED THEN	
	    insert 
		values(source.Role_Id, source.Location_Id, source.Name, NULL, source.Password, source.Email, source.Status, source.Employee_Code);
	
	if(@User_Id is null)
	begin
		select @User_Id = IDENT_CURRENT ('Site_User')
	end
	
	exec InsertUpdateLinkedExecutive @User_Id, @LinkedUsers
	
	
	MERGE User_Language AS target
    USING (SELECT @User_Id, @Language_Id) 
    AS source (User_Id, Language_Id)
    ON (target.Site_User_Id = source.User_Id)
    WHEN MATCHED THEN 
        UPDATE SET  Language_Id = source.Language_Id
	WHEN NOT MATCHED THEN	
	    insert 
		values(source.User_Id, source.Language_Id);

END
GO
/****** Object:  StoredProcedure [dbo].[InsertUpdateContact]    Script Date: 09/30/2013 17:14:00 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Insert Update Contact 
-- =============================================
CREATE PROCEDURE [dbo].[InsertUpdateContact]
	@Contact_Id int = NULL,
	@Contact_Name nvarchar(100) = NULL,
	@Contact_Name_BL nvarchar(100) = NULL,
	@Customer_Id int,
	@Department nvarchar(50) = NULL,
	@Department_BL nvarchar(50) = NULL,
	@Mobile nvarchar(50) = NULL,
	@Status bit,
	@Cont_Id int output
AS
BEGIN
	MERGE Contact AS target
    USING (SELECT @Contact_Id, @Contact_Name, @Contact_Name_BL, @Customer_Id, @Department, @Department_BL, @Mobile, @Status) 
    AS source (Contact_Id, Contact_Name, Contact_Name_BL, Customer_Id, Department, Department_BL, Mobile, Status)
    ON (   (target.Contact_Id = source.Contact_Id)
		OR (target.Contact_Name = source.Contact_Name)
		OR (target.Contact_Name_BL = source.Contact_Name_BL))
    WHEN MATCHED THEN 
        UPDATE SET	Customer_Id = source.Customer_Id,
					Contact_Name = source.Contact_Name,
					Contact_Name_BL = source.Contact_Name_BL,
					Department = source.Department,
					Department_BL = source.Department_BL,
					Mobile = source.Mobile,
					Status = source.Status
	WHEN NOT MATCHED THEN	
	    insert 
		values(source.Contact_Name, source.Contact_Name_BL, source.Customer_Id, source.Department, source.Department_BL, source.Mobile, source.Status);
		
	if(@Contact_Id is null)
		set @Cont_Id = IDENT_CURRENT ('Contact') 
	else
		set @Cont_Id = @Contact_Id
		
	SELECT @Cont_Id 
		 
END
GO
/****** Object:  StoredProcedure [dbo].[ActiveCustomerLocationRegionCountry]    Script Date: 09/30/2013 17:13:40 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get ActiveCustomerLocationRegionCountry
-- =============================================
CREATE PROCEDURE [dbo].[ActiveCustomerLocationRegionCountry]
	 @User_Id int = NULL
AS
BEGIN
	select * from ActiveCustomerLocationRegionCountryView
END
GO
/****** Object:  View [dbo].[ActiveContactCustomerLocationView]    Script Date: 09/30/2013 17:11:55 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[ActiveContactCustomerLocationView]
AS
SELECT     dbo.Contact.Contact_Id, dbo.Contact.Contact_Name, dbo.Contact.Department, dbo.Contact.Status AS Contact_Status, dbo.Customer.Customer_Id, 
                      dbo.Customer.Customer_Name, dbo.Customer.Key_Account, dbo.Customer.Status AS Customer_Status, dbo.Location.Location_Id, dbo.Location.Location_Name, 
                      dbo.Site_User.Site_User_Id, dbo.Customer.Customer_Name_BL, dbo.Contact.Contact_Name_BL, dbo.Customer.Updated_By, dbo.Customer.Updated_Date, 
                      dbo.Customer.Customer_Code, dbo.Customer.Business_Type, dbo.Customer.Customer_Type, dbo.Customer.Customer_Group, dbo.Contact.Department_BL, 
                      dbo.Contact.Mobile
FROM         dbo.Customer LEFT OUTER JOIN
                      dbo.Contact ON dbo.Contact.Customer_Id = dbo.Customer.Customer_Id INNER JOIN
                      dbo.Location ON dbo.Customer.Location_Id = dbo.Location.Location_Id INNER JOIN
                      dbo.Site_User ON dbo.Location.Location_Id = dbo.Site_User.Location_Id
WHERE     (dbo.Contact.Status = 1 OR
                      dbo.Contact.Status IS NULL) AND (dbo.Customer.Status = 1 OR
                      dbo.Customer.Status IS NULL)
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[47] 4[16] 2[10] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "Customer"
            Begin Extent = 
               Top = 6
               Left = 236
               Bottom = 235
               Right = 436
            End
            DisplayFlags = 280
            TopColumn = 1
         End
         Begin Table = "Contact"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 151
               Right = 221
            End
            DisplayFlags = 280
            TopColumn = 3
         End
         Begin Table = "Location"
            Begin Extent = 
               Top = 6
               Left = 442
               Bottom = 221
               Right = 604
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Site_User"
            Begin Extent = 
               Top = 6
               Left = 642
               Bottom = 228
               Right = 808
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 21
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 3330
         Alias ' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'ActiveContactCustomerLocationView'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'= 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'ActiveContactCustomerLocationView'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'ActiveContactCustomerLocationView'
GO
/****** Object:  StoredProcedure [dbo].[GetAttendance]    Script Date: 09/30/2013 17:13:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- =============================================
-- Author:		Prashant
-- Description:	Get Attendance
-- =============================================
CREATE procedure [dbo].[GetAttendance]
	(@DatePeriod int = NULL,
	 @SpecificDate date = NULL,
	 @User_Id int = NULL)
AS
BEGIN
	Declare	@Attandance Table (A_Date Date, Status nvarchar(10), Site_User_Id int NULL) 
	 
	Declare @Holidays Table(HolidayDate Date)
	DEclare @Absent Table (Absent_Id int, Date date, Site_User_Id int, OnLeave bit )
	declare @Site_Users Table (User_Ids int, Country_Id int)
	declare @Country_Id int
	
	select @Country_Id = c.Country_Id 
	from Site_User a 
		 join Location l on l.Location_Id = a.Location_Id
		 join Region r on l.Region_Id = r.Region_Id
		 join Country c on r.Country_Id = c.Country_Id
	where (a.Site_User_Id = @User_Id OR @User_Id IS NULL)
	
	insert into @Site_Users values(@User_Id, @Country_Id)
	insert into @Site_Users
	select Site_User_Id, @Country_Id from GetManagerExecutivesFn(@User_Id)
	
	if(@DatePeriod is not null)
		begin
			insert into @Holidays select 
			Date from Holiday 
			where Date >= (GETDATE()- @DatePeriod - 1 ) 
			  and Date <= GETDATE()
			  and Country_Id = (select Top 1 Country_Id from @Site_Users)
		end
	else
		begin
			insert into @Holidays select 
			Date from Holiday 
			where Date >= @SpecificDate
			  and Country_Id = (select Top 1 Country_Id from @Site_Users)
		end
	
	while ((select count(*) from @Site_Users) > 0)
	Begin
		declare @TempUsrId int
		select top 1 @TempUsrId = User_Ids from @Site_Users order by User_Ids
		
		if(@DatePeriod is not null)
			begin
				;WITH CTE AS
				(
					SELECT convert(date,GETDATE()) sDate, DATENAME(DW, GETDATE()) sDayofWeek
					UNION ALL
					SELECT DATEADD(DAY,-1,sDate), DATENAME(DW, DATEADD(DAY,-1,sDate))
					FROM CTE
					WHERE sDate > GETDATE()-@DatePeriod + 1
				)
				insert into @Attandance(A_Date) SELECT sDate FROM CTE
			end
		else
			begin
				insert into @Attandance(A_Date) values(@SpecificDate)
			end
		
		update @Attandance 
		set Site_User_Id = @TempUsrId
		where Site_User_Id is NULL
		
		INSERT INTO @Absent 
		(Absent_Id , Date , Site_User_Id, OnLeave ) 
		SELECT Absent_Id , Date , Site_User_Id, OnLeave FROM dbo.GetAbsentFn(NULL, NULL, @TempUsrId, NULL)

		update @Attandance set Status = 'Present' where Site_User_Id = @TempUsrId
		update @Attandance set Status = 'Holiday' where A_Date in (select * from @Holidays) and Site_User_Id = @TempUsrId
		Update @Attandance set Status = 'Absent' where A_Date in (select Date from @Absent where OnLeave = 0 and site_User_Id = @TempUsrId) and Site_User_Id = @TempUsrId
		Update @Attandance set Status = 'OnLeave' where A_Date in (select Date from @Absent where OnLeave = 1 and site_User_Id = @TempUsrId) and Site_User_Id = @TempUsrId
		
		delete from @Site_Users where User_Ids = @TempUsrId
	end
	
	select * from @Attandance
END
GO
/****** Object:  StoredProcedure [dbo].[GetActiveCustomerLocationRegionCountry]    Script Date: 09/30/2013 17:13:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get ActiveCustomerLocationRegionCountry
-- =============================================
CREATE PROCEDURE [dbo].[GetActiveCustomerLocationRegionCountry]
	 @User_Id int = NULL
AS
BEGIN
	DECLARE @ActiveData Table (
			Customer_Id int, Customer_Name nvarchar(100), Key_Account bit,Customer_Status bit, Location_Id int, 
            Location_Name nvarchar(50), Customer_Name_BL nvarchar(100), Updated_By int, Updated_Date date, Customer_Code nvarchar(100), 
            Business_Type int, Customer_Type int, Customer_Group int, Country_Name nvarchar(50), Region_Name nvarchar(50), 
            Site_User_Id int, Updated_By_Value nvarchar(50), Business_Type_Value nvarchar(50), Customer_Type_Value nvarchar(50), Customer_Group_Value nvarchar(50))
	
	Declare @Paramater table(ParamaterDet_Id int, Paramater_Id int, Code nvarchar(100), Paramater_Value int, Paramater_Text nvarchar(100), 
							 Paramater_Description nvarchar(100), Paramater_Description_BL nvarchar(100), Sort_Order int)
	
	insert into @ActiveData(Customer_Id , Customer_Name, Key_Account ,Customer_Status , Location_Id , 
            Location_Name , Customer_Name_BL , Updated_By , Updated_Date , Customer_Code , 
            Business_Type , Customer_Type , Customer_Group , Country_Name , Region_Name  )
	select * from ActiveCustomerLocationRegionCountryView
	
	update ad
	set Updated_By_Value = (Select Name from Site_User su where su.Site_User_Id = ad.Updated_By)
	from @ActiveData ad
	
	insert into @Paramater exec GetParameter 5, NULL, NULL
	update ad
	set Business_Type_Value = (Select Paramater_Description from @Paramater p where p.ParamaterDet_Id = ad.Business_Type)
	from @ActiveData ad
	
	insert into @Paramater exec GetParameter 6, NULL, NULL
	update ad
	set Customer_Type_Value = (Select Paramater_Description from @Paramater p where p.ParamaterDet_Id = ad.Customer_Type)
	from @ActiveData ad
	
	insert into @Paramater exec GetParameter 7, NULL, NULL
	update ad
	set Customer_Group_Value = (Select Paramater_Description from @Paramater p where p.ParamaterDet_Id = ad.Customer_Group)
	from @ActiveData ad
	
	select * from @ActiveData
END
GO
/****** Object:  StoredProcedure [dbo].[GetContactWithCustName]    Script Date: 09/30/2013 17:13:48 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Contact with Customer name
-- =============================================
CREATE PROCEDURE [dbo].[GetContactWithCustName]
	@Contact_Id int = NULL,
	@Contact_Name nvarchar(50) = NULL,
	@Customer_Name nvarchar(50) = NULL,
	@Contact_Name_BL nvarchar(50) = NULL,
	@Customer_Id int = NULL,
	@Department nvarchar(50) = NULL,
	@Department_BL nvarchar(50) = NULL,
	@Mobile nvarchar(50) = NULL,
	@Status int = NULL
AS
BEGIN
	select cont.*, cust.Customer_Name, cust.Customer_Name_BL from Contact cont
	join Customer cust 
	on cust.Customer_Id = cont.Customer_Id
	where (Contact_Id = @Contact_Id OR @Contact_Id IS NULL)
	AND	  (Contact_Name = @Contact_Name OR @Contact_Name IS NULL)
	AND	  (Contact_Name_BL = @Contact_Name_BL OR @Contact_Name_BL IS NULL)
	AND	  (cont.Customer_Id = @Customer_Id OR @Customer_Id IS NULL)
	AND	  (Department = @Department OR @Department IS NULL)
	AND   (Department_BL = @Department_BL OR @Department_BL IS NULL)
	AND	  (Mobile = @Mobile OR @Mobile IS NULL)
	AND	  (cont.Status = @Status OR @Status IS NULL)
END
GO
/****** Object:  StoredProcedure [dbo].[GetContact]    Script Date: 09/30/2013 17:13:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Contact
-- =============================================
CREATE PROCEDURE [dbo].[GetContact]
	@Contact_Id int = NULL,
	@Contact_Name nvarchar(50) = NULL,
	@Contact_Name_BL nvarchar(50) = NULL,
	@Customer_Id int = NULL,
	@Department nvarchar(50) = NULL,
	@Department_BL nvarchar(50) = NULL,
	@Mobile int = NULL,
	@Status int = NULL
AS
BEGIN
	select * from Contact  
	where (Contact_Id = @Contact_Id OR @Contact_Id IS NULL)
	AND	  (Contact_Name = @Contact_Name OR @Contact_Name IS NULL)
	AND	  (Contact_Name_BL = @Contact_Name_BL OR @Contact_Name_BL IS NULL)
	AND	  (Customer_Id = @Customer_Id OR @Customer_Id IS NULL)
	AND	  (Department = @Department OR @Department IS NULL)
	AND   (Department_BL = @Department_BL OR @Department_BL IS NULL)
	AND	  (Mobile = @Mobile OR @Mobile IS NULL)
	AND	  (Status = @Status OR @Status IS NULL)
END
GO
/****** Object:  UserDefinedFunction [dbo].[GetAttendanceFn]    Script Date: 09/30/2013 17:14:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- =============================================
-- Author:		Prashant
-- Description:	Get Attendance Fn
-- =============================================
CREATE function [dbo].[GetAttendanceFn]
	(@DatePeriod int = NULL,
	 @SpecificDate date = NULL,
	 @User_Id int = NULL)
	
	Returns
	@Attandance Table (A_Date Date, Status nvarchar(10), Site_User_Id int NULL)
AS
BEGIN
	 
	Declare @Holidays Table(HolidayDate Date)
	DEclare @Absent Table (Absent_Id int, Date date, Site_User_Id int, OnLeave bit)
	declare @Site_Users Table (User_Ids int, Country_Id int)
	declare @Country_Id int
	
	select @Country_Id = c.Country_Id 
	from Site_User a 
		 join Location l on l.Location_Id = a.Location_Id
		 join Region r on l.Region_Id = r.Region_Id
		 join Country c on r.Country_Id = c.Country_Id
	where (a.Site_User_Id = @User_Id OR @User_Id IS NULL)
	
	if((select Role_Id from Site_User where Site_User_Id = @User_Id) != 1)
		insert into @Site_Users values(@User_Id, @Country_Id)
		
	insert into @Site_Users
	select Site_User_Id, @Country_Id from GetManagerExecutivesFn(@User_Id)

	if(@DatePeriod is not null)
		begin
			insert into @Holidays select 
			Date from Holiday 
			where Date >= (GETDATE()- @DatePeriod - 1 ) 
			  and Date <= GETDATE()
			  and Country_Id = (select Top 1 Country_Id from @Site_Users)
		end
	else
		begin
			insert into @Holidays select 
			Date from Holiday 
			where Date >= @SpecificDate
			  and Country_Id = (select Top 1 Country_Id from @Site_Users)
		end
	
	while ((select count(*) from @Site_Users) > 0)
	Begin
		declare @TempUsrId int
		select top 1 @TempUsrId = User_Ids from @Site_Users order by User_Ids
		
		if(@DatePeriod is not null)
			begin
				;WITH CTE AS
				(
					SELECT convert(date,GETDATE()) sDate, DATENAME(DW, GETDATE()) sDayofWeek
					UNION ALL
					SELECT DATEADD(DAY,-1,sDate), DATENAME(DW, DATEADD(DAY,-1,sDate))
					FROM CTE
					WHERE sDate > GETDATE()-@DatePeriod + 1
				)
				insert into @Attandance(A_Date) SELECT sDate FROM CTE
			end
		else
			begin
				insert into @Attandance(A_Date) values(@SpecificDate)
			end
		
		update @Attandance 
		set Site_User_Id = @TempUsrId
		where Site_User_Id is NULL
		
		INSERT INTO @Absent 
		(Absent_Id , Date , Site_User_Id, OnLeave) 
		SELECT Absent_Id , Date , Site_User_Id, OnLeave  FROM dbo.GetAbsentFn(NULL, NULL, @TempUsrId, NULL)

		update @Attandance set Status = 'Present' where Site_User_Id = @TempUsrId
		update @Attandance set Status = 'Holiday' where A_Date in (select * from @Holidays) and Site_User_Id = @TempUsrId
		Update @Attandance set Status = 'Absent' where A_Date in (select Date from @Absent where OnLeave = 0 and site_User_Id = @TempUsrId) and Site_User_Id = @TempUsrId
		Update @Attandance set Status = 'OnLeave' where A_Date in (select Date from @Absent where OnLeave = 1 and site_User_Id = @TempUsrId) and Site_User_Id = @TempUsrId
		
		delete from @Site_Users where User_Ids = @TempUsrId
	end
	
Return
END
GO
/****** Object:  Table [dbo].[DSR]    Script Date: 09/30/2013 17:11:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[DSR](
	[DSR_Id] [int] IDENTITY(1,1) NOT NULL,
	[Site_User_Id] [int] NOT NULL,
	[Date] [date] NOT NULL,
	[Contact_Id] [int] NOT NULL,
	[Objective] [nvarchar](50) NULL,
	[Time_In] [time](7) NULL,
	[Time_Out] [time](7) NULL,
	[Time_Spent] [int] NULL,
	[Time_w_Merchandiser] [int] NULL,
	[Collection] [int] NULL,
	[Secondary_Sales] [int] NULL,
	[Sales_LPO_Received] [int] NULL,
	[Discount] [int] NULL,
	[Sales_Return] [int] NULL,
	[Remarks] [nvarchar](50) NULL,
 CONSTRAINT [PK_DSR] PRIMARY KEY CLUSTERED 
(
	[DSR_Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
SET IDENTITY_INSERT [dbo].[DSR] ON
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (1, 36, CAST(0x81370B00 AS Date), 1, N'24', CAST(0x0700E03495640000 AS Time), CAST(0x070048F9F66C0000 AS Time), NULL, 15, 40500, 1000, 250000, 100, 1000, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (2, 36, CAST(0x81370B00 AS Date), 1, N'24', CAST(0x07001882BA7D0000 AS Time), CAST(0x070080461C860000 AS Time), NULL, 15, 40500, 1000, 15000, 100, 1000, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (3, 36, CAST(0x80370B00 AS Date), 1, N'24', CAST(0x0700A8E76F4B0000 AS Time), CAST(0x070010ACD1530000 AS Time), NULL, 0, 0, 0, 20000, 200, 2000, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (4, 49, CAST(0x81370B00 AS Date), 2, N'25', CAST(0x0700448E02580000 AS Time), CAST(0x0700AC5264600000 AS Time), NULL, 0, 5000, 2300, 15000, 2000, 2000, N'DISPLAY PLACE TO BE REDISCUSSED.')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (5, 49, CAST(0x81370B00 AS Date), 3, N'24', CAST(0x070084B1109B0000 AS Time), CAST(0x0700B893419F0000 AS Time), NULL, 0, 0, 0, 0, 0, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (6, 49, CAST(0x82370B00 AS Date), 4, N'25', CAST(0x0700E03495640000 AS Time), CAST(0x0700E49F89790000 AS Time), NULL, 10, 1000, 10000, 10000, 10000, 1000, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (7, 49, CAST(0x84370B00 AS Date), 5, N'23', CAST(0x07001417C6680000 AS Time), CAST(0x0700E49F89790000 AS Time), NULL, 60, 12345, 1234, 12345, 235, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (8, 49, CAST(0x84370B00 AS Date), 6, N'24', CAST(0x0700448E02580000 AS Time), CAST(0x070048F9F66C0000 AS Time), NULL, 10, 10, 2000, 100000, 1000, 100, N'TEST ')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (9, 49, CAST(0x86370B00 AS Date), 7, N'25', CAST(0x0700448E02580000 AS Time), CAST(0x0700AC5264600000 AS Time), NULL, 10, 40000, 1000, 160000, 0, 1200, N'TEEST')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (10, 49, CAST(0x8F370B00 AS Date), 8, N'23', CAST(0x0700448E02580000 AS Time), CAST(0x070048F9F66C0000 AS Time), NULL, 15, 5000, 0, 500000, 0, 0, N'TEST')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (11, 49, CAST(0x8F370B00 AS Date), 9, N'23', CAST(0x07001882BA7D0000 AS Time), CAST(0x070080461C860000 AS Time), NULL, 0, 0, 0, 0, 0, 0, N'MET....')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (12, 49, CAST(0x90370B00 AS Date), 10, N'23', CAST(0x0700DAABDA710000 AS Time), CAST(0x0700E49F89790000 AS Time), NULL, 10, 50000, 0, 100000, 0, 1000, N'DISCUSED SO SON.....')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (13, 49, CAST(0x90370B00 AS Date), 11, N'23', CAST(0x07001882BA7D0000 AS Time), CAST(0x070080461C860000 AS Time), NULL, 0, 0, 0, 10000, 0, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (14, 49, CAST(0x91370B00 AS Date), 12, N'23', CAST(0x0700448E02580000 AS Time), CAST(0x0700AC5264600000 AS Time), NULL, 10, 50000, 1000, 50000, 6000, 0, N'LULU COMING OUT WITH PROMOTION.... ON 20.TH SEP.')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (15, 49, CAST(0x91370B00 AS Date), 13, N'23', CAST(0x0700E03495640000 AS Time), CAST(0x070048F9F66C0000 AS Time), NULL, 10, 0, 0, 10000, 11000, 0, N'LULU COMING OUT WITH PROMOTION.... ON 20.TH SEP.')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (16, 49, CAST(0x92370B00 AS Date), 12, N'24', CAST(0x0700E03495640000 AS Time), CAST(0x0700E49F89790000 AS Time), NULL, 0, 0, 0, 100000, 0, 0, N'FILLED')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (17, 49, CAST(0x92370B00 AS Date), 14, N'24', CAST(0x07001882BA7D0000 AS Time), CAST(0x07001CEDAE920000 AS Time), NULL, 0, 0, 0, 100000, 0, 0, N'FILLED')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (18, 49, CAST(0x94370B00 AS Date), 15, N'24', CAST(0x070050CFDF960000 AS Time), CAST(0x0700B893419F0000 AS Time), NULL, 10, 0, 0, 50000, 0, 0, N'DISCUSSEDDDDDD')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (19, 49, CAST(0x94370B00 AS Date), 16, N'24', CAST(0x0700EC7572A30000 AS Time), CAST(0x0700543AD4AB0000 AS Time), NULL, 10, 0, 0, 150000, 0, 0, N'DISCUSSEDDDDDD')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (20, 49, CAST(0x8E370B00 AS Date), 17, N'23', CAST(0x0700A47C7B360000 AS Time), CAST(0x0700A8E76F4B0000 AS Time), NULL, 0, 0, 0, 0, 0, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (21, 49, CAST(0x95370B00 AS Date), 18, N'24', CAST(0x0700E03495640000 AS Time), CAST(0x070048F9F66C0000 AS Time), NULL, 0, 30000, 0, 100000, 5000, 0, N'RAMADAN OFFER LET US HAVE ')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (22, 49, CAST(0x95370B00 AS Date), 19, N'24', CAST(0x0700CA2E71770000 AS Time), CAST(0x07001882BA7D0000 AS Time), NULL, 0, 0, 0, 50000, 5000, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (23, 49, CAST(0x96370B00 AS Date), 19, N'23', CAST(0x0700448E02580000 AS Time), CAST(0x0700B0BD58750000 AS Time), NULL, 20, 0, 2000, 500000, 0, 10000, N'SALES RETURN 10000 FOR SKU NRF9090 50 PCS LLJLKJ')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (24, 49, CAST(0x96370B00 AS Date), 20, N'25', CAST(0x07001882BA7D0000 AS Time), CAST(0x07001CEDAE920000 AS Time), NULL, 0, 0, 0, 10000, 0, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (25, 49, CAST(0x8A370B00 AS Date), 21, N'24', CAST(0x0700448E02580000 AS Time), CAST(0x070048F9F66C0000 AS Time), NULL, 10, 20000, 1000, 500000, 1000, 0, N'CONDOLA TO PLAN FOR EIDD...')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (26, 49, CAST(0x8A370B00 AS Date), 22, N'24', CAST(0x07001882BA7D0000 AS Time), CAST(0x070080461C860000 AS Time), NULL, 0, 20000, 1000, 500000, 1000, 0, N'CONDOLA TO PLAN FOR EIDD...')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (27, 49, CAST(0x98370B00 AS Date), 23, N'23', CAST(0x0700448E02580000 AS Time), CAST(0x0700AC5264600000 AS Time), NULL, 0, 50000, 0, 1000000, 0, 0, N'CUSTOMER AGREED FORXXXXX')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (28, 49, CAST(0x98370B00 AS Date), 24, N'23', CAST(0x07007CDB27710000 AS Time), CAST(0x070080461C860000 AS Time), NULL, 0, 10000, 0, 1000000, 0, 0, N'EVERYTHING IS OK.')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (29, 140, CAST(0xA3370B00 AS Date), 25, N'23', CAST(0x07007870335C0000 AS Time), CAST(0x0700AC5264600000 AS Time), NULL, 0, 0, 0, 73200, 0, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (30, 142, CAST(0xA2370B00 AS Date), 26, N'23', CAST(0x070050CFDF960000 AS Time), CAST(0x0700EC7572A30000 AS Time), NULL, 15, 0, 4445, 0, 0, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (31, 142, CAST(0xA2370B00 AS Date), 27, N'23', CAST(0x07002058A3A70000 AS Time), CAST(0x0700BCFE35B40000 AS Time), NULL, 20, 0, 4855, 0, 0, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (33, 69, CAST(0xA3370B00 AS Date), 29, N'23', CAST(0x0700A8E76F4B0000 AS Time), CAST(0x0700DCC9A04F0000 AS Time), NULL, 0, 0, 0, 0, 0, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (34, 141, CAST(0xA2370B00 AS Date), 30, N'23', CAST(0x070080461C860000 AS Time), CAST(0x0700EC7572A30000 AS Time), NULL, 20, 0, 5949, 0, 0, 0, N'price survey and push the merchandiser for tab sal')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (35, 141, CAST(0xA2370B00 AS Date), 30, N'23', CAST(0x07002058A3A70000 AS Time), CAST(0x0700881C05B00000 AS Time), NULL, 10, 0, 1500, 0, 0, 0, N'')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (36, 142, CAST(0xA3370B00 AS Date), 31, N'23', CAST(0x07007870335C0000 AS Time), CAST(0x070048F9F66C0000 AS Time), NULL, 0, 0, 0, 8835, 0, 0, N'I Meet to Mr. Rasheed regarding new creation for N')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (37, 142, CAST(0xA3370B00 AS Date), 32, N'23', CAST(0x0700E03495640000 AS Time), CAST(0x070048F9F66C0000 AS Time), NULL, 0, 0, 7186, 0, 0, 0, N'I meet to Mr. Fahad regarding order for Nikai shor')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (38, 142, CAST(0xA3370B00 AS Date), 33, N'23', CAST(0x0700EC7572A30000 AS Time), CAST(0x0700543AD4AB0000 AS Time), NULL, 20, 0, 1198, 0, 0, 0, N'I visit panda salaam mall for check the merchandis')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (39, 142, CAST(0xA3370B00 AS Date), 34, N'23', CAST(0x0700543AD4AB0000 AS Time), CAST(0x0700881C05B00000 AS Time), NULL, 0, 0, 0, 0, 0, 0, N'I visit hyper panda badia regarding to check our s')
INSERT [dbo].[DSR] ([DSR_Id], [Site_User_Id], [Date], [Contact_Id], [Objective], [Time_In], [Time_Out], [Time_Spent], [Time_w_Merchandiser], [Collection], [Secondary_Sales], [Sales_LPO_Received], [Discount], [Sales_Return], [Remarks]) VALUES (40, 142, CAST(0xA3370B00 AS Date), 35, N'23', CAST(0x0700BCFE35B40000 AS Time), CAST(0x0700F0E066B80000 AS Time), NULL, 20, 0, 1734, 0, 0, 0, N'I visit hyper panda sultana regarding to check mer')
SET IDENTITY_INSERT [dbo].[DSR] OFF
/****** Object:  View [dbo].[DSRReportView]    Script Date: 09/30/2013 17:11:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[DSRReportView]
AS
SELECT     dbo.DSR.Site_User_Id, dbo.DSR.Date, dbo.Customer.Customer_Id, dbo.Customer.Customer_Code, dbo.Customer.Customer_Name, 
                      dbo.Customer.Customer_Name_BL, dbo.Contact.Contact_Id, dbo.Contact.Contact_Name, dbo.Contact.Contact_Name_BL, dbo.Contact.Department_BL, 
                      dbo.Contact.Department, dbo.Contact.Mobile, dbo.Contact.Status AS Status_Contact, dbo.DSR.Objective, dbo.DSR.Time_In, dbo.DSR.Time_Out, dbo.DSR.Time_Spent, 
                      dbo.DSR.Time_w_Merchandiser, dbo.DSR.Collection, dbo.DSR.Secondary_Sales, dbo.DSR.Sales_LPO_Received, dbo.DSR.Discount, dbo.DSR.Sales_Return, 
                      dbo.DSR.Remarks, dbo.Customer.Status AS Status_Customer
FROM         dbo.DSR INNER JOIN
                      dbo.Contact ON dbo.DSR.Contact_Id = dbo.Contact.Contact_Id INNER JOIN
                      dbo.Customer ON dbo.Contact.Customer_Id = dbo.Customer.Customer_Id
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[35] 4[32] 2[7] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "DSR"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 262
               Right = 233
            End
            DisplayFlags = 280
            TopColumn = 2
         End
         Begin Table = "Customer"
            Begin Extent = 
               Top = 0
               Left = 499
               Bottom = 188
               Right = 684
            End
            DisplayFlags = 280
            TopColumn = 3
         End
         Begin Table = "Contact"
            Begin Extent = 
               Top = 30
               Left = 272
               Bottom = 214
               Right = 449
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'DSRReportView'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'DSRReportView'
GO
/****** Object:  View [dbo].[DsrContactCustomerLocationView]    Script Date: 09/30/2013 17:11:56 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[DsrContactCustomerLocationView]
AS
SELECT     dbo.DSR.Site_User_Id, dbo.DSR.DSR_Id, dbo.Contact.Contact_Id, dbo.Contact.Contact_Name, dbo.DSR.Date, dbo.Customer.Customer_Id, 
                      dbo.Contact.Status AS Contact_Status, dbo.Customer.Customer_Name, dbo.Customer.Location_Id, dbo.Customer.Status AS Customer_Status, 
                      dbo.Location.Location_Name, dbo.Customer.Customer_Name_BL, dbo.Contact.Contact_Name_BL, dbo.Customer.Updated_By, dbo.Customer.Updated_Date, 
                      dbo.Location.Location_Name_BL
FROM         dbo.DSR INNER JOIN
                      dbo.Contact ON dbo.DSR.Contact_Id = dbo.Contact.Contact_Id INNER JOIN
                      dbo.Customer ON dbo.Contact.Customer_Id = dbo.Customer.Customer_Id INNER JOIN
                      dbo.Location ON dbo.Customer.Location_Id = dbo.Location.Location_Id
WHERE     (dbo.Contact.Status = 1) AND (dbo.Customer.Status = 1)
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
Begin DesignProperties = 
   Begin PaneConfigurations = 
      Begin PaneConfiguration = 0
         NumPanes = 4
         Configuration = "(H (1[40] 4[20] 2[20] 3) )"
      End
      Begin PaneConfiguration = 1
         NumPanes = 3
         Configuration = "(H (1 [50] 4 [25] 3))"
      End
      Begin PaneConfiguration = 2
         NumPanes = 3
         Configuration = "(H (1 [50] 2 [25] 3))"
      End
      Begin PaneConfiguration = 3
         NumPanes = 3
         Configuration = "(H (4 [30] 2 [40] 3))"
      End
      Begin PaneConfiguration = 4
         NumPanes = 2
         Configuration = "(H (1 [56] 3))"
      End
      Begin PaneConfiguration = 5
         NumPanes = 2
         Configuration = "(H (2 [66] 3))"
      End
      Begin PaneConfiguration = 6
         NumPanes = 2
         Configuration = "(H (4 [50] 3))"
      End
      Begin PaneConfiguration = 7
         NumPanes = 1
         Configuration = "(V (3))"
      End
      Begin PaneConfiguration = 8
         NumPanes = 3
         Configuration = "(H (1[56] 4[18] 2) )"
      End
      Begin PaneConfiguration = 9
         NumPanes = 2
         Configuration = "(H (1 [75] 4))"
      End
      Begin PaneConfiguration = 10
         NumPanes = 2
         Configuration = "(H (1[66] 2) )"
      End
      Begin PaneConfiguration = 11
         NumPanes = 2
         Configuration = "(H (4 [60] 2))"
      End
      Begin PaneConfiguration = 12
         NumPanes = 1
         Configuration = "(H (1) )"
      End
      Begin PaneConfiguration = 13
         NumPanes = 1
         Configuration = "(V (4))"
      End
      Begin PaneConfiguration = 14
         NumPanes = 1
         Configuration = "(V (2))"
      End
      ActivePaneConfig = 0
   End
   Begin DiagramPane = 
      Begin Origin = 
         Top = 0
         Left = 0
      End
      Begin Tables = 
         Begin Table = "DSR"
            Begin Extent = 
               Top = 6
               Left = 38
               Bottom = 125
               Right = 233
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Contact"
            Begin Extent = 
               Top = 6
               Left = 271
               Bottom = 209
               Right = 431
            End
            DisplayFlags = 280
            TopColumn = 0
         End
         Begin Table = "Customer"
            Begin Extent = 
               Top = 6
               Left = 469
               Bottom = 222
               Right = 666
            End
            DisplayFlags = 280
            TopColumn = 2
         End
         Begin Table = "Location"
            Begin Extent = 
               Top = 6
               Left = 675
               Bottom = 150
               Right = 837
            End
            DisplayFlags = 280
            TopColumn = 0
         End
      End
   End
   Begin SQLPane = 
   End
   Begin DataPane = 
      Begin ParameterDefaults = ""
      End
      Begin ColumnWidths = 9
         Width = 284
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
         Width = 1500
      End
   End
   Begin CriteriaPane = 
      Begin ColumnWidths = 11
         Column = 1440
         Alias = 900
         Table = 1170
         Output = 720
         Append = 1400
         NewValue = 1170
         SortType = 1350
         SortOrder = 1410
         GroupBy = 1350
         Filter = 1350
         Or = 1350
         Or = 1350
         Or = 1350
      End
   End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'DsrContactCustomerLocationView'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane2', @value=N'
End
' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'DsrContactCustomerLocationView'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=2 , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'VIEW',@level1name=N'DsrContactCustomerLocationView'
GO
/****** Object:  StoredProcedure [dbo].[GetAttendanceAndDSR]    Script Date: 09/30/2013 17:13:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Attendance And DSR
-- =============================================
CREATE PROCEDURE [dbo].[GetAttendanceAndDSR]
	 @DatePeriod int = NULL,
	 @SpecificDate date = NULL,
	 @User_Id int = NULL,
	 @Search_User_Id int = NULL
AS
BEGIN
	Declare @DSR Table (A_Date Date)
	Declare @AttendanceAndDSR Table (A_Date Date, A_Status nvarchar(10), DSR_Status nvarchar(10), Site_User_Id int, Site_User_Name nvarchar(50), DSR_Id int, DSR_Head_Id int)
	
	insert into @AttendanceAndDSR(A_Date,A_Status,Site_User_Id) 
	select A_Date,Status, Site_User_Id 
	from GetAttendanceFn(@DatePeriod, @SpecificDate, @User_Id)
	update @AttendanceAndDSR set DSR_Status = 'No'
	
	update a
	set a.DSR_Status = 'Yes',
		a.DSR_Id = c.DSR_Id
	from @AttendanceAndDSR a inner join @AttendanceAndDSR b
	on a.A_Date = b.A_Date
	and a.Site_User_Id = b.Site_User_Id
	inner join DSR c
	on a.A_Date = c.Date
	and a.Site_User_Id = c.Site_User_Id
	
	update a
	set a.DSR_Head_Id = b.DSR_Head_Id
	from @AttendanceAndDSR a inner join DSR_Header b
	on a.A_Date = b.Date
	and a.Site_User_Id = b.Site_User_Id
	
	select a.A_Date, a.A_Status, a.DSR_Status, a.Site_User_Id, su.Name, a.DSR_Id, a.DSR_Head_Id
	from @AttendanceAndDSR a
		 join Site_User su 
		 on su.Site_User_Id = a.Site_User_Id 
	where (a.Site_User_Id = @Search_User_Id OR @Search_User_Id is NULL) 
	order by A_Date  desc, Role_Id, Site_User_Id
END
GO
/****** Object:  StoredProcedure [dbo].[GetActiveContactCustomerLocation]    Script Date: 09/30/2013 17:13:45 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get ActiveContactCustomerLocation
-- =============================================
CREATE PROCEDURE [dbo].[GetActiveContactCustomerLocation]
	 @User_Id int = NULL
AS
BEGIN
	declare @Location_Ids table(Location int)
	declare @Country_Id int
	
	select @Country_Id =  c.Country_Id
	from Site_User su
		 JOIN Location l ON l.Location_Id = su.Location_Id  
		 JOIN Region r ON l.Region_Id = r.Region_Id  
		 JOIN Country c ON c.Country_Id = r.Country_Id 
	where (su.Site_User_Id = @User_Id Or @User_Id is NULL)
	
	insert into @Location_Ids
	select l.Location_Id
	from Location l 
		 JOIN Region r ON l.Region_Id = r.Region_Id  
		 JOIN Country c ON c.Country_Id = r.Country_Id 
	where c.Country_Id = @Country_Id
	
	select * from ActiveContactCustomerLocationView
	where Location_Id in (select * from @Location_Ids)
	and   Site_User_Id = @User_Id
END
GO
/****** Object:  StoredProcedure [dbo].[GetDSR]    Script Date: 09/30/2013 17:13:50 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get DSR
-- =============================================
CREATE PROCEDURE [dbo].[GetDSR]
	@DSR_Id int = NULL,
	@Site_User_Id int = NULL,
	@Date date = NULL,
	@Contact_Id int = NULL,
	@Objective int = NULL,
	@Time_In time = NULL,
	@Time_Out time = NULL,
	@Time_Spent int = NULL,
	@Time_w_Merchandiser int = NULL,
	@Collection int = NULL,
	@Secondary_Sales int = NULL,
	@Sales_LPO_Received int = NULL,
	@Discount int = NULL,
	@Sales_Return int = NULL,
	@Remarks nvarchar(50) = NULL
AS
BEGIN
	select * from DSR  
	where (DSR_Id = @DSR_Id OR @DSR_Id IS NULL)
	AND	  (Site_User_Id = @Site_User_Id OR @Site_User_Id IS NULL)
	AND	  (Date = @Date OR @Date IS NULL)
	AND	  (Contact_Id = @Contact_Id OR @Contact_Id IS NULL)
	AND	  (Objective = @Objective OR @Objective IS NULL)
	AND	  (Time_In = @Time_In OR @Time_In IS NULL)
	AND	  (Time_Out = @Time_Out OR @Time_Out IS NULL)
	AND	  (Time_Spent = @Time_Spent OR @Time_Spent IS NULL)
	AND	  (Time_w_Merchandiser = @Time_w_Merchandiser OR @Time_w_Merchandiser IS NULL)
	AND	  (Collection = @Collection OR @Collection IS NULL)
	AND	  (Secondary_Sales = @Secondary_Sales OR @Secondary_Sales IS NULL)
	AND	  (Sales_LPO_Received = @Sales_LPO_Received OR @Sales_LPO_Received IS NULL)
	AND	  (Discount = @Discount OR @Discount IS NULL)
	AND	  (Sales_Return = @Sales_Return OR @Sales_Return IS NULL)
	AND	  (Remarks = @Remarks OR @Remarks IS NULL)
END
GO
/****** Object:  StoredProcedure [dbo].[GetExecutiveTargetsActuals]    Script Date: 09/30/2013 17:13:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Executive Targets Actuals
-- =============================================
CREATE procedure [dbo].[GetExecutiveTargetsActuals]
	(@Month int,
	 @Year int,
	 @Executive_Id int)
AS
BEGIN
	Declare @ActualTargets table
		(
			Collection_Actual int,
			Collection_Target int,
			Lpo_Actual int,
			Lpo_Target int,
			Secondary_Sales_Actual int,
			Secondary_Sales_Target int
		)
		
	Declare @Collection_Actual int, @Lpo_Actual int, @Secondary_Actual int
	
	insert into @ActualTargets(Collection_Target, Lpo_Target, Secondary_Sales_Target)
	select Collection, Sales, Secondary_Sales from Target
	where Month = @Month
	and   YEAR = @Year
	and   Site_User_Id = @Executive_Id
	
	if((select COUNT(*) from @ActualTargets) = 0)
		insert into @ActualTargets values(0,0,0,0,0,0)
	
	SELECT @Collection_Actual = SUM(Collection), 
	       @Lpo_Actual = SUM(Sales_LPO_Received), 
		   @Secondary_Actual = SUM(Secondary_Sales)
    FROM DSR
	where datepart(month,Date) = @Month
    and   datepart(year,Date) = @Year
    and   Site_User_Id = @Executive_Id
    
	update @ActualTargets
	set Collection_Actual = @Collection_Actual,
		Lpo_Actual = @Lpo_Actual,
		Secondary_Sales_Actual = @Secondary_Actual
	
	if((select COUNT(*) from @ActualTargets) = 0)
		insert into @ActualTargets values(0,0,0,0,0,0)
	
	select * from @ActualTargets
END
GO
/****** Object:  StoredProcedure [dbo].[InsertUpdateDSR]    Script Date: 09/30/2013 17:14:02 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Insert Update DSR 
-- =============================================
CREATE PROCEDURE [dbo].[InsertUpdateDSR]
	@DSR_Id int = NULL,
	@Site_User_Id int,
	@Date date,
	@Contact_Id int,
	@Objective int = NULL,
	@Time_In time = NULL,
	@Time_Out time = NULL,
	@Time_Spent int = NULL,
	@Time_w_Merchandiser int = NULL,
	@Collection int = NULL,
	@Secondary_Sales int = NULL,
	@Sales_LPO_Received int = NULL,
	@Discount int = NULL,
	@Sales_Return int = NULL,
	@Remarks nvarchar(50) = NULL
AS
BEGIN
	MERGE DSR AS target
    USING (SELECT @DSR_Id, @Site_User_Id, @Date, @Contact_Id, @Objective, @Time_In, @Time_Out, @Time_Spent, 
				  @Time_w_Merchandiser, @Collection, @Secondary_Sales, @Sales_LPO_Received, @Discount, @Sales_Return, @Remarks) 
    AS source (	  DSR_Id, Site_User_Id, Date, Contact_Id, Objective, Time_In, Time_Out, Time_Spent, 
				  Time_w_Merchandiser, Collection, Secondary_Sales, Sales_LPO_Received, Discount, Sales_Return, Remarks)
    ON (target.DSR_Id = source.DSR_Id)
    WHEN MATCHED THEN 
        UPDATE SET	Site_User_Id = source.Site_User_Id,
					Date = source.Date,
					Contact_Id = source.Contact_Id,
					Objective = source.Objective,
					Time_In = source.Time_In,
					Time_Out = source.Time_Out,
					Time_Spent = source.Time_Spent,
					Time_w_Merchandiser = source.Time_w_Merchandiser,
					Collection = source.Collection,
					Secondary_Sales = source.Secondary_Sales,
					Sales_LPO_Received = source.Sales_LPO_Received,
					Discount = source.Discount,
					Sales_Return = source.Sales_Return,
					Remarks = source.Remarks
	WHEN NOT MATCHED THEN	
	    insert 
		values(source.Site_User_Id, source.Date, source.Contact_Id, source.Objective, source.Time_In, source.Time_Out, 
			   source.Time_Spent, source.Time_w_Merchandiser, source.Collection, source.Secondary_Sales,
			   source.Sales_LPO_Received, source.Discount, source.Sales_Return, source.Remarks);
END
GO
/****** Object:  StoredProcedure [dbo].[GetManagerReport]    Script Date: 09/30/2013 17:13:53 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Manager Report
-- =============================================
CREATE PROCEDURE [dbo].[GetManagerReport]
	 @FromDate date = NULL,
	 @ToDate date = NULL,
	 @Country_Id int = NULL,
	 @Region_Id int = NULL,
	 @Location_Id int = NULL,
	 @KeyAccounts bit = NULL,
	 @Manager_Id int = NULL,
	 @Search_Executive_Id int = NULL,
	 @Report_ExecutiveWise bit
AS
BEGIN
	Declare @Result Table (Date Date, Executive_Id int, Executive_Name nvarchar(50), Executive_Count int, 
					       Present nvarchar(50), DSR_Submitted int, DSR_NotSubmittedBy nvarchar(MAX), 
					       Total_Customer_Visited int, Sales int, Secondary_Sales int, Collection int, 
					       Discount int, Sales_Return int, Time_Customer int, Time_Merchandiser int, 
					       Time_In_Office int)
	
	Declare @ManagerExecutive Table(Manager_Exec_Id int NULL, Executive_Id int , Manager_Id int NULL)
	
	DECLARE @listStr NVARCHAR(MAX)
	
	Declare @temp Table(Manager_Exec_Id int, Executive_Id int , Manager_Id int, Executive_Name nvarchar(50))
	
	if(@Search_Executive_Id is null)
		insert into @temp(Executive_Name,Manager_Exec_Id,Executive_Id,Manager_Id)  exec GetManagerExecutive @Manager_Id,NULL
	else
		insert into @temp values(null, @Search_Executive_Id, null, null)
	
	delete from @temp  where Executive_Id in (select Site_User_Id from Site_User where Role_Id != 5)
		
	Declare @RoleId int
	select @RoleId = Role_Id from Site_User where Site_User_Id = @Manager_Id
	
	if( @RoleId = 1)
		insert into @ManagerExecutive
		select t.Manager_Exec_Id, t.Executive_Id, t.Manager_Id 
		from @temp t  
		   join Site_User su on t.Executive_Id = su.Site_User_Id
		   join Location l on l.Location_Id = su.Location_Id
		   join Region r on r.Region_Id = l.Region_Id
		   join Country c on c.Country_Id = r.Country_Id
		   where (l.Location_Id = @Location_Id OR @Location_Id is NULL)
		   and   (r.Region_Id = @Region_Id OR @Region_Id is NULL)
		   and   (c.Country_Id = @Country_Id OR @Country_Id is NULL)
	else
		insert into @ManagerExecutive
		select t.Manager_Exec_Id, t.Executive_Id, t.Manager_Id 
		from @temp t  
		   join Site_User su on t.Executive_Id = su.Site_User_Id
		   join Location l on l.Location_Id = su.Location_Id
		   join Region r on r.Region_Id = l.Region_Id
		   join Country c on c.Country_Id = r.Country_Id
		   where (l.Location_Id = @Location_Id OR @Location_Id is NULL)
		   and   (r.Region_Id = @Region_Id OR @Region_Id is NULL)
		   and   (c.Country_Id = @Country_Id OR @Country_Id is NULL)
		   and   (su.Role_Id = 5)
	
	--------Date, Executive Id, Executive Name
	if(@Report_ExecutiveWise = 1 OR @Search_Executive_Id is not NULL)
		Begin
			delete from @temp
			insert into @temp(Manager_Exec_Id, Executive_Id, Manager_Id) select * from @ManagerExecutive
			DECLARE @TempExecutiveId int
			
			while ((select COUNT(*) from @temp) > 0)
			begin
				select top 1 @TempExecutiveId = Executive_Id from @temp
				
				insert into @Result(Date)
				select * from GetDateRangeFn(@FromDate, @ToDate)
				
				update @Result 
				set Executive_Id = (select s.Site_User_Id from Site_User s where s.Site_User_Id = @TempExecutiveId),
				    Executive_Name = (select s.Name from Site_User s where s.Site_User_Id = @TempExecutiveId)
				where Executive_Id is NULL
				
				delete from @temp where Executive_Id = @TempExecutiveId
			end
		end
	else
		begin	
			insert into @Result(Date)
			select * from GetDateRangeFn(@FromDate, @ToDate)
		end
	
	--------Executive Count
	update @Result set Executive_Count = (select count(*) from @ManagerExecutive me)
	
	--------Present
	if(@Report_ExecutiveWise = 1 OR @Search_Executive_Id is not NULL)
		BEGIN
			update r
			set Present = (select t.Status from 
									(select A_Date, Status, Site_User_Id 
									 from GetAttendanceFn(NULL, r.Date, r.Executive_Id)) t
						   where r.Date = t.A_Date
						   and   r.Executive_Id = t.Site_User_Id )
			from @Result r
		END
	
	--------DSR Submited
	if(@Report_ExecutiveWise = 1 OR @Search_Executive_Id is not NULL)
		BEGIN
			update r
			set DSR_Submitted = (select COUNT(distinct DSR.Site_User_Id) from DSR 
								where DSR.Date = r.Date
								and   DSR.Site_User_Id = r.Executive_Id)
			from @Result r
		END
	else
		BEGIN
			update r
			set DSR_Submitted = (select COUNT(distinct DSR.Site_User_Id) from DSR 
								 where DSR.Date = r.Date
								 and   DSR.Site_User_Id in (select Executive_Id from @ManagerExecutive))
								 
			from @Result r
		END
	
	--------DSR Not Submited
	if((@Report_ExecutiveWise is NULL OR @Report_ExecutiveWise = 0) AND @Search_Executive_Id is NULL)
		BEGIN
			DECLARE @tempTable table(Executive nvarchar(MAX), Date date)
			DECLARE @tempTable1 table(Executive nvarchar(MAX), Date date)
			DECLARE @tempTable2 table(Executive nvarchar(MAX), Date date)
			
			Insert into @tempTable
			select ME.Executive_Id,r.date from @Result r,@ManagerExecutive ME

			insert into @tempTable1
			select distinct su.Name, t.Date from @tempTable t
			left join DSR d	On d.date=t.date
			and Executive = d.Site_User_Id
			left join Site_User su on su.Site_User_Id = t.Executive
			where d.date is null
			order by t.date

			insert into @tempTable2
			select  (select itbl.Executive+', '
						from @tempTable1 itbl
						where itbl.Date=tbl.Date
						for xml path('')), date
			from @tempTable1 tbl
			group by date

			update r
			set DSR_NotSubmittedBy = (select Executive from @tempTable2 t where t.Date = r.Date)
			from @Result r
			
			update @Result set DSR_NotSubmittedBy = SUBSTRING(DSR_NotSubmittedBy,1, LEN(DSR_NotSubmittedBy) - 1) where DSR_NotSubmittedBy <> ''
		END

	---------Total Customers Visited
	update r
	set Total_Customer_Visited = (select COUNT(distinct cont.Customer_Id) 
								  from DSR d 
								  join @ManagerExecutive me on me.Executive_Id = d.Site_User_Id
								  join Contact cont on d.Contact_Id = cont.Contact_Id
								  join Customer cust on cust.Customer_Id = cont.Customer_Id
								  where d.Date = r.Date
								  and  (cust.Key_Account = @KeyAccounts OR @KeyAccounts is NULL)
								  and  (r.Executive_Id = me.Executive_Id OR r.Executive_Id is NULL))
	from @Result r
	
	--------Sales, Secondary Sales, Collection, Discount, Sales Return, Time Customer, Time Merchandiser
	
	DECLARE @SalesTable Table (Date date, Executive_Id int NULL, Sales int, Secondary_Sales int, Collection int, Discount int, Sales_Return int,
							   Time_Customer int, Time_Merchandiser int)
							   
	if(@Report_ExecutiveWise = 1 OR @Search_Executive_Id is not NULL)
		BEGIN
			insert into @SalesTable
			select d.DATE,
				   d.Site_User_Id,
				   sum(d.Sales_LPO_Received), 
				   sum(d.Secondary_Sales), 
				   sum(d.Collection),
				   sum(d.Discount), 
				   sum(d.Sales_Return) ,
				   sum(DATEDIFF(Minute, d.Time_In, d.Time_Out)),
				   sum(d.Time_w_Merchandiser)
			from DSR d
			join @ManagerExecutive me on me.Executive_Id = d.Site_User_Id
			join Contact cont on d.Contact_Id = cont.Contact_Id
			join Customer cust on cust.Customer_Id = cont.Customer_Id
			where (cust.Key_Account = @KeyAccounts OR @KeyAccounts is NULL)
			group by d.Date, d.Site_User_Id
		end
	else
		Begin
			insert into @SalesTable
			select d.DATE,
				   null,
				   sum(d.Sales_LPO_Received), 
				   sum(d.Secondary_Sales), 
				   sum(d.Collection),
				   sum(d.Discount), 
				   sum(d.Sales_Return) ,
				   sum(DATEDIFF(Minute, d.Time_In, d.Time_Out)),
				   sum(d.Time_w_Merchandiser)
			from DSR d
			join @ManagerExecutive me on me.Executive_Id = d.Site_User_Id
			join Contact cont on d.Contact_Id = cont.Contact_Id
			join Customer cust on cust.Customer_Id = cont.Customer_Id
			where (cust.Key_Account = @KeyAccounts OR @KeyAccounts is NULL)
			group by d.Date
		end

	update r
	set Sales = (select Sales from @SalesTable s where s.Date = r.Date and (r.Executive_Id = s.Executive_Id OR r.Executive_Id is NULL)),
	    Secondary_Sales = (select Secondary_Sales from @SalesTable s where s.Date = r.Date and (r.Executive_Id = s.Executive_Id OR r.Executive_Id is NULL)),
	    Collection = (select Collection from @SalesTable s where s.Date = r.Date and (r.Executive_Id = s.Executive_Id OR r.Executive_Id is NULL)),
	    Discount = (select Discount from @SalesTable s where s.Date = r.Date and (r.Executive_Id = s.Executive_Id OR r.Executive_Id is NULL)),
	    Sales_Return = (select Sales_Return from @SalesTable s where s.Date = r.Date and (r.Executive_Id = s.Executive_Id OR r.Executive_Id is NULL)),
	    Time_Customer = (select Time_Customer from @SalesTable s where s.Date = r.Date and (r.Executive_Id = s.Executive_Id OR r.Executive_Id is NULL)),
	    Time_Merchandiser = (select Time_Merchandiser from @SalesTable s where s.Date = r.Date and (r.Executive_Id = s.Executive_Id OR r.Executive_Id is NULL))
	from @Result r
	
	-----------Time in Office
	
	if(@Report_ExecutiveWise = 1 OR @Search_Executive_Id is not NULL)
		Begin
			update r
			set Time_In_Office = (select sum( DATEDIFF(Minute, ISNULL( h.Morning_Time_In, '00:00'), ISNULL( h.Morning_Time_Out, '00:00') )
											   + DATEDIFF(Minute, ISNULL( h.Evening_Time_In, '00:00'), ISNULL(h.Evening_Time_Out, '00:00'))
												)
								  from DSR_Header h
								  where r.Executive_Id = h.Site_User_Id
								  and   h.Date = r.Date)
			from @Result r
		end
	else
		Begin
			update r
			set Time_In_Office = (select sum( DATEDIFF(Minute, ISNULL( h.Morning_Time_In, '00:00'), ISNULL( h.Morning_Time_Out, '00:00') )
											   + DATEDIFF(Minute, ISNULL( h.Evening_Time_In, '00:00'), ISNULL(h.Evening_Time_Out, '00:00'))
												)
								  from DSR_Header h
								  where h.Site_User_Id in (select Executive_Id from @ManagerExecutive)
								  and   h.Date = r.Date)
			from @Result r
		end
	
	---------Assign default for Null values
	update @Result set DSR_NotSubmittedBy = '' where DSR_NotSubmittedBy is null
	update @Result set Executive_Id = 0 where Executive_Id is null
	update @Result set Executive_Name = '' where Executive_Name is null
	update @Result set Present = '' where Present is null
	update @Result set Sales = 0 where Sales is null
	update @Result set Secondary_Sales = 0 where Secondary_Sales is null
	update @Result set Collection = 0 where Collection is null
	update @Result set Discount = 0 where Discount is null
	update @Result set Sales_Return = 0 where Sales_Return is null
	update @Result set Time_Customer = 0 where Time_Customer is null
	update @Result set Time_Merchandiser = 0 where Time_Merchandiser is null
	update @Result set Time_In_Office = 0 where Time_In_Office is null
	
	select * from @Result order by DATE desc, Executive_Id	
END
GO
/****** Object:  StoredProcedure [dbo].[UpdateVisit]    Script Date: 09/30/2013 17:14:09 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Update Visit
-- =============================================
CREATE PROCEDURE [dbo].[UpdateVisit]
	@DSR_Id int,
	@Customer_Id int = NULL,
    @Customer_Name nvarchar(50) = NULL,
    @Customer_Name_BL nvarchar(50) = NULL,
    @Location_Id int = NULL,
    @Contact_Id int = NULL,
    @Contact_Name nvarchar(50) = NULL,
    @Contact_Name_BL nvarchar(50) = NULL,
    @Department nvarchar(50) = NULL,
    @Department_BL nvarchar(50) = NULL,
    @Mobile nvarchar(50) = NULL,
    @Site_User_Id int = NULL,
    @Date Date = NULL,
    @Objective int = NULL,
    @Time_In time = NULL,
    @Time_Out time = NULL,
    @Time_w_Merchandiser int = NULL,
    @Collection int = NULL,
    @Secondary_Sales int = NULL,
    @Sales_LPO_Received int = NULL,
    @Discount int = NULL,
    @Sales_Return int = NULL,
    @Remarks nvarchar(50) = NULL,
    @Updated_By int
AS
BEGIN
	if (@Customer_Id is null)
		begin
			select @Customer_Id=Customer_Id from Customer where Customer_Name = @Customer_Name
		
			if(@Customer_Id is null)  
			  select @Customer_Id=Customer_Id from Customer where Customer_Name_BL = @Customer_Name_BL
			
			if(@Customer_Id is null)
			Begin
				if(@Location_Id is not null)
					exec InsertUpdateCustomer null, null, @Customer_Name,@Customer_Name_BL, null, null, null, @Location_Id, 0, 1,@Updated_By, @Customer_Id output
				else
					exec InsertUpdateCustomer null, null, @Customer_Name,@Customer_Name_BL, null, null, null, null, 0, 1,@Updated_By, @Customer_Id output
			end
		end
		
		exec InsertUpdateContact @Contact_Id, @Contact_Name, @Contact_Name_BL, @Customer_Id, @Department, @Department_BL, @Mobile, 1, @Contact_Id output
		--select top 1 @Contact_Id=Contact_Id from Contact order by Contact_Id desc
	
	exec InsertUpdateDSR @DSR_Id, @Site_User_Id, @Date, @Contact_Id, @Objective, @Time_In, @Time_Out, 
						 null, @Time_w_Merchandiser, @Collection, @Secondary_Sales, @Sales_LPO_Received, 
						 @Discount, @Sales_Return, @Remarks
END
GO
/****** Object:  StoredProcedure [dbo].[InsertVisit]    Script Date: 09/30/2013 17:14:08 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Insert Visit
-- =============================================
CREATE PROCEDURE [dbo].[InsertVisit]
	@Customer_Id int = NULL,
    @Customer_Name nvarchar(50) = NULL,
    @Customer_Name_BL nvarchar(50) = NULL,
    @Location_Id int = NULL,
    @Contact_Id int = NULL,
    @Contact_Name nvarchar(50) = NULL,
    @Contact_Name_BL nvarchar(50) = NULL,
    @Department nvarchar(50) = NULL,
    @Department_BL nvarchar(50) = NULL,
    @Mobile nvarchar(50) = NULL,
    @Site_User_Id int = NULL,
    @Date Date = NULL,
    @Objective int = NULL,
    @Time_In time = NULL,
    @Time_Out time = NULL,
    @Time_w_Merchandiser int = NULL,
    @Collection int = NULL,
    @Secondary_Sales int = NULL,
    @Sales_LPO_Received int = NULL,
    @Discount int = NULL,
    @Sales_Return int = NULL,
    @Remarks nvarchar(50) = NULL,
    @Updated_By int
AS
BEGIN
    
    --exec InsertUpdateCustomer null, null, @Customer_Name,@Customer_Name_BL, null, null, null, null, null, 1,@Updated_By, @Customer_Id output
    
	if (@Customer_Id is null)
		begin
			select @Customer_Id=Customer_Id from Customer where Customer_Name = @Customer_Name
		
			if(@Customer_Id is null)  
			  select @Customer_Id=Customer_Id from Customer where Customer_Name_BL = @Customer_Name_BL
			
			if(@Customer_Id is null)
			Begin
				if(@Location_Id is not null)
					exec InsertUpdateCustomer null, null, @Customer_Name,@Customer_Name_BL, null, null, null, @Location_Id, 0, 1,@Updated_By, @Customer_Id output
				else
					exec InsertUpdateCustomer null, null, @Customer_Name,@Customer_Name_BL, null, null, null, null, 0, 1,@Updated_By, @Customer_Id output
			end
		end
		
	if (@Contact_Id is null)
		begin
			exec InsertUpdateContact null, @Contact_Name, @Contact_Name_BL, @Customer_Id, @Department, @Department_BL, @Mobile, 1, @Contact_Id output
			--select top 1 @Contact_Id=Contact_Id from Contact order by Contact_Id desc
		end
	
	exec InsertUpdateDSR null, @Site_User_Id, @Date, @Contact_Id, @Objective, @Time_In, @Time_Out, 
						 null, @Time_w_Merchandiser, @Collection, @Secondary_Sales, @Sales_LPO_Received, 
						 @Discount, @Sales_Return, @Remarks
END
GO
/****** Object:  StoredProcedure [dbo].[GetExecutiveReport]    Script Date: 09/30/2013 17:13:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get Executive Report
-- =============================================
CREATE procedure [dbo].[GetExecutiveReport]
	(@Month int,
	 @Year int,
	 @Executive_Id int)
AS
BEGIN
	select *, p.Description as ObjectiveValue 
	from DSRReportView v left join ParameterDet p
	on v.Objective = p.ParameterDetId
	where Site_User_Id = @Executive_Id
	and   datepart(month,Date) = @Month
	and   datepart(YEAR,Date) = @Year
	order by v.Date, v.Site_User_Id, v.Time_In
END
GO
/****** Object:  StoredProcedure [dbo].[GetActiveDsrContactCustomerLocation]    Script Date: 09/30/2013 17:13:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		Prashant
-- Description:	Get DsrContactCustomerLocation
-- =============================================
CREATE PROCEDURE [dbo].[GetActiveDsrContactCustomerLocation]
	@User_Id int,
	@Date date
AS
BEGIN
	select * from DsrContactCustomerLocationView a
	where a.Site_User_Id = @User_Id
	and   a.Date = @Date
END
GO
/****** Object:  ForeignKey [FK_Absent_Site_User]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Absent]  WITH CHECK ADD  CONSTRAINT [FK_Absent_Site_User] FOREIGN KEY([Site_User_Id])
REFERENCES [dbo].[Site_User] ([Site_User_Id])
GO
ALTER TABLE [dbo].[Absent] CHECK CONSTRAINT [FK_Absent_Site_User]
GO
/****** Object:  ForeignKey [FK_Contact_Customer]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Contact]  WITH CHECK ADD  CONSTRAINT [FK_Contact_Customer] FOREIGN KEY([Customer_Id])
REFERENCES [dbo].[Customer] ([Customer_Id])
GO
ALTER TABLE [dbo].[Contact] CHECK CONSTRAINT [FK_Contact_Customer]
GO
/****** Object:  ForeignKey [FK_Customer_Location]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Customer]  WITH CHECK ADD  CONSTRAINT [FK_Customer_Location] FOREIGN KEY([Location_Id])
REFERENCES [dbo].[Location] ([Location_Id])
GO
ALTER TABLE [dbo].[Customer] CHECK CONSTRAINT [FK_Customer_Location]
GO
/****** Object:  ForeignKey [FK_Customer_ParameterDet]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Customer]  WITH CHECK ADD  CONSTRAINT [FK_Customer_ParameterDet] FOREIGN KEY([Business_Type])
REFERENCES [dbo].[ParameterDet] ([ParameterDetId])
GO
ALTER TABLE [dbo].[Customer] CHECK CONSTRAINT [FK_Customer_ParameterDet]
GO
/****** Object:  ForeignKey [FK_Customer_ParameterDet1]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Customer]  WITH CHECK ADD  CONSTRAINT [FK_Customer_ParameterDet1] FOREIGN KEY([Customer_Group])
REFERENCES [dbo].[ParameterDet] ([ParameterDetId])
GO
ALTER TABLE [dbo].[Customer] CHECK CONSTRAINT [FK_Customer_ParameterDet1]
GO
/****** Object:  ForeignKey [FK_Customer_ParameterDet2]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Customer]  WITH CHECK ADD  CONSTRAINT [FK_Customer_ParameterDet2] FOREIGN KEY([Customer_Type])
REFERENCES [dbo].[ParameterDet] ([ParameterDetId])
GO
ALTER TABLE [dbo].[Customer] CHECK CONSTRAINT [FK_Customer_ParameterDet2]
GO
/****** Object:  ForeignKey [FK_Customer_ParameterDet3]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Customer]  WITH CHECK ADD  CONSTRAINT [FK_Customer_ParameterDet3] FOREIGN KEY([Sales_Channel])
REFERENCES [dbo].[ParameterDet] ([ParameterDetId])
GO
ALTER TABLE [dbo].[Customer] CHECK CONSTRAINT [FK_Customer_ParameterDet3]
GO
/****** Object:  ForeignKey [FK_Customer_Site_User]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Customer]  WITH CHECK ADD  CONSTRAINT [FK_Customer_Site_User] FOREIGN KEY([Updated_By])
REFERENCES [dbo].[Site_User] ([Site_User_Id])
GO
ALTER TABLE [dbo].[Customer] CHECK CONSTRAINT [FK_Customer_Site_User]
GO
/****** Object:  ForeignKey [FK_DSR_Contact]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[DSR]  WITH CHECK ADD  CONSTRAINT [FK_DSR_Contact] FOREIGN KEY([Contact_Id])
REFERENCES [dbo].[Contact] ([Contact_Id])
GO
ALTER TABLE [dbo].[DSR] CHECK CONSTRAINT [FK_DSR_Contact]
GO
/****** Object:  ForeignKey [FK_DSR_DSR_Header]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[DSR]  WITH CHECK ADD  CONSTRAINT [FK_DSR_DSR_Header] FOREIGN KEY([Site_User_Id])
REFERENCES [dbo].[Site_User] ([Site_User_Id])
GO
ALTER TABLE [dbo].[DSR] CHECK CONSTRAINT [FK_DSR_DSR_Header]
GO
/****** Object:  ForeignKey [FK_Holiday_Country]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Holiday]  WITH CHECK ADD  CONSTRAINT [FK_Holiday_Country] FOREIGN KEY([Country_Id])
REFERENCES [dbo].[Country] ([Country_Id])
GO
ALTER TABLE [dbo].[Holiday] CHECK CONSTRAINT [FK_Holiday_Country]
GO
/****** Object:  ForeignKey [FK_Holiday_ParameterDet]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Holiday]  WITH CHECK ADD  CONSTRAINT [FK_Holiday_ParameterDet] FOREIGN KEY([Holiday_Type])
REFERENCES [dbo].[ParameterDet] ([ParameterDetId])
GO
ALTER TABLE [dbo].[Holiday] CHECK CONSTRAINT [FK_Holiday_ParameterDet]
GO
/****** Object:  ForeignKey [FK_Location_Region]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Location]  WITH CHECK ADD  CONSTRAINT [FK_Location_Region] FOREIGN KEY([Region_Id])
REFERENCES [dbo].[Region] ([Region_Id])
GO
ALTER TABLE [dbo].[Location] CHECK CONSTRAINT [FK_Location_Region]
GO
/****** Object:  ForeignKey [FK_Manager_Executive_Site_User]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Manager_Executive]  WITH CHECK ADD  CONSTRAINT [FK_Manager_Executive_Site_User] FOREIGN KEY([Manager_Id])
REFERENCES [dbo].[Site_User] ([Site_User_Id])
GO
ALTER TABLE [dbo].[Manager_Executive] CHECK CONSTRAINT [FK_Manager_Executive_Site_User]
GO
/****** Object:  ForeignKey [FK_Menu_ParameterDet]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Menu]  WITH CHECK ADD  CONSTRAINT [FK_Menu_ParameterDet] FOREIGN KEY([MenuStatus])
REFERENCES [dbo].[ParameterDet] ([ParameterDetId])
GO
ALTER TABLE [dbo].[Menu] CHECK CONSTRAINT [FK_Menu_ParameterDet]
GO
/****** Object:  ForeignKey [FK_MenuAccess_Menu]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[MenuAccess]  WITH CHECK ADD  CONSTRAINT [FK_MenuAccess_Menu] FOREIGN KEY([MenuId])
REFERENCES [dbo].[Menu] ([MenuId])
GO
ALTER TABLE [dbo].[MenuAccess] CHECK CONSTRAINT [FK_MenuAccess_Menu]
GO
/****** Object:  ForeignKey [FK_MenuAccess_ParameterDet]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[MenuAccess]  WITH CHECK ADD  CONSTRAINT [FK_MenuAccess_ParameterDet] FOREIGN KEY([AccessType])
REFERENCES [dbo].[ParameterDet] ([ParameterDetId])
GO
ALTER TABLE [dbo].[MenuAccess] CHECK CONSTRAINT [FK_MenuAccess_ParameterDet]
GO
/****** Object:  ForeignKey [FK_MenuRolePages_Menu]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[MenuRolePages]  WITH CHECK ADD  CONSTRAINT [FK_MenuRolePages_Menu] FOREIGN KEY([MenuId])
REFERENCES [dbo].[Menu] ([MenuId])
GO
ALTER TABLE [dbo].[MenuRolePages] CHECK CONSTRAINT [FK_MenuRolePages_Menu]
GO
/****** Object:  ForeignKey [FK_MenuRolePages_ParameterDet]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[MenuRolePages]  WITH CHECK ADD  CONSTRAINT [FK_MenuRolePages_ParameterDet] FOREIGN KEY([RoleId])
REFERENCES [dbo].[Role] ([Role_Id])
GO
ALTER TABLE [dbo].[MenuRolePages] CHECK CONSTRAINT [FK_MenuRolePages_ParameterDet]
GO
/****** Object:  ForeignKey [FK_ParameterDet_Parameter]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[ParameterDet]  WITH CHECK ADD  CONSTRAINT [FK_ParameterDet_Parameter] FOREIGN KEY([ParameterId])
REFERENCES [dbo].[Parameter] ([ParameterId])
GO
ALTER TABLE [dbo].[ParameterDet] CHECK CONSTRAINT [FK_ParameterDet_Parameter]
GO
/****** Object:  ForeignKey [FK_Region_Country]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Region]  WITH CHECK ADD  CONSTRAINT [FK_Region_Country] FOREIGN KEY([Country_Id])
REFERENCES [dbo].[Country] ([Country_Id])
GO
ALTER TABLE [dbo].[Region] CHECK CONSTRAINT [FK_Region_Country]
GO
/****** Object:  ForeignKey [FK_RoleRights_Menu]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[RoleRights]  WITH CHECK ADD  CONSTRAINT [FK_RoleRights_Menu] FOREIGN KEY([MenuId])
REFERENCES [dbo].[Menu] ([MenuId])
GO
ALTER TABLE [dbo].[RoleRights] CHECK CONSTRAINT [FK_RoleRights_Menu]
GO
/****** Object:  ForeignKey [FK_RoleRights_ParameterDet]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[RoleRights]  WITH CHECK ADD  CONSTRAINT [FK_RoleRights_ParameterDet] FOREIGN KEY([RoleId])
REFERENCES [dbo].[Role] ([Role_Id])
GO
ALTER TABLE [dbo].[RoleRights] CHECK CONSTRAINT [FK_RoleRights_ParameterDet]
GO
/****** Object:  ForeignKey [FK_RoleRights_ParameterDet1]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[RoleRights]  WITH CHECK ADD  CONSTRAINT [FK_RoleRights_ParameterDet1] FOREIGN KEY([AccessType])
REFERENCES [dbo].[ParameterDet] ([ParameterDetId])
GO
ALTER TABLE [dbo].[RoleRights] CHECK CONSTRAINT [FK_RoleRights_ParameterDet1]
GO
/****** Object:  ForeignKey [FK_Site_User_Location]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Site_User]  WITH CHECK ADD  CONSTRAINT [FK_Site_User_Location] FOREIGN KEY([Location_Id])
REFERENCES [dbo].[Location] ([Location_Id])
GO
ALTER TABLE [dbo].[Site_User] CHECK CONSTRAINT [FK_Site_User_Location]
GO
/****** Object:  ForeignKey [FK_Site_User_Role]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Site_User]  WITH CHECK ADD  CONSTRAINT [FK_Site_User_Role] FOREIGN KEY([Role_Id])
REFERENCES [dbo].[Role] ([Role_Id])
GO
ALTER TABLE [dbo].[Site_User] CHECK CONSTRAINT [FK_Site_User_Role]
GO
/****** Object:  ForeignKey [FK_Target_Site_User]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[Target]  WITH CHECK ADD  CONSTRAINT [FK_Target_Site_User] FOREIGN KEY([Site_User_Id])
REFERENCES [dbo].[Site_User] ([Site_User_Id])
GO
ALTER TABLE [dbo].[Target] CHECK CONSTRAINT [FK_Target_Site_User]
GO
/****** Object:  ForeignKey [FK_User_Language_ParameterDet]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[User_Language]  WITH CHECK ADD  CONSTRAINT [FK_User_Language_ParameterDet] FOREIGN KEY([Language_Id])
REFERENCES [dbo].[ParameterDet] ([ParameterDetId])
GO
ALTER TABLE [dbo].[User_Language] CHECK CONSTRAINT [FK_User_Language_ParameterDet]
GO
/****** Object:  ForeignKey [FK_User_Language_Site_User]    Script Date: 09/30/2013 17:11:47 ******/
ALTER TABLE [dbo].[User_Language]  WITH CHECK ADD  CONSTRAINT [FK_User_Language_Site_User] FOREIGN KEY([Site_User_Id])
REFERENCES [dbo].[Site_User] ([Site_User_Id])
GO
ALTER TABLE [dbo].[User_Language] CHECK CONSTRAINT [FK_User_Language_Site_User]
GO
