Create the following tables and insert some values. STUDENT (STDNO, SNAME, DEPTNO#) DEP (DEPTNO, DNAME) COURSE (CORSNO, CNAME, DEPTNO#, CMAX) ENROLMENT (STDNO#, CORSNO#, GRADE, EDATE) Query a single table 1) Display the whole content of the DEP table 2) Display all columns of the 'CP' department 3) Display the whole content of the STUDENT table 4) Display STDNO and SNAME for students in department 'CP' 7) Display all columns for departments when the Dname starts with letter 'M' or 'C'. 8) Display all columns for courses sorting the result by the CMAX descending.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter3: Table Creation And Management
Section: Chapter Questions
Problem 1HOA: Create a new table containing the category code and description for the categories of books sold by...
icon
Related questions
icon
Concept explainers
Question

please solve the last 3 questions 

with the fact that I have posted it before and the person who answered it said that I have to publish it again so you can solve the last 3 questions 

Create the following tables and insert some values.
STUDENT (STDNO, SNAME, DEPTNO#)
DEP (DEPTNO, DNAME)
COURSE (CORSNO, CNAME, DEPTNO#, CMAX)
ENROLMENT (STDNO#, CORSNO#, GRADE, EDATE)
Query a single table
1) Display the whole content of the DEP table
2) Display all columns of the 'CP' department
3) Display the whole content of the STUDENT table
4) Display STDNO and SNAME for students in department 'CP'
7) Display all columns for departments when the Dname starts with letter 'M' or 'C'.
8) Display all columns for courses sorting the result by the CMAX descending.
Transcribed Image Text:Create the following tables and insert some values. STUDENT (STDNO, SNAME, DEPTNO#) DEP (DEPTNO, DNAME) COURSE (CORSNO, CNAME, DEPTNO#, CMAX) ENROLMENT (STDNO#, CORSNO#, GRADE, EDATE) Query a single table 1) Display the whole content of the DEP table 2) Display all columns of the 'CP' department 3) Display the whole content of the STUDENT table 4) Display STDNO and SNAME for students in department 'CP' 7) Display all columns for departments when the Dname starts with letter 'M' or 'C'. 8) Display all columns for courses sorting the result by the CMAX descending.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Query Syntax
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning