D
djc
Sample:
select u.username, u.[password], j.job
from userLogon u, Jobs j
where (u.username = j.username) and (u.username = 'certianUserName')
I have seen the above style syntax used in a book (on ado.net actually, but
this is a query specific question, and this group has been very helpful to
me in the past). In most other places I have seen the various 'join'
keywords used.
1) So I guess you don't have to use 'join', 'outer join', 'inner join',
etc... ?
2) would my expample be performing an inner then? (i think so)...
3) which way is better? any advantages/disadvantages? reccomended?
performance?
4) could it be because the author of this book i'm reading comes from a more
programing code rather than sql coding background?
5) how do you do outer joins, for example, using only the where clause and
no 'join' keyword? and what about joining more than 2 tables? can that be
done this way as well? And how about nested joins?
yikes, the more I think about it the more questions I have. I am thinking
that using only the where clause may be easier in my mind...but I need some
examples to look at.
any info would be greatly appreciated. My numbers 2, 3, and 5 above are the
most important to me to find out.
Thanks!
select u.username, u.[password], j.job
from userLogon u, Jobs j
where (u.username = j.username) and (u.username = 'certianUserName')
I have seen the above style syntax used in a book (on ado.net actually, but
this is a query specific question, and this group has been very helpful to
me in the past). In most other places I have seen the various 'join'
keywords used.
1) So I guess you don't have to use 'join', 'outer join', 'inner join',
etc... ?
2) would my expample be performing an inner then? (i think so)...
3) which way is better? any advantages/disadvantages? reccomended?
performance?
4) could it be because the author of this book i'm reading comes from a more
programing code rather than sql coding background?
5) how do you do outer joins, for example, using only the where clause and
no 'join' keyword? and what about joining more than 2 tables? can that be
done this way as well? And how about nested joins?
yikes, the more I think about it the more questions I have. I am thinking
that using only the where clause may be easier in my mind...but I need some
examples to look at.
any info would be greatly appreciated. My numbers 2, 3, and 5 above are the
most important to me to find out.
Thanks!