Question: These statements are not working in Oracle SQL Developer mySQL Write 1 0 SQL statements against the STUDENT schema. Your statements should run error -
These statements are not working in Oracle SQL Developer mySQL
Write SQL statements against the STUDENT schema. Your statements should run errorfree and should be valid. Submit two separate files: one plain text file txt or sql file with your statements only noncode should be properly commented; and the other document docdocxpdf include both your statements and your query results copy and paste text or screen shots The instructor should be able to run your plain text source file as script and generate the same output as shown in your result document.
Q Show all students who has a registration date of Display salutation, first name inital, and full last name in all upper cases in one column labeld "Student List". HINT: use functions such as UPPER and SUBSTR
Sample Result:
Student List
Mr R SHI
Ms H LOPEZ
Q Display the number of students who live on the th St in Brooklyn, NYHINT: use the COUNT function and join table STUDENT with ZIPCODE
Q Show section information for all Programming related courses description has "Programming" excluding "Intro to Programming" or any Java related programming courses. Dispaly CourseNo course description, SectionNo section location, and section capacity. If a course has no section, then display NA for section location and leave other section related columns blank. HINT: left join COURSE and SECTION; use the NVL function
Q Show the address information for all Flushing, NY students who live in an apartment if address contains # Display student first name, last name, street information number and street name and apartment number. HINT: use string functions such as SUBSTR and INSTR
Sample Result:
FIRSTNAME LASTNAME STREETINFORMATION APARTMENTNUMBER
Mary Axch st Ave. #T
Q For sections offered for Intro To Programming, calculate and display number of sections offered, total capacity, lowest capacity, highest capacity, and average capacity. HINT: use functions such as COUNT, SUM, MIN, MAX, and AVG
Q List all course sections that have a start date on or after and have not been enrolled by any student. Display section ID course No startdatetime. HINT: use left join and TODATE function
Q For all Programming related course sections taught by Anita Morris, calculate and list total number of sections and total capacity. HINT: join INSTRUCTOR, SECTION, and COURSE
Q List all students who took a course from Anita Morris and who enrolled days or more before section start date. Display student first name, last name, enroll date, section start date, and instructor phone number. HINT: join STUDENT, ENROLLMENT, SECTION, and INSTRUCTOR; use section.startdatetime enrollment.enrolldate to calculate number of days in between
q For all sections taught by Anita Morris, calculate the average of the Final grade HINT: join INSTRUCTOR, SECTION, ENROLLMENT, and GRADE; use FI as gradetypecode
q Find any studentinstructor pairs so that the student has taken a course taught by the instructor and they live in the same zipcode. Display student first and last name, instructor first and last name, and their zipcode
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
