Refer to the sample table and data below. mysql> SELECT * FROM zip_code; | zip | city | state | | 45001 | NY New York Palo Alto | CA 94020 45010 New Jersey | NJ 33647 Tampa | FL 33620 | Tampa FL 33765 | Clearwater | FL When the following code runs, what will be the result of each SELECT statement? CREATE VIEW local_zip AS SELECT * FROM zip_code WHERE state = 'FL' WITH CHECK OPTION; INSERT INTO local_zip (zip, city, state) VALUES ('94586', 'Danville', 'CA'); SELECT COUNT(*) FROM local_zip; [Select] SELECT COUNT(*) FROM zip_code; [Select]

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter6: Additional Database Objects
Section: Chapter Questions
Problem 6HOA: A new table has been requested to support tracking automated emails sent to customers. Create the...
icon
Concept explainers
Question
Refer to the sample table and data below.
mysql> SELECT * FROM zip_code;
| zip | city
| state |
| 45001
| NY
New York
Palo Alto | CA
94020
45010 New Jersey | NJ
33647 Tampa
| FL
33620 | Tampa
FL
33765 | Clearwater | FL
When the following code runs, what will be the result of each SELECT statement?
CREATE VIEW local_zip AS
SELECT * FROM zip_code
WHERE state = 'FL' WITH CHECK OPTION;
INSERT INTO local_zip (zip, city, state)
VALUES ('94586', 'Danville', 'CA');
SELECT COUNT(*) FROM local_zip; [Select]
SELECT COUNT(*) FROM zip_code; [Select]
Transcribed Image Text:Refer to the sample table and data below. mysql> SELECT * FROM zip_code; | zip | city | state | | 45001 | NY New York Palo Alto | CA 94020 45010 New Jersey | NJ 33647 Tampa | FL 33620 | Tampa FL 33765 | Clearwater | FL When the following code runs, what will be the result of each SELECT statement? CREATE VIEW local_zip AS SELECT * FROM zip_code WHERE state = 'FL' WITH CHECK OPTION; INSERT INTO local_zip (zip, city, state) VALUES ('94586', 'Danville', 'CA'); SELECT COUNT(*) FROM local_zip; [Select] SELECT COUNT(*) FROM zip_code; [Select]
Expert Solution
steps

Step by step

Solved in 3 steps

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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
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