STU_ STU_SNAME NUM 01 02 03 04 05 06 07 Snow Stark Lannister Lannister Greyjoy Tyrell Baratheon STU_FNAME STU_INITIAL STU_START DATE Jon Arya Jamie Cercei Theon Margaery Tommen E C с J | Y R 05-Apr-14 12-Jul-17 05-Sep-12 05-Sep-12 9-Dec-15 12-Jul-17 13-Jun-19 COURSE_ PROJ_ CODE NUM 201 305 101 101 402 305 201 6 11 2 2 Write the SQL code that will delete the Student table entirely. 14 10 5 Write the SQL code to change the course code to 304 for the person whose student number is 07. Write the SQL code to delete the row of the person named Jamie Lannister, who started on 5 September 2012, whose course code is 101 and project number is 2. Use logical operators to include all of the information given in this problem. Write the SQL code that will change the PROJ_NUM to 14 for all those students who started before 1 January 2016 and whose course code is at least 201. Write the SQL code that will delete all of the data inside a table, but not the table itself. with it, paste your code in a text file named Student.txt and save it in your task folder. Write the SQL code to create a table called Student. The table structure is summarised in the table below (Note that STU_NUM is the primary key): STU_NUM Attribute Name STU_SNAME STU_FNAME STU_INITIAL STU_STARTDATE COURSE_CODE PROJ_NUM STU STU_S STU_F STU_INITIAL NUM NAME NAME 01 02 Snow John E CHAR(6) After you have created the table in question 1, write the SQL code to enter the first two rows of the table as below: Stark Arya с VARCHAR(15) VARCHAR(15) CHAR(1) DATE CHAR(3) INT(2) Data Type STU_STARTDATE COURSE_ PROJ_ CODE NUM 05-Apr-14 12-Jul-17 201 305 6 11 Assuming all the data in the Student table has been entered as shown below, write the SQL code that will list all attributes for a COURSE_CODE of 305.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter3: Performing Calculations With Formulas And Functions
Section: Chapter Questions
Problem 3.3CP
icon
Related questions
icon
Concept explainers
Question
STU_ STU_SNAME
NUM
01
02
03
04
05
06
07
Snow
Stark
Lannister
Lannister
Greyjoy
Tyrell
Baratheon
STU_FNAME STU_INITIAL STU_START
DATE
Jon
Arya
Jamie
Cercei
Theon
Margaery
Tommen
E
C
с
J
|
Y
R
05-Apr-14
12-Jul-17
05-Sep-12
05-Sep-12
9-Dec-15
12-Jul-17
13-Jun-19
COURSE_ PROJ_
CODE
NUM
201
305
101
101
402
305
201
6
11
2
2
Write the SQL code that will delete the Student table entirely.
14
10
5
Write the SQL code to change the course code to 304 for the person whose
student number is 07.
Write the SQL code to delete the row of the person named Jamie Lannister,
who started on 5 September 2012, whose course code is 101 and project
number is 2. Use logical operators to include all of the information given in
this problem.
Write the SQL code that will change the PROJ_NUM to 14 for all those
students who started before 1 January 2016 and whose course code is at
least 201.
Write the SQL code that will delete all of the data inside a table, but not the
table itself.
Transcribed Image Text:STU_ STU_SNAME NUM 01 02 03 04 05 06 07 Snow Stark Lannister Lannister Greyjoy Tyrell Baratheon STU_FNAME STU_INITIAL STU_START DATE Jon Arya Jamie Cercei Theon Margaery Tommen E C с J | Y R 05-Apr-14 12-Jul-17 05-Sep-12 05-Sep-12 9-Dec-15 12-Jul-17 13-Jun-19 COURSE_ PROJ_ CODE NUM 201 305 101 101 402 305 201 6 11 2 2 Write the SQL code that will delete the Student table entirely. 14 10 5 Write the SQL code to change the course code to 304 for the person whose student number is 07. Write the SQL code to delete the row of the person named Jamie Lannister, who started on 5 September 2012, whose course code is 101 and project number is 2. Use logical operators to include all of the information given in this problem. Write the SQL code that will change the PROJ_NUM to 14 for all those students who started before 1 January 2016 and whose course code is at least 201. Write the SQL code that will delete all of the data inside a table, but not the table itself.
with it, paste your code in a text file named Student.txt and save it in your
task folder.
Write the SQL code to create a table called Student. The table structure is
summarised in the table below (Note that STU_NUM is the primary key):
STU_NUM
Attribute Name
STU_SNAME
STU_FNAME
STU_INITIAL
STU_STARTDATE
COURSE_CODE
PROJ_NUM
STU STU_S STU_F STU_INITIAL
NUM NAME NAME
01
02
Snow John
E
CHAR(6)
After you have created the table in question 1, write the SQL code to enter
the first two rows of the table as below:
Stark Arya с
VARCHAR(15)
VARCHAR(15)
CHAR(1)
DATE
CHAR(3)
INT(2)
Data Type
STU_STARTDATE COURSE_ PROJ_
CODE
NUM
05-Apr-14
12-Jul-17
201
305
6
11
Assuming all the data in the Student table has been entered as shown
below, write the SQL code that will list all attributes for a COURSE_CODE of
305.
Transcribed Image Text:with it, paste your code in a text file named Student.txt and save it in your task folder. Write the SQL code to create a table called Student. The table structure is summarised in the table below (Note that STU_NUM is the primary key): STU_NUM Attribute Name STU_SNAME STU_FNAME STU_INITIAL STU_STARTDATE COURSE_CODE PROJ_NUM STU STU_S STU_F STU_INITIAL NUM NAME NAME 01 02 Snow John E CHAR(6) After you have created the table in question 1, write the SQL code to enter the first two rows of the table as below: Stark Arya с VARCHAR(15) VARCHAR(15) CHAR(1) DATE CHAR(3) INT(2) Data Type STU_STARTDATE COURSE_ PROJ_ CODE NUM 05-Apr-14 12-Jul-17 201 305 6 11 Assuming all the data in the Student table has been entered as shown below, write the SQL code that will list all attributes for a COURSE_CODE of 305.
Expert Solution
steps

Step by step

Solved in 10 steps with 9 images

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
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning