SQL - Consulta SQL

 
Vista:

Consulta SQL

Publicado por Jaime (2 intervenciones) el 09/11/2006 14:46:27
TENGO 2 TABLAS, EN UNA ALMACENO UNAS REFERENCIAS Y EN OTRA LOS PARAMETROS DE ESAS REFERENCIAS, LO QUE QUIERO ES HACER UNA CONSULTA EN LA QUE SI INGRESO UNA REFERENCIA NUEVA Y NO TENGA PARÁMETROS ASIGNADOS, ME MUESTRE LAS REFERENCIAS QUE NO TIENEN PARAMETROS, ESPERO ME PUEDAN COLABORAR
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

RE:Consulta SQL

Publicado por Liliana (426 intervenciones) el 09/11/2006 15:20:25
Hola Jaime,
Probá:

SELECT R.Referencia
FROM Referencias R
LEFT JOIN Parámetros P ON R.Referencia = P.Referencia
WHERE P.Referencia IS NULL
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar