HHyperion Dev STU_ STU_SNAME STU_FNAME STU_INITIAL STU_START NUM DATE 01 02 03 04 05 06 07 ● ● Snow Stark Lannister Lannister Greyjoy Tyrell Baratheon Jon Arya Jamie Cercei Theon Margaery Tommen E C с J I Y R 05-Apr-14 12-Jul-17 05-Sep-12 05-Sep-12 9-Dec-15 12-Jul-17 Review work 13-Jun-19 COURSE CODE 201 305 101 Completed the task(s)? Ask an expert to review your work! 101 402 305 201 PROJ_ NUM 6 Write the SQL code that will delete the Student table entirely. 11 2 2 14 Write the SQL code to change the course code to 304 for the person whose student number is 07. 10 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. 5 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. Copyright © 2021 Hyperion Dev. All rights reserved. Compulsory Task 1 Answer the following questions: HHyperionDev ● Go to the w3schools website's SQL browser IDE. This is where you can write and test your SQL code using their databases. Once you are happy 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 After you have created the table in question 1, write the SQL code to enter the first two rows of the table as below: E Stark Arya с CHAR(6) VARCHAR(15) VARCHAR(15) CHAR(1) DATE CHAR(3) INT(2) Data Type STU_STARTDATE | COURSE_ CODE 05-Apr-14 12-Jul-17 201 305 PROJ_ NUM 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. Copyright © 2021 Hyperion Dev. All rights reserved.
HHyperion Dev STU_ STU_SNAME STU_FNAME STU_INITIAL STU_START NUM DATE 01 02 03 04 05 06 07 ● ● Snow Stark Lannister Lannister Greyjoy Tyrell Baratheon Jon Arya Jamie Cercei Theon Margaery Tommen E C с J I Y R 05-Apr-14 12-Jul-17 05-Sep-12 05-Sep-12 9-Dec-15 12-Jul-17 Review work 13-Jun-19 COURSE CODE 201 305 101 Completed the task(s)? Ask an expert to review your work! 101 402 305 201 PROJ_ NUM 6 Write the SQL code that will delete the Student table entirely. 11 2 2 14 Write the SQL code to change the course code to 304 for the person whose student number is 07. 10 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. 5 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. Copyright © 2021 Hyperion Dev. All rights reserved. Compulsory Task 1 Answer the following questions: HHyperionDev ● Go to the w3schools website's SQL browser IDE. This is where you can write and test your SQL code using their databases. Once you are happy 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 After you have created the table in question 1, write the SQL code to enter the first two rows of the table as below: E Stark Arya с CHAR(6) VARCHAR(15) VARCHAR(15) CHAR(1) DATE CHAR(3) INT(2) Data Type STU_STARTDATE | COURSE_ CODE 05-Apr-14 12-Jul-17 201 305 PROJ_ NUM 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. Copyright © 2021 Hyperion Dev. All rights reserved.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY