Subject : computer science -web development
Qus: using the database tables below write the SQL queries:
( SELECT; FORM; WHERE; ORDER BY; DISTINCT; GROUP BY; COUNT(); SUM(); AVG(); MAX(); MIN(); JOIN; ON)
Student (StudentId, Major, GPA)
Transcript( Studentid, CourseNo, Gread);
Course( CourseNo, Title, Credits)
If you have any doubts comment below
A)
select title from course where credits=3
B)
select AVG(GPA) from Student where Major="CSC"
C)
select distinct Student.major from Student join Transcript on Student.StudentId = Transcript.StudentId where Transcript.Grade="A" and CourseNo="CSC350"
D) select Course.title, count(Transcript.Grade) from Course,Transcript where Transcript.Grade = "F" orderby Course.title
E)
select Student.Studentid, Course.title, Transcript.Grade from Student,Course,Transcript where Student.Major="CSC" and Student.GPA>=3
Subject : computer science -web development Qus: using the database tables below write the SQL queries:...
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...
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...
Question 1.Write a SQL statement for each of the following questions based on the above tables (50 Points). 1) Create “Enrollment” table. 2) Change the credits of “Database” course from 2 to 3. 3) List the course titles (not Course_No) and grades John Doe had taken. 4) Calculate average of Café Balance, and name new field as Average Balance. 5) Create a roster for “Database” course (list student ID, last name, first name, major, and status for each student enrolled...
May I ask the SQL code as follows? The relational database moviedb has the following database schema: Movie(title, production year, country, run time, major genre) primary key : {title, production year} Person(id, first name, last name, year born) primary key : {id} Award(award name, institution, country) primary key : {award name} Restriction Category(description, country) primary key : {description, country} Director(id, title, production year) primary key : {title, production year} foreign keys : [title, production year] ⊆ Movie[title, production year] [id]...
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...