As i m using SQL Server, i have found many Query solution by myself.
And thanks to the Dreamincode forum it helped me alot whenever i faced the problem just by exploring it.
now i couldnt found any solution for my recent problem.
Consider the following few relations of Academic systems. that u develpoed by applying basic concepts of database management. now i have created all the tables and want to experiement the quries i founded. i want you to write those quires for me.
1. Semester (SemNo, Sem_Dur, Start_Date, End_Date)
2. Professor (VUPid, P_Name, Age, Deptid, CourseCode)
3. Prof_Exp(VUPid, Experience)
4. Department (Deptid, D_Name, Main_Office, HOD)
5. Project (Pid, Title, Start_Date, Due_Date, Prj_Instructor)
6. CoursePre-Req(CourseCode, Pre-requisite)
7. Course (CourseCode, C_Name, Prg_Code)
8. Student (VUSid, Std_Name, Std_Age, Prg_Code, )
9. Program (Prg_Code, Prg_Name, No_of_Sem)
10. ProgramDur (Prg_Code , Max_Dur)
Write down the QUERIES for the following given situations.
a. Create a new data base. Name it VUDBMS.
b. Create Tables with attributes and name them accordingly.
c. Insert data in related Tables (program, student, professor, degree).
***. Show one command for single entry in each relation.
d. List the names, ages, Department Name of professors, working in a different department.
e. List the professor Names, Total Experience and Group by professor Names.( using aggregate functions)
f. List the program code, program Name, Max. Duration from relations named Program. ( using aggregate functions)
g. List Department Name, Address and HOD Name.
h. List student ID, Student Name, student age where student ages are between 18 and 25 and sort by age field in ascending order.
i. Alter student relation by adding column Address.
j. List project title, start date and project instructor where project due date is greater then today date and sort result by start date field in Ascending order (using aggregate function getdate())
I shall be very thankfull.
Page 1 of 1
SQl Server Query problem solving
2 Replies - 1082 Views - Last Post: 31 May 2009 - 10:35 PM
Replies To: SQL query
Page 1 of 1