Preview

CTS 2437 Final Exam

Satisfactory Essays
Open Document
Open Document
630 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
CTS 2437 Final Exam
CTS 2437
Final Exam--Part 2
Before providing a solution for any of the following problems, create the Faculty database. This is attached to the Final Exam—Part 2 link in Blackboard.
You should provide (1) a screen shot of your solution and (2) code for your solution, copied/pasted into this document. Each problem is worth 20 points.
1. Select the number of courses that have more than 20 persons enrolled, the total number of students in courses with more than 20 persons, and the average enrollment per each course with more than 20 persons.
SELECT 'COURSES' AS CourseSelection, COUNT(*) AS NumberOfEnrollment, AVG (Enrollment) AS AverageEnrollment, SUM (Enrollment) AS TotalEnrollment
FROM Course
Where Enrollment > 20

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.
SELECT Ref_Number, Enrollment
FROM Course
WHERE Enrollment > 20 and Enrollment > (SELECT AVG (Enrollment) FROM Course);

3. Repeat (2), using a join.
SELECT FirstName, Lastname, Ref_Number, Enrollment
FROM Course join Faculty ON Faculty.Faculty_ID = Course.Faculty_ID
Where Enrollment > 20 and Enrollment > (SELECT AVG (Enrollment) FROM Course)

4. Create a table called Customers that contains a person’s first name, last name, and social security number. Your table definition should
Require a first and last name.
Insure that SSN is in the form 999-99-9999.
Define SSN should as a unique key.
Have a primary key that is an identity field
CREATE TABLE Customers
( Customer_ID INT PRIMARY KEY IDENTITY, LastName varchar(20) NOT NULL, FirstName varchar(20) NOT NULL, SSN INT CHECK (SSN in ('999-99-9999')) UNIQUE,);

5. Create a view that includes the first and last names of full time faculty members, along with

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Agec 424 Final Exam

    • 2763 Words
    • 12 Pages

    You must show logically correct work, including calculator inputs and outputs for all problems to receive credit. Show signs on calculator inputs. Differentiate calculator outputs from inputs.…

    • 2763 Words
    • 12 Pages
    Satisfactory Essays
  • Good Essays

    Cse 373 Final Note

    • 955 Words
    • 4 Pages

    An ordered or sorted binary tree, is a node based binary tree data structure that has the following properties:…

    • 955 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Nt1330 Unit 4

    • 1142 Words
    • 5 Pages

    30. Dax performed a search for counties with populations greater than 25,000 from one table…

    • 1142 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    The school would need to keep track of the school computers and faculty, as well as the number of copies to have them and whom haves them. Since it was specified that faculty and staff are two different topics, then each will be considered the major topic. The computers…

    • 402 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    ( NAME = N'Jeff Thompson Sr - POS 410 - IA - KVO_log', FILENAME = N'D:\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\Jeff Thompson Sr - POS 410 - IA - KVO_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)…

    • 1555 Words
    • 7 Pages
    Powerful Essays
  • Powerful Essays

    COM 100 Exam 1

    • 1961 Words
    • 9 Pages

    You will have 60 minutes to complete the exam from the time it is distributed. You will have ample time to read each test item carefully and respond to each test item thoughtfully. Test items are not intended to be tricky, but rather to assess the depth of your understanding.…

    • 1961 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Activestats

    • 602 Words
    • 3 Pages

    To conclude what I observe on the project parts B and C, is that there are 860 students, which 60.7% are female and 39.3% are male…

    • 602 Words
    • 3 Pages
    Good Essays
  • Good Essays

    3. What is the probability that the true proportion of the professor’s students who were registered…

    • 770 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    Assignment2

    • 619 Words
    • 2 Pages

    a. Retrieve the names of all employees who work in the department that has the…

    • 619 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Psychology Assignment

    • 1556 Words
    • 7 Pages

    10. College XYZ wants to collect information from students concerning a plus/minus grading system (the college administration wants to add minus grades to the plus values…

    • 1556 Words
    • 7 Pages
    Good Essays
  • Good Essays

    in future versions of the Digest. Soaring interest in petroengineering, and related disciplines such as metallurgical…

    • 551 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    The current reality for public educational institutions in Texas is the new assessment tool used by the state, STAAR / EOC. The test has raised the bar in terms of what students need to be proficient in by the time they graduate from high school. With the change of assessment, there must come a change in the way instruction is provided. As if that weren’t enough of a challenge, the rapid growth of the Limited English Proficiency (LEP) student population in Texas coupled with the increased federal requirements have resulted in an increased need for language arts and other content teachers to understand the unique needs of the LEP students in their classes. Donna High School is no stranger to either of the above mentioned obstacles. Proximity to the Mexican border has had a huge impact on the influx of recent immigrant students. Like any other educational institution, it is the responsibility of the district and campus to provide the new and current students with a quality education that increases their academic achievement.…

    • 1611 Words
    • 7 Pages
    Powerful Essays
  • Satisfactory Essays

    Geo Sba

    • 700 Words
    • 3 Pages

    Question 12 (Use an advance filter to extract the required data from trainers’ summary table)…

    • 700 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Maths

    • 587 Words
    • 3 Pages

    In a class of 40 students 15 of the total number of students like to study English, 25 of the total number like to study mathematics and the remaining students like to study Science.…

    • 587 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    - Defines school directory, faculty members, subjects, subject prerequisites, composites, class room, class section, and schedule template.…

    • 444 Words
    • 3 Pages
    Satisfactory Essays

Related Topics