In the database built by using city.csv, find and post the total population of Tampa and Miami.

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
Question

Use sqlite 3 to answer following, must include the SQL SELECT statement together with its output data

  1. In the database built by using city.csv, find and post the total population of Tampa and Miami.
  2. In the database built by using city.csv, find and post the total population of the biggest five cities.

given sample city.csv data like

C:\sqlite\db>sqlite3
SQLite version 3. 44.0 2023-11-01 11:23:50 (utf8 1/0)
Enter "help" for usage hints.
Connected to a transient in-memory database.
Use . open FILENAME" to reopen on a persistent database.
sqlite.mode csv
sqlite>.import
sqlite.header ON
sqlite.mode table
sqlite> Select * from city;
Abilene
Akron
Albany
name
Albuquerque
Alexandria
Allentown
Amarillo
Anaheim
Anchorage
Ann Arbor
Arden-Arcade
Arlington
Arlington
Arvada
Aurora
Aurora
Austin
Athens-Clarke County
Atlanta
Augusta-Richmond County
Bakersfield
Baltimore
Baton Rouge
Beaumont
Bellevue
Berkeley
Billings
Birmingham
Boise City
Boston
Boulder
city. csv city
Bridgeport
Brockton
Brownsville
Buffalo
Burbank
Cambridge
Cape Coral
Carrollton
Carson
population |
115930
217074
93994
448607
128283
106632
173627
328014
260283
114024
92040
332969
174838
102153
101489
416474
199775
276393
142990
656562
247057
651154
227818
113866
109569
102743
92988
242820
185787
589141
91238
139529
93653
139722
292648
100316
101355
102286
109576
89089
Transcribed Image Text:C:\sqlite\db>sqlite3 SQLite version 3. 44.0 2023-11-01 11:23:50 (utf8 1/0) Enter "help" for usage hints. Connected to a transient in-memory database. Use . open FILENAME" to reopen on a persistent database. sqlite.mode csv sqlite>.import sqlite.header ON sqlite.mode table sqlite> Select * from city; Abilene Akron Albany name Albuquerque Alexandria Allentown Amarillo Anaheim Anchorage Ann Arbor Arden-Arcade Arlington Arlington Arvada Aurora Aurora Austin Athens-Clarke County Atlanta Augusta-Richmond County Bakersfield Baltimore Baton Rouge Beaumont Bellevue Berkeley Billings Birmingham Boise City Boston Boulder city. csv city Bridgeport Brockton Brownsville Buffalo Burbank Cambridge Cape Coral Carrollton Carson population | 115930 217074 93994 448607 128283 106632 173627 328014 260283 114024 92040 332969 174838 102153 101489 416474 199775 276393 142990 656562 247057 651154 227818 113866 109569 102743 92988 242820 185787 589141 91238 139529 93653 139722 292648 100316 101355 102286 109576 89089
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Intermediate SQL concepts
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