I have three tables and I want retrieve values from them for which I use following query which gives me error, can anybody tell me what’s wrong?
SELECT a.VISITOR_TEXT,a.COMPANY_TEXT,a.CONTACT,a.PERSON_TO_MEET,a.DEPARTMENT_TEXT,a.FLOOR,b.BELONGING_T
YPE,b.BELONGING_TEXT ,a.INTIME, c.EXIT_TIME FROM tm_visitor a LEFT JOIN tm_belonging b , tm_exit c ON a.ID=b.
BID AND a.ID=c.ID;
This is what you are looking for: