Posted by: sujanks April 22, 2008
sql question
Login in to Rate this Post:     0       ?        
i ran this and works

assuming that id in cats and/or dogs are foreign keys from animals. let me know other wise

select name from cats where id in (select id from animals where color = 'brown')
union
select name from dogs where id in (select id from animals where color = 'brown')


Read Full Discussion Thread for this article