• select count(*) as 'bengal_Customers' from cust_dimen where state='West Bengal' and city='Kolkata'

  • select *from cust_dimen where state in ('Tamilnandu','Karnataka')

  • select *from cust_dimen where Customer_Segment!='SMALL BUSINESS'

  • select Customer_Name from cust_dimen where city like 'k_%'

  • select count(sales) As 'Total Sales Records' from market_fact_full

  • select count(Customer_Name) as 'City Wise Cutomer', city, Customer_Segment from cust_dimen group by city, customer_segment

  • select count(ord_id) as 'loss count' from market_fact_full where profit<0

  • select customer_name from cust_dimen order by customer_name, city desc

-- list most ordered product

  • select prod_id, sum(order_quantity) from market_fact_full group by prod_id order by sum