I am new to functions so am having a bit starting trouble here
I have two tables like this
Bugs
BugID | Title | ProjectName | CreatedBy
BugHistory
BughistoryID | BugID | Assignedto | ToStatus | FromStatus
EmployeeTable
EmployeeID | EmployeeName |
[AssignedTo] column from BugHistory is a foreign key for [EmployeeId] in EmployeeTable.
I want a select statement where I have to show the bugs table in gridview with [AssignedTo] and [Tostatus] columns from BugHistory table. How can I use functions for this both procedure s any ideas please?
In Assigned to column I want the name of the employee - how can I map this?