Thread: nested queries
View Single Post
  #4 (permalink)  
Old 07-23-2008, 06:51 AM
arun arun is offline
Junior Member
 
Join Date: Jul 2008
Posts: 9
arun is on a distinguished road
Default ANY answer. Re: nested queries

i think this will be the answer for ur second question

create view new as
select vendorid,"nova"=count(invoiceqty) from invoice group by vendorid

select vendorname from vendors where
vendorid in(select vendorid from new where nova=(select max(nova) from new))

Last edited by arun : 07-23-2008 at 11:36 AM.
Reply With Quote