answer
answer
USE World;
-- Select Country names where population > 17.15 crores (171500000) 1.7
SELECT Country_name FROM Country
WHERE Population > 171500000;
2. Create a Database "StoreDB". Create Table "Sales" (sale_id INT, product VARCHAR, quantity
INT, sale_date DATE). Insert at least 10 rows of sales data. Write a query using GROUP BY
sale_date to compute total quantity sold per day. Write a query using GROUP BY product
HAVING SUM(quantity) > 100 to list best-selling products.
Ans:
-- Create Database
CREATE DATABASE StoreDB;
-- Use Database
USE StoreDB;
-- Use Database
USE Inventory;
-- Create Database
USE University;
id INT,
name_of_Department VARCHAR(100),
total_no_of_Students INT
);
UPDATE Department