Write SQL queries to answer the following questions:
a. List the numbers of all sections of course ISM 4212 that are offered during the semester “II-2015.”
b. List the course IDs and names of all courses that ends with the letters “Analysis”
c. List the IDs of all faculty members who are qualified to teach both ISM 4212 and ISM 3113. Make sure to only list one ID for each faculty.
d. Modify the query above in part c so that both qualifications must have been earned after the year 2005.
Please find the solution below. Let me know if you have any doubt.
a) select SectionNo from SECTION where CourseID='ISM 4212' and Semester='II-2015';
b) select CourseID, CourseName from COURSE
where CourseName like '%Analysis';
c) select unique(FacultyID) from QUALIFIED
where CourseID in ('ISM 4212','ISM 3113');
d) select unique(FacultyID) from QUALIFIED
where CourseID in ('ISM 4212','ISM 3113') and DateQualified >= '1/1/2005'
Write SQL queries to answer the following questions: a. List the numbers of all sections of...
Problem 1-5 using the table below in the picture to be
answered in Microsoft SQL. Thanks
4. Write SQL queries to answer the following questions, a. How many students were enrolled in secoon 14 b. How many students were enrolled in ISM 3113 5. Write an SOL query to answer the following question Which students were not enrolled in any courses on Problems and Exercises 6 through 14 are based on Figure 7-15. The problem set continues from Chapter 6,...
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...
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....
Create sql queries to find the following
miscrosoft access compatible commands please
9. Courses for which at least three students earned a grade of A, showing the grade and the course code 10. Semesters when the highest number of courses have been scheduled, showing the semester name and the number of sections 11. (Extra) Professors that are not students, and students that are not professors, showing their ID and SSN 12. (Extra) Semesters for which all courses are taught by...
write sql queries]
9. The total number of sections taught by each instructor in
each (semester, year)
10. The total number of D and F grades in each (semester,
year)
11. The total number of D and F grades in each (semester, year)
for the “Graph Theory” course
write sql queries
U Ausigrument 11 * C Gullerewors llea With Chege x + - IX € → C a su.instructure.com/courses/34607/assignments/863706 Part 1 For the following database schema, write SQL queries to...
Please write ONE SQL statement for each of the following tasks using the below tables. Note that you can only use conditions specified in the task description and cannot manually look up data and add conditions. Task 1: return title of textbooks with price over $100. Task 2: return number of courses sections scheduled for each year and semester. Please return year, semester, and number of courses. Task 3: Return names of all courses in Information Systems undergraduate program. Task...
Consider the following database and answer the questions below. a) Write the SQL statement the displays the names of the students who have enrolled in the Database Systems course b) Write the SQL statement that displays a list of the students whose names start with 'S' c) Write the SQL statement that displays the Student ID, Student Name, Course ID, and Grade for students that passed at least one course with a grade better than B+ (i.e. A-, A, and...
10- Specify the following
queries in SQL on the database schema of Figure 2. a. Retrieve the
names of all senior students majoring in ‘CS’ (Computer Science).
b. Retrieve the names of all courses taught by Professor King in
2004 and 2005. c. For each section taught by Professor King,
retrieve the course number, semester, year, and number of students
who took the section. d. Retrieve the name and transcript of each
senior student (Class =4) majoring in CS. A...
1. Consider the following database. Note that it distinguishes between a course and the class of that course in a particular year. Courses can have prerequisites (aka a prereq), which is again a course. Person(UPI, givenname, surname) with key UPI Courses(course, title, program) with key course Classes(classnr, course, year) with key classnr Enrollments(UPI, classnr) Grades(UPI, classnr, grade) Prereqs(course, prereq) Teachers(UPI, classnr) With natural foreign key constraints given by common attribute names. 1. List all UPIs of all teachers who teach...