Link to home
Start Free TrialLog in
Avatar of mainrotor
mainrotor

asked on

I need help with a SQL Server query that pull data from a Many to Many relation and a One to Many relation

Hi Experts,
I need help with a SQL Server query.
I have a many to many relation between tables Task and Project.  The linking table is Task_Project.
I also have a one to many relation between tables Task and Notes.
I want a query that will return:
All the Tasks (TaskName column), with or without Notes (Body Column), and all the Tasks with or without Projects (Project Name)  attached to them.
How can I do this?

I have included a relational diagram with this post to help visualize the relation between the tables. User generated image
ASKER CERTIFIED SOLUTION
Avatar of sshah254
sshah254

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Is this an homework question?
Avatar of mainrotor
mainrotor

ASKER

No its not a homework question Sharath_123.  Thank you all.