Hi,
I want to display the event field based on the value of @securityID.
After that I want to display all event fields in the database.
How do I do this? Belwo is my code...
Thanks.Code:SELECT e.eventID, e.event FROM tble AS e LEFT OUTER JOIN tbld AS d ON d.eventID = e.eventID ORDER BY (SELECT d2.securityID FROM tbld AS d2 INNER JOIN tble AS e2 ON e2.eventID = d2.eventID WHERE (d2.securityID = @securityID))








Bookmarks