posted 15 years ago
i tried these queries
select USER.`EMP_ID`,USER.`FIRST_NAME`,USER.`LAST_NAME`,PRIVILEGE.`PRIVILEGES`
PRIVILEGE.`START_DATE`,PRIVILEGE.`END_DATE`,ROLE.`ROLES`,ROLE.`START_DATE`,ROLE.`END_DATE`,
from USER
left join PRIVILEGE on USER.EMP_ID=PRIVILEGE.`EMP_ID` and PRIVILEGE.`PRIVILEGES`="SAP"
left join ROLE on USER.EMP_ID=ROLE.EMP_ID and ROLE.ROLES="SME";
and
select USER.`EMP_ID`,USER.`FIRST_NAME`,USER.`LAST_NAME`,PRIVILEGE.`PRIVILEGES`
PRIVILEGE.`START_DATE`,PRIVILEGE.`END_DATE`,ROLE.`ROLES`,ROLE.`START_DATE`,ROLE.`END_DATE`,
from USER,PRIVILEGE,ROLE
where (USER.EMP_ID=PRIVILEGE.`EMP_ID` and PRIVILEGE.`PRIVILEGES`="SAP") and (USER.EMP_ID=ROLE.EMP_ID and ROLE.ROLES="SME");
but not getting executed