Problem 1-5 using the table below in the picture to be answered in Microsoft SQL. Thanks
PLEASE LIKE THIS ANSWER, IT HELPS ME A LOT. THANK YOU!!!
(1)
a. Display the course ID and course name for all courses with an ISM prefix:
Query:
SELECT COURSE_ID, COURSE_NAME
FROM COURSE
WHERE COURSE_ID LIKE 'ISM%';
b. Display all courses for which Professor Berndt has been qualified:
Query:
SELECT FACULTY_NAME, COURSE.COURSE_ID, COURSE_NAME
FROM FACULTY, COURSE, QUALIFIED
WHERE QUALIFIED.FACULTY_ID = 3467
AND FACULTY.FACULTY_ID= QUALIFIED.FACULTY_ID
AND COURSE.COURSE_ID=QUALIFIED.COURSE_ID;
c. Display the class roster, including student name, for all students enrolled in section 2714 of ISM 4212:
Query:
SELECT STUDENT.STUDENT_ID, STUDENT_NAME,
SECTION.COURSE_ID, REGISTRATION.SECTION_NO, SEMESTER
FROM STUDENT, REGISTRATION, SECTION
WHERE SECTION.SECTION_NO= REGISTRATION.SECTION_NO
AND STUDENT.STUDENT_ID= REGISTRATION.STUDENT_ID AND REGISTRATION.SECTION_NO=2714
AND SECTION.SEMESTER='I-2008'
AND REGISTRATION.SEMESTER='I-2008'
ORDER BY STUDENT_NAME;
(2)
SELECT FacultyName
FROM FACULTY,QUALIFIED
WHERE QUALIFIED.FacultyID=FACULTY. FacultyID
AND QUALIFIED.CourseD='ISM 3113';
(3)
SELECT FACULTY.FacultyNAME
FROM FACULTY, QUALIFIED
WHERE QUALIFIED.FacultyID=FACULTY. FacultyID
AND QUALIFIED.CourseID='ISM 3113'
AND NOT (QUALIFIED.CourseID='ISM 4930')
(4)
a) SELECT COUNT (DISTINCT (StudentID))
FROM REGISTRATION
WHERE SectionNo = 2714
AND SEMESTER = 'I-2008'
b) SELECT COUNT (DISTINCT (StudentID))
FROM SECTION,
REGISTRATION
WHERE SECTION.SectionNO
= REGISTRATION.SectionNO
AND CourseID = 'ISM
3113'
AND Semester =
'I-2008'
(5)
Select STUDENT.StudentID, STUDENT.StudentName from
STUDENT Where NOT EXISTS
(
Select * from REGISTRATION where REGISTRATION.StudentID = STUDENT.StudentID and REGISTRATION.Semester = 'I-2008')
PLEASE LIKE THIS ANSWER, IT HELPS ME A LOT. THANK YOU!!!
Problem 1-5 using the table below in the picture to be answered in Microsoft SQL. Thanks...
Problems and Exercises 1 through 5 are based on the class schedule 3NF relations along with some sample data in Figure 7-16. For Problems and Exercises 1 through 5, draw a Venn or ER diagram and mark it to show the data you expect your query to use to produce the results.Figure 7-16: Class scheduling relations (for Problems and Exercises 1-5Figure 7-17 Adult literacy program (for Problems and Exercises 6-14)1. Write SQL retrieval commands for each of the following queries:a....
Problems and Exercises 1 through 9 are based on the dass scheduling 3NF relations along with some sample data shown in Figure 6-11. Not shown in this figure are data for an ASSIGNMENT relation, which represents a many-to-many relationship between faculty and sections.4. Write SQL data definition commands for each of the following queries:a. How would you add an attribute, Class, to the Student table?b. How would you remove the Registration table?c. How would you change the FacultyName field from...