ashwin15savage / DBMS-mini-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DBMS-mini-project

Installation

1 Install XAMPP or WAMPP

2 Open XAMPP/WAMPP control panel and start apache and my sql

3 Download the project from github

4 Open the Link http://localhost/phpmyadmin (or) http://127.0.0.1/phpmyadmin in any Web Browser on your Computer

5 Click the 'New' button in the left side to create a new database and enter a name(Order_system)

6 Click on the create button and the database is successfully created

7 Click on the import option at the top and browse for orders(1).sql

  1. Click go and the database is successfully imported

  2. Go to queries.sql file and execute the queries in the SQL section

About the Project

In this project we have got the dataset of Salesforce CRM published on Zoho analytics. This dataset contains 13 tables. It mainly focuses on orders of products by its customers. It also contains data regarding leads and opportunity. We as a team have performed various queries and got some insightful data

SPECS:

  1. File named orders.sql should contain the complete script with which you constructed your database (i.e., all CREATE and all INSERT statements).
  2. File named queries.sql should contain the SQL statements for each of the 26 problems
  3. File named output.docs should contain the output of the execution of the script queries.sql.
  4. File named sales.sql contains all plsql queries

Run these queries

1.Count of Website for each Account Owner

2.Write a query to show account name and account holder whose is involved in a task and not in any event

  1. Write a query to display highest Case origin

  2. What percentage of Case Status is On Hold

  3. Write a query to display Id,contact owner and count of mobile for each leadsource

  4. Write a query to display industry and company of only those who got converted from contacts to leads with their converter opportunity ID.

  5. write a query to display the lead source which has the highest number of conversions.

  6. write a query to display opportunity name and expected revenue having 100% probability of conversion

  7. Write a query to display opportunity name and amount of those people whose amount is greater than the average amount of revenue

  8. Write a query to display order product id,order name,account number of orders which is delivered and total amount is more than 5000 descending order

  9. Write a query to display order owner and order name of that order whose price id=30000000 and has 7 quantities

  10. Write a query to display order Id and name of the order who ordered Differential Price Book - Business2

  11. Write a query to display Id and name of the product which have been ordered more than 10

  12. write a query to display the product name and owner who owns more than 5 items

  13. write a query to display the product owner,name,manufacturer and cost which is greater than average of the cost of all products in descending order

  14. Write a query to display order Id and name of the order who ordered Flat price book- Business 1

  15. Write a query to display details of 5 lead id, name and their company who invloved in a task and their opportunity amount is more than 20000

  16. Write a query to display details of order Id,name and amount of those whose order date is active and ordered before they bought a book.

  17. Write a query to display details of Active,Cost,Productname,Productowner whose cost is greater than 500 and sort them in ascending order.

  18. Write a query to display details of distinct Fullname,Leadsourcce,Leadowner where the leadsource is cold call and they are in the IT industry.

  19. Write a query to display details of Accountowner,Accountname,Taskinvolved in whose name ends with "ew" using right joins.

  20. Write a query to display details of Orderowner,Quantity,nettotal and decrement 15 percent of nettotal for those who ordered 10 or more items and label it as totalprice

  21. Write a query to didplay details of account name,account owner ,account type,subject,status using JOIN

  22. Write a query to didplay details of account name,account owner ,account type,subject,status using RIGHT JOIN

  23. Write a query to didplay details of account name,account owner ,account type,subject,status using INNER JOIN

  24. Write a query to didplay details of account name,account owner ,account type,subject,status using LEFT

Team

  1. Ashwin
  2. Hari
  3. Maran S
  4. Naga sai
  5. Praveen A
  6. Sanjay
  7. Athish V P

About