*IN SQL* Create the following tables using SQL Commands State (StateName, StateAbb, Region, Size) City (CityID, CityName

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

*IN SQL* Create the following tables using SQL Commands State (StateName, StateAbb, Region, Size) City (CityID, CityName

Post by answerhappygod »

*IN SQL*
Create the following tables using SQL Commands
State (StateName, StateAbb, Region, Size)
City (CityID, CityName, Population,
CrimeRate)
Add the appropriate foreign key to the MANY
table and enforce referential integrity.
Once you are done creating the two tables with the appropriate
relationship, Write SQL commands to:
a. Show the state name and count how many cities in each state
with ‘High’ crime rate.
b. After grouping all the states with the sum of the population
for their cities, only show these states with the population >=
4,000,000.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply