SQL Queries
1.FIND THE EMPLOYEES WHO BELONG TO THE SAME CITY AS PRAKASH SELECT * FROM EMPLOYEES WHERE CITY=(SELECT CITY FROM EMPLOYEES WHERE TITLE='SALES MANAGER') 2.FIND THE EMPLOYEES WHO JOINED THE SAME DAY AS PREM SELECT * FROM EMPLOYEES WHERE BIRTHDATE=(SELECT BIRTHDATE FROM EMPLOYEES WHERE EMPLOYEEID=9) 3.FINDING THE EMPLOYEES WHERE INNER JOIN IS RETURNING MORE THAN ONE ROW SELECT * FROM EMPLOYEES WHERE CITY IN(SELECT CITY FROM EMPLOYEES WHERE TITLE='SALES REPRESENTATIVE') 4.CORELLATED SUBQUERY SELECT EMP_NO, NAME, HIRE_DATE, MGR_NO FROM EMPLOYEES SUBORDINATES WHERE HIRE_DATE < (SELECT HIRE_DATE FROM EMPLOYEES BOSSES WHERE BOSSES.EMP_NO = SUBORDINATES.MGR_NO) 5.Left and Right outer join SELECT titles.title_id, titles.title, publishers.pub_name FROM titles right OUTER JOIN publishers ON titles.pub_id = publishers.pub_id Right join -- All rows in the second-named table (the "right" table, which appears rightmost in the J...