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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is this an homework question?
ASKER
No its not a homework question Sharath_123. Thank you all.