Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 erd help

Author  Topic 

anjali5
Posting Yak Master

121 Posts

Posted - 2010-06-12 : 21:46:14
I have to write an ERD diagram that shows the relationships between Departments, Users, and Letters.

1) Each department can have multiple users.
2) Each user can have multiple departments.
3) A letter belongs to a user and a department.

and then I have to write a stored proc that takes a UserID and returns all of the columns from the Department and Letter tables for each Letter for the UserID that was passed to the stored procedure.


any help will be greatly appreciated

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-06-13 : 14:20:38
Show us what you have so far, and we'll help you solve it. We need to see at least some effort to solve your own homework.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -