Hey - - -- -
Risking foolish exposure once again:
Typical SQL I (we all?) learned like this (way-pseudo code):
select ppl.last, ppl.first,ppl.nickkiename,ppl.shoesize,ppl.egosize,
loca.adr1,loca.adr2,loca.city,loca.state,loca.zip,
tran.tdate,tran.tamount,tran.duedate,tran.quan,
product.priceeach,product.pname,product.pcategory
from ppl inner join loca
on ppl.loc_id = loca.loc_id
inner join tran
on tran.per_id = ppl.per_id
inner join product
on tran.prod_id = product.prod_id
where
ppl.first = "Esmerelda"
and
tran.duedate > date()
and
product.pcategory = "Flubber"
I saw an example posted here (by Ted?) where some of the selection
criteria were mixed in with the JOIN statements, like this:
...from ppl inner join loca
on ppl.loc_id = loca.loc_id
AND ppl.first = "Esmerelda"
inner join tran
on tran.per_id = ppl.per_id
AND tran.duedate > date()
inner join product
on tran.prod_id = product.prod_id
AND product.pcategory = "Flubber"
Questions:
- In what situations does this make sense? (or Not)
- What are the advantages?
"Anyone? Anyone?" (Knock, knock -- anyone still thinking on Friday
afternoon?)
Ken
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.