BCSE302 - DBMS Lab-Exercise 7 - SQL Set Operations and Views
BCSE302 - DBMS Lab-Exercise 7 - SQL Set Operations and Views
2. Display CId of the customers those who have both deposit and loan
3. Display Cid of the customers those who have only deposit
4. Display Cid of the customers those who have only loan
5. Display Cid and Name of the customers those who have both deposit
and loan
6. Display Cid and Name of the customers those who have only deposit
7. Display Cid and Name of the customers those who have only loan
1 row created.
SQL> INSERT INTO Customer (Acno, Cid, Name, Address, DoB, MobileNo)
2 VALUES(1003, 'C103', 'Mohan', 'Chennai', TO_DATE('1990-04-20', 'YYYY-MM-DD'),
'7896543211');
1 row created.
SQL> INSERT INTO Customer (Acno, Cid, Name, Address, DoB, MobileNo)
2 VALUES (1004, 'C104', 'Aisha', 'Delhi', TO_DATE('1985-11-23', 'YYYY-MM-DD'), '6543219876');
1 row created.
SQL> INSERT INTO Customer (Acno, Cid, Name, Address, DoB, MobileNo)
2 VALUES(1005, 'C105', 'David', 'West Bengal', TO_DATE('1968-12-31', 'YYYY-MM-DD'),
'9876541230');
1 row created.