I have 3 tables (lets call them a,b,c) that each have a col called UID.
I have a basic query like
select a.test,c.test from a,b,c where a.uid = b.uid and a.uid=c.uid
Now this works just fine.. but now I have c.uid as sometimes not existing. I would like to still like to return a.test but of course this won't work with the above query. I could break it into to separate querys but what's the fun in that??
I was thinking that using exists would work.. but I couldn't seem to incorporate it without returning back every value of c.test.
Thanks in advance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
I have a basic query like
select a.test,c.test from a,b,c where a.uid = b.uid and a.uid=c.uid
Now this works just fine.. but now I have c.uid as sometimes not existing. I would like to still like to return a.test but of course this won't work with the above query. I could break it into to separate querys but what's the fun in that??
I was thinking that using exists would work.. but I couldn't seem to incorporate it without returning back every value of c.test.
Thanks in advance
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;