Re: Employee_department relation ship table
Hi,EmployeeID Dept --------- 1 HR 2 Accts 3 ITID Name Depts-------------------1 Kevin 2,12 Michelle 13 Troy 1,34 Rheesa 2,3,1ID Name Depts-------------------------1 Kevin Accts,HR2 Michelle HR3 Troy...
View ArticleRe: Employee_department relation ship table
Hi Lokesh,Thank you very much for your response
View ArticleRe: Employee_department relation ship table
try thisSELECT emp.Id, emp.Name, (select STUFF((SELECT ',' + d.Name FROM EmployeeDepartments ed INNER JOIN Departments d ON ed.DepartmentId = d.Id INNER JOIN Employee e ON ed.EmployeeId = e.Id FOR XML...
View ArticleRe: Employee_department relation ship table
By using comma seperator,i have to display the table values likewise My Expected output should be like this EmpId Name Department 1 vicky Payroll,Management 2 nancy...
View ArticleRe: Employee_department relation ship table
Hi,You need to create 3 tables as belowEmployee Id Name Address City Department Id Name EmployeeDepartments Id EmployeeId DepartmentIdQuery to get all the employee departmentsSELECT e.Name, d.Name FROM...
View ArticleEmployee_department relation ship table
Hi,I am having two tables employee and department.Then in employee table column-EmpId,Name,Gender,city,EmpDepartmentId,SalaryDepartment table column-DepartmentId,DepartmentName.and also having...
View Article
More Pages to Explore .....