Update you’re the database created in week5: lab5. Write some MYSQL code to select three different sets of data and display them on the screen. Also, delete two different records from any of the table in your the database and then print the remaining data on the screen. Finally, update one of your table with five more new rows of data and print the result of the table on the screen. Detail prior database below. Create the table StudentInf: CREATE TABLE StudentInf (rollNo INT(4) PRIMARY KEY,first_Name VARCHAR(50) NOT NULL,last_Name VARCHAR(50) NOT NULL,gender VARCHAR(10),course VARCHAR(50)); Inserting data in StudentInf table: INSERT INTO StudentInf VALUES (101, 'TONY', 'ANDREW', 'Male', 'JAVA'); INSERT INTO StudentInf VALUES (102, 'JOHN', 'MARTIS', 'Male', 'PHP'); INSERT INTO StudentInf VALUES (103, 'SWEETIE', 'JOHNSON', 'Female', 'C#'); INSERT INTO StudentInf VALUES (104, 'JIM', 'WATSON', 'Male', 'PYTHON'); INSERT INTO StudentInf VALUES (105, 'BRUCE', 'DOWNEY', 'Male', 'PHP');   Create the table IntructorInf: CREATE TABLE InstructorInf (id INT(4) PRIMARY KEY,first_Name VARCHAR(50) NOT NULL,last_Name VARCHAR(50) NOT NULL,title VARCHAR(50),phone_No VARCHAR(20)); Inserting data in IntructorInf table: INSERT INTO InstructorInf VALUES (10, 'JOHN', 'MARTIS', 'PHP Expert', '263432446325');INSERT INTO InstructorInf VALUES (11, 'SWEETIE', 'JOE', 'C++ Expert', '2627127834');INSERT INTO InstructorInf VALUES (12, 'TONY', 'ANDREW', 'Java Expert', '91822233444');INSERT INTO InstructorInf VALUES (13, 'BRUCE', 'VANDY', 'PHP Expert', '32834787713');INSERT INTO InstructorInf VALUES (14, 'NEIL', 'WARNER', 'C# Experts', '747128578374'); Create the table LikedAndDisliked: CREATE TABLE LikedAndDisliked (id INT(4) PRIMARY KEY,liked INT(4),disliked INT(4),comment VARCHAR(50),rating INT(5)); Inserting data in LikedAndDisliked table: INSERT INTO LikedAndDisliked VALUES (17, 4, 6, 'Good', 10);INSERT INTO LikedAndDisliked VALUES (12, 4, 4, 'Best', 6); INSERT INTO LikedAndDisliked VALUES (13, 8, 2, 'Average', 5);INSERT INTO LikedAndDisliked VALUES (14, 3, 0, 'Worst', 4);INSERT INTO LikedAndDisliked VALUES (15, 6, 2, 'Not so good', 8);

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 2.7CP
icon
Related questions
icon
Concept explainers
Question
100%

Update you’re the database created in week5: lab5. Write some MYSQL code to select three different sets of data and display them on the screen. Also, delete two different records from any of the table in your the database and then print the remaining data on the screen. Finally, update one of your table with five more new rows of data and print the result of the table on the screen. Detail prior database below.

Create the table StudentInf:

CREATE TABLE StudentInf (
rollNo INT(4) PRIMARY KEY,
first_Name VARCHAR(50) NOT NULL,
last_Name VARCHAR(50) NOT NULL,
gender VARCHAR(10),
course VARCHAR(50)
);

Inserting data in StudentInf table:

INSERT INTO StudentInf VALUES (101, 'TONY', 'ANDREW', 'Male', 'JAVA');

INSERT INTO StudentInf VALUES (102, 'JOHN', 'MARTIS', 'Male', 'PHP');

INSERT INTO StudentInf VALUES (103, 'SWEETIE', 'JOHNSON', 'Female', 'C#');

INSERT INTO StudentInf VALUES (104, 'JIM', 'WATSON', 'Male', 'PYTHON');

INSERT INTO StudentInf VALUES (105, 'BRUCE', 'DOWNEY', 'Male', 'PHP');

 

Create the table IntructorInf:

CREATE TABLE InstructorInf (
id INT(4) PRIMARY KEY,
first_Name VARCHAR(50) NOT NULL,
last_Name VARCHAR(50) NOT NULL,
title VARCHAR(50),
phone_No VARCHAR(20)
);

Inserting data in IntructorInf table:

INSERT INTO InstructorInf VALUES (10, 'JOHN', 'MARTIS', 'PHP Expert', '263432446325');
INSERT INTO InstructorInf VALUES (11, 'SWEETIE', 'JOE', 'C++ Expert', '2627127834');
INSERT INTO InstructorInf VALUES (12, 'TONY', 'ANDREW', 'Java Expert', '91822233444');
INSERT INTO InstructorInf VALUES (13, 'BRUCE', 'VANDY', 'PHP Expert', '32834787713');
INSERT INTO InstructorInf VALUES (14, 'NEIL', 'WARNER', 'C# Experts', '747128578374');

Create the table LikedAndDisliked:

CREATE TABLE LikedAndDisliked (
id INT(4) PRIMARY KEY,
liked INT(4),
disliked INT(4),
comment VARCHAR(50),
rating INT(5)
);

Inserting data in LikedAndDisliked table:

INSERT INTO LikedAndDisliked VALUES (17, 4, 6, 'Good', 10);
INSERT INTO LikedAndDisliked VALUES (12, 4, 4, 'Best', 6);

INSERT INTO LikedAndDisliked VALUES (13, 8, 2, 'Average', 5);
INSERT INTO LikedAndDisliked VALUES (14, 3, 0, 'Worst', 4);
INSERT INTO LikedAndDisliked VALUES (15, 6, 2, 'Not so good', 8);

 

 

 

 

 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 3 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
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
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning