Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
hi,

I have 3 table s
A (id, name, phone)

B (card_no, issue_date, Exp_date)
and

C(id, card_no)

I need those id, name and phone whose do not have card.

Please give me a solution
Posted

1 solution

Try this

SQL
select * FROM A 
Where id in (
	Select id from A
	EXCEPT
	Select id from B
)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900