GIVA SQL Assignment: Q) Create A Sales Table With The Following Fields
GIVA SQL Assignment: Q) Create A Sales Table With The Following Fields
Phone
Date of purchase
Total price
Discount
Date of purchase
Ans:
`Customer_Name` VARCHAR(255),
`Price` DOUBLE(255),
`Discount` DOUBLE(255),
` Purchase_date ` DATE(20),
`SKU` VARCHAR(255),
);
SAMPLE DATA:
From Sales
From
select
from Sales
group by category
from Sales
group by Customer_Name
4. List of all customers who have purchased items worth more
than Rs. X (here X should be a
variable)
Let us take the value of X = 1000
From Sales