Advertisement
JVFabia

clase 2 sql

Sep 30th, 2020
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.15 KB | None | 0 0
  1. SELECT personaje, p_nombre, COUNT(DISTINCT a_nombre) AS actores
  2. FROM personaje
  3. GROUP BY personaje, p_nombre, p_año
  4. HAVING COUNT(DISTINCT a_nombre ) >= 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement