Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

solve this query pls.LEFT OUTER JOIN.

Status
Not open for further replies.

25884

Programmer
Mar 12, 2001
46
AP
hi All!
i am trying to find out the exact sequence of events which happen when the query that follows the table structure
is executed ------any help anyone?

Thanks a lot.
SSR.

animals
family name
mammal dog
mammal lion
fish guppy
bird eagle
insect beetle
bird pelican
fish bass


blood_types
family blood_type
mammal warm-blooded
fish cold-blooded
bird cold-blooded

SELECT a.family, a.name FROM animals a
LEFT OUTER JOIN blood_types t ON a.family = t.family
WHERE a.family NOT IN ('fish', 'bird')
How many rows are returned by the query above?




 

The query should return 3 rows.

mammal dog
mammal lion
insect beetle
Terry

X-) "Life would be easier if I had the source code." -Anonymous
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top