Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education