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]

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter5: Working With Excel Tables, Pivottables, And Pivotcharts
Section: Chapter Questions
Problem 20RA
icon
Related questions
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
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
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr