I have some five tables which look like this
BugHistory
--------------------
BugHistoryID
BugId
EmployeeId
Bugs
--------------------
BugID
Description
ProjectID
PriorityID
Employee
-------------------
EmployeeId
EmployeeName
Projects
-------------------
ProjectID
ProjectName
Priority
-------------------
PriorityID
PriorityName
I want to retrieve data from all of the tables, making BugHistory the main table.
I need [Description],[ProjectName],[PriorityName] from all the remaining four tables where EmployeeID is the key.
The data should be retrieved based on EmployeeID from BugHistory table; I will be getting the EmployeeID based on login. Can any one help me in writing this query?