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

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section8.2: Lookup Tables And The Iferror Function
Problem 4QC
icon
Related questions
icon
Concept explainers
Question

Solve this (SQL)

Lab Exercise
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:Lab Exercise 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
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
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
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage