SQL |
SELECT employee.empId,
employee.fName,
employee.mName,
employee.lName,
employee.nickName,
employee.email,
employee.cellphone,
employee.homePhone,
employee.hireDate,
employee.psiaAasiCurrent,
cert.certName as primeCertName,
disipline.disipline as primeDis,
employeeStatus.empStatus,
c.certName as secondCertName,
d.disipline as secondDis
FROM employee left join cert on employee.primaryDisCertID = cert.certId
left join disipline on employee.primaryDisiplineID = disipline.disID
left join employeeStatus on employee.empStatusID = employeeStatus.empStatusID
left join cert as c on employee.secondaryDisCertID = c.certID
left join disipline as d on employee.secondaryDisiplineID =d.disID |