Write the following insert statements. 3. Insert a guest into the table, Guest, using the following SQL (go to the SQL tab): INSERT into Guest (guestNo, lastName, firstName, phoneNo, email) VALUES (1, 'Washington', 'George', '999-999-9999', 'g-washington@neiu.edu'); If a "1 row inserted" message is displayed, you successfully populated the table. 4. If you are inserting all columns anyway, you can save time by inserting without specifying the column names. Try this: INSERT into Guest VALUES (2, mith', 'Jane', '555-555-5555', 'jsn om'); 5. Insert at least 3 additional rows into the Guest table. Choose the values and complete all attributes.

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
please follow the steps
Write the following insert statements.
3. Insert a guest into the table, Guest, using the following SQL (go to the SQL tab):
INSERT into Guest (guestNo, lastName, firstName, phoneNo, email) VALUES (1,
'Washington', 'George', '999-999-9999', 'g-washington@neiu.edu');
If a "1 row inserted" message is displayed, you successfully populated the table.
4. If you are inserting all columns anyway, you can save time by inserting without specifying
the column names. Try this:
INSERT into Guest VALUES (2, 'Smith', 'Jane', '555-555-5555', 'jsmith@gmail.com');
5. Insert at least 3 additional rows into the Guest table. Choose the values and complete all
attributes.
6. Insert at least 5 rows into the table, Booking, based on the below criteria.
You can charge $500 a month rent to each of them.
Hint: Format for date is '2019-07-01'
• Guest 1 would like to use your space from June 1, 2023 - June 30, 2023 and
August 1, 2023-August 31, 2023.
. Guest 2 would like to come July 1, 2023- July 31, 2023 and July 1, 2024-July 31,
2024.
. Guest 3 would like to come September 1, 2023 September 30, 2023.
Hint: Try inserting one a time until you get the hang of insert. Then, you can insert
multiple rows at one time like in this below example where the table has 3 columns: (see
lecture notes for details on inserting)
Transcribed Image Text:Write the following insert statements. 3. Insert a guest into the table, Guest, using the following SQL (go to the SQL tab): INSERT into Guest (guestNo, lastName, firstName, phoneNo, email) VALUES (1, 'Washington', 'George', '999-999-9999', 'g-washington@neiu.edu'); If a "1 row inserted" message is displayed, you successfully populated the table. 4. If you are inserting all columns anyway, you can save time by inserting without specifying the column names. Try this: INSERT into Guest VALUES (2, 'Smith', 'Jane', '555-555-5555', 'jsmith@gmail.com'); 5. Insert at least 3 additional rows into the Guest table. Choose the values and complete all attributes. 6. Insert at least 5 rows into the table, Booking, based on the below criteria. You can charge $500 a month rent to each of them. Hint: Format for date is '2019-07-01' • Guest 1 would like to use your space from June 1, 2023 - June 30, 2023 and August 1, 2023-August 31, 2023. . Guest 2 would like to come July 1, 2023- July 31, 2023 and July 1, 2024-July 31, 2024. . Guest 3 would like to come September 1, 2023 September 30, 2023. Hint: Try inserting one a time until you get the hang of insert. Then, you can insert multiple rows at one time like in this below example where the table has 3 columns: (see lecture notes for details on inserting)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 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