SQL query

SQl Server Query problem solving

Page 1 of 1

2 Replies - 993 Views - Last Post: 31 May 2009 - 10:35 PM Rate Topic: -----

#1 you2ndfather  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 29-May 09

SQL query

Post icon  Posted 31 May 2009 - 09:19 PM

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.

Is This A Good Question/Topic? 0
  • +

Replies To: SQL query

#2 xerxes333  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 31
  • View blog
  • Posts: 504
  • Joined: 05-July 07

Re: SQL query

Posted 31 May 2009 - 09:33 PM

what do you have so far. Dont expect us to answer your questions for you. We need to see some effort from you.
Was This Post Helpful? 0
  • +
  • -

#3 you2ndfather  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 29-May 09

Re: SQL query

Posted 31 May 2009 - 10:35 PM

thank you........
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1