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);

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education