Guest_imported
New member
- Jan 1, 1970
- 0
I have a sql statment that returns everything I want but if one cell in the DB for a row is null it will not return that whole row. I understand that I must accomplish this through an outer join statement but I am pulling data from a few diff tables. Attached is my SQL statement, I need to make sure that even if the Buddy field has nothing in it I want to pull that whole row back..... Thanks!
************************************************
strQ = "select tblEmployees.PhoneNumber, tblEmployees.lname, tblMaster.Buddy, tblEmployees.ACESID, tblEmployees.fname, t2.PhoneNumber, tblEmployees.ACESID, tblInOut.in, tblEmployees.UserName from tblEmployees, tblEmployees t2, tblInOut, tblMaster where tblEmployees.Unit in ('fin1', 'fin2', 'fin3', 'fin4') and tblInOut.UserName = tblEmployees.UserName and tblMaster.Employee = tblEmployees.ACESID and t2.ACESID = tblMaster.Buddy order by tblEmployees.lname"
**************************************************
************************************************
strQ = "select tblEmployees.PhoneNumber, tblEmployees.lname, tblMaster.Buddy, tblEmployees.ACESID, tblEmployees.fname, t2.PhoneNumber, tblEmployees.ACESID, tblInOut.in, tblEmployees.UserName from tblEmployees, tblEmployees t2, tblInOut, tblMaster where tblEmployees.Unit in ('fin1', 'fin2', 'fin3', 'fin4') and tblInOut.UserName = tblEmployees.UserName and tblMaster.Employee = tblEmployees.ACESID and t2.ACESID = tblMaster.Buddy order by tblEmployees.lname"
**************************************************