The document creates a zomato database and defines four tables within it: goldusers_signup to track user ids and their gold signup dates, users to track all user ids and signup dates, sales to track purchases with user ids, dates and product ids, and product to define the products with ids, names and prices. It populates the tables with sample data and performs select queries to retrieve data from all tables.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
323 views
Zomato SQL Data Analysis
The document creates a zomato database and defines four tables within it: goldusers_signup to track user ids and their gold signup dates, users to track all user ids and signup dates, sales to track purchases with user ids, dates and product ids, and product to define the products with ids, names and prices. It populates the tables with sample data and performs select queries to retrieve data from all tables.