Posted by: krishna April 21, 2008
sql question
Login in to Rate this Post:     0       ?        

select a.name from cat a, animal b where a.id = b.id and b.color='Brown'

union all

select a.name from dog a, animal b where a.id = b.id and b.color='Brown'

btw, I don't like the schema, why the need for dog and cat table seperately?

 

Read Full Discussion Thread for this article