Advertisement
Guest User

query 24

a guest
May 29th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1.  
  2. select idCantina from (select x.idCantina, x.NumeroVini from (select idCantina, count(*) as NumeroVini from vini group by idCantina) as x) as y
  3. where y.numeroVini=(select max(k.numeroVini) from (select count(*) as NumeroVini from vini group by idCantina) as k);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement