Question

Subject : computer science -web development Qus: using the database tables below write the SQL queries:...

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)

  1. Display the title of the course(s) that are 3 credits?
  1. Display the average GPA of the students Majoring in ‘CSC’

  1. List non duplicated major(s) of students who have received a grades of ‘A’ in CSC350

  1. List the course title  (in ascending alphabetical order0 and count of ‘F’ grades for each course

  1. List the Studentid, Course title and grade of all students who are ‘CSC’ majors and have a GPA of 3.0 or above

0 0
Add a comment Improve this question Transcribed image text
Answer #1


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

Add a comment
Know the answer?
Add Answer to:
Subject : computer science -web development Qus: using the database tables below write the SQL queries:...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • write sql queries] 9. The total number of sections taught by each instructor in each (semester,...

    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...

    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...

    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...

    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...

    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...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT