Re: Select statment
From: David Portas (REMOVE_BEFORE_REPLYING_dportas_at_acm.org)
Date: 03/12/04
- Next message: David Portas: "Re: Comma delimited issues"
- Previous message: JT Lovell: "Re: insert without log"
- In reply to: Lee: "Select statment"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Mar 2004 18:16:52 -0000
What happens when you run the query? Error? Unexpected results?
Try this:
SELECT *
FROM dba.case_incident
WHERE case_incident_key
NOT IN
(SELECT case_incident_key
FROM dba.report
WHERE case_incident_key IS NOT NULL)
(NOT IN won't return anything if there are NULLs in the subquery)
If that doesn't help post a script, including DDL, to reproduce the problem.
-- David Portas SQL Server MVP --
- Next message: David Portas: "Re: Comma delimited issues"
- Previous message: JT Lovell: "Re: insert without log"
- In reply to: Lee: "Select statment"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|