Jump to content

ayuda consulta EN POSTGRE SQL


Recommended Posts

HOLA TENGO ESTE CODIGO Y ME TIRA UNA LISTA LARGA CON REGISTRO NECESITO QUE SOLO ME MUESTRE EL PRIMERO QUE ES EL QUE NECESITO DEJO EL CODIGO

 

TABLAS,CAMPEONATO,PARTIDOS

 

Select distinct c.nombre as campeonato, j.id_club_ganado,c.campeon
from campeonato c, partidos j,campeonato cm
where j.id_club_ganado=j.id_club_ganado
and j.id_club_ganado=j.id_club_ganado
EN SQL SERVER ME FUNCIONA CON EL COMANDO TOP 1 PERO EN POSTGRE NO SIRVE
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...