Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. SELECT E.Add1, E.Add2, E.City, E.State, E.Zip, E.Country, E.Phone, E.Fax, XR.Exhib_ID AS Exhibitor_ID, XR.Description, XR.Exhib_status, XR.Product_Categories, XR.New_Exhibitor, XR.Is_member,
  2. EC.First_name, EC.Last_name, EC.Title, EC.Phone, EC.Fax, EC.Mobile_phone, EC.Email
  3. FROM XR_Event_Exhibs XR INNER JOIN Exhibitors E ON E.Exhib_ID = XR.Exhib_ID
  4. INNER JOIN (SELECT TOP 1 Exhib_ID, First_name, Last_name, Title, Phone, Fax, Mobile_phone, Email
  5. FROM Exhib_Contacts
  6. WHERE Exhib_ID = 17
  7. AND Contact_Type = 'Main'
  8. ORDER BY Create_Date desc) AS EC ON E.Exhib_ID = EC.Exhib_ID
  9. WHERE XR.Event_ID = 17
  10. ORDER BY XR.Exhib_ID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement