Assignement 1queries Using Join On Tables
Assignement 1queries Using Join On Tables
Where emp.eno=emp_proj.eno
Where proj.pno=emp_proj.pno
Stud_teach(sno,tno,subject)
Select count(tno) from stud_teach group by subject;
2. Bank database
Consider the following database maintained by a Bank. The Bank maintains information
About its branches, customers and their loan applications.
Following are the tables:
BRANCH (BID INTEGER, BRNAME CHAR (30), BRCITY CHAR (10))
CUSTOMER (CNO INTEGER, CNAME CHAR (20), CADDR CHAR (35), CITY (20))
Q. 3
Employee ( eno,ename,salary,joindate,age,city)
Project (pno,pname,ptype,startdate,budget)
Project and emp are related with many to many relationship with descriptive attribute
n_of_hours
Pro_emp( eno*,pno*,no_of_hours)