Question: Write the following queries in SQL uisng the Yelp_db schema The Yelp_db schema can be found at the following link: https://www.yelp.com/dataset/documentation/main 4.1 Find business names
Write the following queries in SQL uisng the Yelp_db schema
The Yelp_db schema can be found at the following link:
https://www.yelp.com/dataset/documentation/main
4.1 Find business names whose zip code begins with '1' and ends with '1'. You can assume that zip code consists of five digits. The result should be following.

4.2 Find the total number of checkin per business, which is located in 'NY' state. Sort by the total checin number. Note that the total number of checkin must be ZERO if there is no checkin (Hint: check the mysql function 'IFNULL'). The result should be the following:

4.3 Find the total number of restaurants per (city and state). Sort the numbers. It is not necessary to display all results. The results should be the following:

postal_code name Ulta Beautv Nail Secrets Nine Stories 15241 15101 15201 Industrv Public House 15201 15201 15201 15221 15101 15201 Artisan Pizza Comoanv 15241 15201 NTB-National Tire &. 15101 15201 15201 Canterburv Place Healthv Ride Pah New Luckv Alpine Pools 31st Street Pub Paint Monkev Sent business 78
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
