The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Display student id, student first name, student last name, the students’ faculty advisor id, advisor last name, advisor location and phone number. You will join uc_student and uc_faculty
Â
Write a SELECT statement that will return the faculty last name, faculty first name and the room for faculty whose offices are located in the ‘BUS’ building.
Â
Display data from the uc_course_section table by performing a Three Table Join with the uc_course_section, uc_location and uc_course. The SELECT statement will display the course section id (c_sec_id), the course name, number of credits, maximum number of enrollments in a course section, building and room where the class meets and the capacity of the room … and only for courses for term_id 5.
Â
Â
Write a select statement that will display student id, student last name and the number of courses a student has been enrolled. You will need to join two table, use a COUNT aggregate and a GROUP BY clause in your SELECT statement.
Â
Create a SELECT statement that would provide data for a faculty directory. Display should include faculty id, first name, middle initial, last name, office location (building and room), rank and phone number. The display should be sorted by last name ascending. Concatenate first name, middle initial and last name to look like ‘ James E. Smith’. Concatenate building and room to look like ‘ENG102’. Override the column labels with meaningful descriptions.
Â
Â
IST210 --- World CampusLab # 5 Demonstration of JOINS1.Provide a listing of courses being offered.Include course identification, course name,section identification, term identification and maximum enrollment.selectuc_course.course_id,course_name,c_sec_id,term_id,max_enrlFROMuc_course,uc_course_sectionWHEREuc_course_section.course_id=uc_course.course_id2.For situation in # 1,only display the courses if the course meets onMonday/Wednesday/Fridayselectuc_course.course_id,course_name,c_sec_id,term_id,max_enrlFROMuc_course,uc_course_sectionWHEREuc_course_section.course_id=uc_course.course_idandc_sec_day='MWF'3.Display the grades sorted by term include student identification, student last name, termidentification, course identification and section identification (c_sec_id) and grade.Donot select if no grade exists.selectuc_student.s_id,s_last,course_id,uc_enrollment.c_sec_id,gradeFROMuc_student,uc_course_section,uc_enrollmentWHEREuc_student.s_id=uc_enrollment.s_idANDuc_enrollment.c_sec_id=uc_course_section.c_sec_idANDgradeISNOTNULL4. Display the number of sections that each faculty teaches.Displayfacutly identification,faculty last name and number of coursesections.selectuc_faculty.f_id,f_last,COUNT(*)asNumSectionsFROMuc_faculty,uc_course_sectionWHEREuc_faculty.f_id=uc_course_section.f_idGROUPBYuc_faculty.f_id,f_last5. Display student id and student entire name formatted ‘Smith, James’ withthe labels ‘S#’ and ‘Name’selects_idASS#,s_last+', '+s_firstASNameFROMuc_student
Attachments:
-----------