20bcs7635 - EXP 9
20bcs7635 - EXP 9
20bcs7635 - EXP 9
Experiment: 3.2
Description: The experiment involves using SQL to perform data analysis tasks in the context of
business intelligence. Participants will learn how to write SQL queries to retrieve, filter, aggregate, and
analyze data stored in a database, enabling them to extract actionable insights from large datasets.
Pseudo code/Algorithms/Flowchart/Steps:
1. Connect to the Database:
a. Launch a suitable SQL client or environment (e.g., MySQL Workbench, SQL Server Management
Studio).
b. Connect to the database containing the relevant data for analysis.
4. Join Tables:
a. Write SQL queries to join multiple tables based on common columns.
b. Combine related data from different tables to perform comprehensive analysis.
Implementation:
INSERT INTO CUSTOMERS VALUES (7,'Brij','Mala', 24,'INDIA');
SELECT * FROM CUSTOMERS;
DELETE FROM CUSTOMERS WHERE CUSTOMER_ID = 7;
SELECT customer_id, first_name , age, Country FROM Customers WHERE age BETWEEN 20 and 28;
LEARNING OUTCOME:
1. Develop proficiency in using SQL for data analysis in the context of business intelligence.
2. Understand how to connect to databases and retrieve data using SQL queries.
3. Learn to apply filters, aggregations, and grouping to analyze data effectively.
4. Gain knowledge of joining tables to combine related data for comprehensive analysis.
5. Acquire skills in sorting and ordering data for improved analysis and reporting.