03-02-2006 04:24 PM
I am trying to do a left join in the sql statement, but it keeps erroring out. If I take out the left, it joins the tables, but I don't get all the data I want. Can someone tell me how to do a left join? Everything I have read on Sybase says the left join should work.
03-02-2006 05:38 PM
What is the exact syntax of the statement that you are using?
03-03-2006 08:33 AM
SELECT dev_fqn.Device_Name, dev_domain.Device_Domain_Name
FROM dev_fqn LEFT JOIN dev_domain ON dev_fqn.Domain_Id = dev_domain.Domain_Id
This should bring up all the records from dev_fqn and if there is a matching record in dev_domain.
I exported all the tables from rme to access and can run this statement in access and it works fine.
If I take out the left keyword, then dbreader runs but I don't get all the records from dev_fqn table.
03-03-2006 09:06 AM
Try this one instead:
SELECT dev_fqn.Device_Name, dev_domain.Device_Domain_Name FROM dev_fqn LEFT OUTER JOIN dev_domain ON dev_fqn.Domain_Id = dev_domain.Domain_Id
03-03-2006 10:01 AM
That worked. Where do you find this stuff. I can find no reference for dbreader specific to CiscoWorks.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide