Thread
:
Display customer data which is not in other table
View Single Post
•
•
Join Date: Jul 2007
Posts: 1,176
Reputation:
Solved Threads: 125
stephen84s
Offline
Veteran Poster
Re: Display customer data which is not in other table
0
#
2
Dec 2nd, 2008
That should be simple :-
Help with Code Tags
sql Syntax
(
Toggle Plain Text
)
SELECT
*
FROM
customers
WHERE
customers_id
NOT
IN
(
SELECT
customers_id
FROM
orders
)
SELECT * FROM customers WHERE customers_id NOT IN ( SELECT customers_id FROM orders )
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
"How to ask questions the smart way ?"
stephen84s
View Public Profile
Find all posts by stephen84s