Professional Documents
Culture Documents
Article That Create Studen1
Article That Create Studen1
etc...
STUDENT
STUDENT NO TEXT (3) PRIMARYKEY
STUDENT_NAME TEXT (10)
STUDENT_DOB DATE
STUDENT_DOJ DATE
PROJECT
PRJ_NO TEXT (3) PRIMARY KEY
PRJ_NAME TEXT (15)
PRJ_DUR NUMBER (2)
PRJ_PLATFORM TEXT (10)
STUDENT PROJECT
STUDENT_NO TEXT (3)
PRJ_NO TEXT (3)
DESIGNATION TEXT (10)
PRIMARYKEY (STUDENT_NO,PRJ_NO,DESIGNATION)
FOREIGN KEY(STUDENT_NO)
FOREIGN KEY(PRJ_NO)
desc student;
desc project;
desc StudentProject;
Insert statements
Output :
Output :
P01 XYZ 6 VB
P02 ABC 5 JAVA
P03 LMN 6 C++
Output :
Find number of student who participated in the more than single project.
Find the no of student who did not participated in any of the project
Output :
SELECT S.st_no,P.prj_name,P.prj_dur
from Student S,Project P,StudentProject SP
where S.st_no = SP.st_no and P.prj_no = SP.prj_no;
Output :
ST1 LMN 6
ST1 XYZ 6
ST2 XYZ 6
ST3 ABC 5
ST4 ABC 5
ST5 LMN 6
ST6 LMN 6
Output :
PRJ TOTAL STUDENTS
P01 2
P02 2
P03 3
Output :
ST1 KRUNAL 2
ST2 BHAVESH 1
ST3 DARSHAN 1
ST4 DHAVAL 1
ST5 BIBIN 1
ST6 SAMIR 1
Output :
ST3 DARSHAN 21
ST4 DHAVAL 22
Output :
Display the informaton of student who is as programmer and analyst in the same
project. (Can use table Alias)
Output :
Output :
ST_ COUNT(DESIGNATION)
ST1 2
ST3 2
Display the info of the project with greater than single no of student involve in it.
Output :
COUNT(ST_NO) PRJ
3 P01
3 P02
3 P03
Output :
P01 XYZ 6 VB
P03 LMN 6 C++
Display the info of the student who works as a prog and as a analyst not for the
same project.(can Use Table alias)
Output :
Display the info of the student who works as a programmer and not as an
analyst for the same project.(can Use Table alias)
Display the info of the student who participated in the project where total no
of the student should be exact three.
Output :
Output :