Professional Documents
Culture Documents
AIM
QUERY:
1. Create tables as given below & perform the following join operations. o Inner Join,
Left Join, Right Join & Cross Join.
STUDENT MARKS
ID NUMBER PK ID NUMBER PK
SNAME VARCHAR S_ID NUMBER FK , STUDENT(ID)
GENDER VARCHAR MARK NUMBER
QUERY:
Q1. Display the details of employee, departments such that the departments are same in both the
employee and department tables.
SQL> select e.empno,e.ename,e.job,e.salary,d.dname,d.location from employe e inner join
department d on e.deptno=d.deptno;
Q2. Display the empno,ename & location of employees who works in MCA & CSE departments.
Q3. Display the empno,ename & job of employee who works in ‘Dallas’.