Create a Student database and Retrieve the names of all students majoring in ‘CS'
Consider the following relational database:
STUDENT (name, student#, class, major)
COURSE (course name, course#, credit hours, department)
SECTION (section identifier, course#, semester, year, instructor)
GRADE_REPORT (student#, section identifier, grade)
PREREQUISITE (course#, presequisite#)
Specify the following queries in SQL on the above database schema.
(i) Retrieve the names of all students majoring in ‘CS' (Computer Science).
Query
SELECT NAME FROM STUDENT WHERE MAJOR = ‘CS' // Execute Select query to retrive database