SQL Questions
SQL Questions
Questions:
1. Write a query to display OrderId, product list, and the merchant name.
2. Write a query to display the username startswith 'Ni' and endswith 'Vi' and contains 'iv'.
3. Write a query to display the rolename, username, and user order details.
4. Write a query to find the difference between the user's first order and the user's last order and also
the user's first order and the user's second order and also when the user placed the last order date.
6. Write a query to display how many order's user placed totally in one month.
7. Write a query to diplay only the order's total value less than 500.
8. Create a Stored Procedure display all the merchant's total order value(Output - Merchant Name, Total
Order Value).