Preview

Sql Database Language

Satisfactory Essays
Open Document
Open Document
1101 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Sql Database Language
MIS 6326 (Database Management) ( AIM 6337 (Data Strategy & Management)

Assignment 2: Chapters 4 & 9

Due date: August 2, 2012

Using the Chapters 4 & 9 University Database create one “SELECT” SQL statement for each of the following question.[1] [Note, the SQL statement may include nested queries.]

Turn in SQL statements only. (You do not have to turn in the results of SQL statements.)

1. Get the faculty numbers and names of MS department professors whose salary is greater than 68000.

SELECT FacFirstName, FacLastName, FacSalary FROM Faculty WHERE FacName = *MS* AND FacSalary > 68000

2. Get the offering, the course number, and the course description of SUMMER 2010 offerings without an assigned instructor.

SELECT OfferNo, Course, CourseNo, CrsDesc FROM Offering , Course WHERE Offering. CourseNo = Course. CourseNo AND FacNo IS NULL AND offTerm = *SUMMER* AND OffYear = 2010
3. Get the student numbers, names, and majors of students who took course ‘IS480’ in SPRING 2010.

SELECT Student, StudNo, StdFirstName, StdLastName, StdMajor FROM Student, Enrollment, Offering WHERE Student. StdNo = Enrollment. StdNo AND Enrollment.OfferNo = Offering. OfferNo AND CourseNo = *IS480* AND OffTerm = *SPRING* AND OffYear = 2008
4. Get the student numbers, names, and majors of students who took Prof. Nicki Macon’s offering in SPRING 2010.

SELECT Student, StdNo, StdFirstName, StdLastName, StdMajor FROM Student, Enrollment, Offering, Faculty WHERE Student, StdNo = Enrollment. StdNo AND Enrllment, OfferNo = Offering. OfferNo AND Offering FacNo = Faculty. FacNo AND FacFirstName = *NICKI* AND FacLastName = *MACON* AND OffTerm = *SPRING* AND OffYear =2008

5. Get the student numbers of students who have taken IS courses.

SELECT DISTINCT StdNo FROM Enrollment, Offering WHERE Enrollment.OfferNo = Offering.

You May Also Find These Documents Helpful

  • Good Essays

    Nt1330 Unit 4

    • 1142 Words
    • 5 Pages

    29. Dottie gave her students a test about database concepts and functions. She arranges the…

    • 1142 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Kudler Fine Food Week 4

    • 284 Words
    • 2 Pages

    Using the database and tables from Week Three, write queries using the SQL SELECT statement.…

    • 284 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Hmt 405 Aplia Case Study

    • 4460 Words
    • 18 Pages

    Note: The best way to contact me is via email. I will not respond to emails that don’t have the course name and semester in the subject heading. Example: MGMT 405: FALL 2012…

    • 4460 Words
    • 18 Pages
    Good Essays
  • Satisfactory Essays

    Extract the First and Last Name, Address, City, State, Zip Code and Phone Number of each senior on the database. Sort by Last Name, then First Name (1 sort).…

    • 325 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    ACC 557 Entire Course

    • 350 Words
    • 3 Pages

    ACC 557 Entire Course / Assignments / DQs / Homework Chapters / Quizzes / Strayer University…

    • 350 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Week2 Discussion2 DBMS

    • 480 Words
    • 3 Pages

    References: 1) Database system Design implementation and management 9th edition Coronel, C., Morris, S.,& Rob, P(2011).…

    • 480 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    cheat sheet

    • 1430 Words
    • 6 Pages

    3. Find all employees who live in the same city and street as their manager (3 pts)…

    • 1430 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    CTS 2437 Final Exam

    • 630 Words
    • 4 Pages

    2. Select the course reference numbers and enrollments for courses with greater than the average enrollment of courses with more than 20 persons. Use a subquery.…

    • 630 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Finance

    • 2374 Words
    • 10 Pages

    Be transparent during the process; make sure not to hide data that indicates less than optimal outlook or performance.…

    • 2374 Words
    • 10 Pages
    Good Essays
  • Satisfactory Essays

    Hrmn 300

    • 686 Words
    • 3 Pages

    3. Enter the same search statement in just one database chosen from an appropriate subject guide. Which subject guide did you use to find a database? What database did you choose? Why did you choose that database? How many results did you get when you ran your search in that database? (Note that this question has 4 parts. You must answer all 4 parts.)…

    • 686 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    20. Northwestern University (McCormick) (IL) 64 4.0 3.9 770 27.5% 4.5 5.2% $117.0 $664.9 121 1,439…

    • 7639 Words
    • 31 Pages
    Satisfactory Essays
  • Satisfactory Essays

    (SELECT ClassName FROM Table3 WHERE Id = Table1.ClassId) AS ClassName FROM Table1 WHERE Active = 1…

    • 374 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    SQL works with database programs like DB2, Oracle, MS Access, Sybase, MS SQL Sever etc.…

    • 887 Words
    • 4 Pages
    Good Essays
  • Good Essays

    11. Marital Status: Married Unmarried 12. Details of Marks Secured in Graduation and Above: Exam Passed Semester/Year Wise Marks Secured Semester / Year I II III IV Marks Obtained Maximum Marks % Marks . . . . Semester / Year V VI VII VIII Marks Obtained Maximum Marks % Marks . . . . .…

    • 376 Words
    • 2 Pages
    Good Essays
  • Powerful Essays

    scde

    • 9822 Words
    • 40 Pages

    Course credits assignment ......................................................................................... Earning credits .......................................................................................................... Course content description ......................................................................................... Course coordinator .................................................................................................... Grading system .........................................................................................................…

    • 9822 Words
    • 40 Pages
    Powerful Essays

Related Topics