Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
dear all,

i have a problem in sql query to fetching data using left join from multiple tables while left joining table contains no record at initial level right now i m using sub queries instead of so please tell me right solution.
Posted
Comments
Corporal Agarn 22-Oct-12 11:40am    
Could you provide your query?

1 solution

u can guess from following example

SQL
Select a.*,b.* from
a left outer join b on a.id = b.id
where b.id is null

OR

Select a.*,b.* from
a left outer join b on a.id = b.id
where b.id is not null

Or give details of your table so give u exact output what u needed..

Give votes if satisfied..
 
Share this answer
 
v2

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



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