Data Science

Data Science is the process of collecting, studying, and understanding data to find useful information and make better decisions.

Example

A school can study students' marks and attendance to find out which students need more help.

Easy meaning:

Data Science = Collect data → Study data → Find useful information → Make decisions.

Importance of Data in Decision Making

Data is important in decision making because it provides useful information and facts that help people make better decisions.

Importance of Data

  • Better Decisions
  • Identify Problems
  • Find Trends and Patterns
  • Improve Performance
  • Reduce Risk

Real-Life Applications of Data Science

1. Social Media

Data science is used to understand user interests and recommend content.

Example: YouTube recommends videos based on videos you have watched.

2. Online Shopping

Data science is used to recommend products based on user activity.

Example: An online store recommends products similar to the ones you searched for.

3. Healthcare

Data science is used to analyze patient information and help detect diseases.

Example: Doctors can analyze patient data to identify possible health problems.

4. Transport

Data science is used to analyze traffic and find better routes.

Example: Google Maps analyzes traffic data to suggest a faster route.

5. Education

Data science is used to analyze students' performance and identify areas for improvement.

Example: A school analyzes students' marks to identify students who need extra help.

Data Science Life Cycle

The Data Science Life Cycle is a series of steps used to collect, clean, analyze, understand, and present data to solve a problem.

1. Understanding the Problem

The first step is to clearly understand what problem needs to be solved.

Identifying and Defining a Problem

Identify the problem and describe it clearly.

Example: A school wants to find out why students' marks are decreasing.

Setting Clear Objectives

Decide what you want to achieve from the data.

Example: Find the main reasons for low marks and identify students who need extra help.

2. Collecting Data

Data collection means gathering the required data from different sources.

Methods of Collecting Data

  • Surveys: Collect information directly from people using questions.
    Example: Asking students about their study habits.
  • APIs and Online Sources: Collect data from websites or online services through APIs (Application Programming Interfaces). An API allows a program to request specific data from an online service and receive it in a usable format.
    Example: A weather application can use a weather API to request information such as temperature, humidity, and rainfall from an online weather service. The application then displays this data to the user.
  • IoT and Sensor Data: Collect data from connected devices and sensors.
    Example: A temperature sensor records room temperature.
  • Web Scraping: Collect information from webpages using software or scripts.
    Example: Collecting product prices from an online store.

Choosing the Right Data Source

Not all data is useful. We should choose reliable, accurate, and relevant data sources. When selecting a data source, ask:

  1. Is the data from a trusted source?
  2. Is the data recent or outdated?
  3. Does the data match the problem I want to solve?

Example from book: If we want to know the favorite snacks of students in 2025, we should avoid using a survey conducted in 2020 because students' preferences may have changed.

Other simple and better examples:

  • Weather: Take data from a trusted weather service, not an unknown or unreliable website.
  • Education: Take data from official school records, not random online sources.
  • Business: Take data from company sales records, not unverified data from social media.

Assessing Data Quality and Bias

Data quality means checking whether the data is:

  1. Complete: No important values are missing.
  2. Correct: The data does not contain mistakes.
  3. Relevant: The data matches the problem we are trying to solve.

Bias means the data does not represent the full picture and may unfairly favor one group or viewpoint.

Example: If we only survey boys about their favorite sports, we will miss the opinions of girls. The results may therefore be biased toward boys.

Remember the following to avoid bias:

  • Ask different types of people.
  • Keep questions neutral and not leading.
  • Review the data for unusual or strange patterns.

3. Cleaning and Validating Data

Raw Data

Raw data is the original data collected before it is cleaned or processed.

Example: A student marks file containing missing marks or incorrect entries.

Common Data Errors

  • Missing Data: Some values are not available.
  • Duplicate Data: The same record appears more than once.
  • Outliers: Values that are unusually high or low compared with other values.

Missing Data

Some values are not available or are left empty.

Student Marks
Ali 85
Ahmed —
Sara 92
Hamza 78

Solution for Missing Data

If a value is missing, we can use mean, median, or mode to estimate a suitable value.

Student Marks
Ali 80
Ahmed —
Sara 90
Hamza 70

For example, using the mean (average):

Mean = (80 + 90 + 70) ÷ 3 = 80

So, we can fill Ahmed's missing marks with 80.

Note: Mean, median, and mode should only be used when they are appropriate for the data.

Duplicate Data

The same record appears more than once.

Student Marks
Ali 85
Sara 92
Ali 85
Hamza 78

Solution: Identify and remove the duplicate record.

Student Marks
Ali 85
Sara 92
Hamza 78

Outliers

A value is unusually high or low compared with other values.

Student Marks
Ali 82
Sara 88
Ahmed 5
Hamza 85

Solution: Check the original source to see if the value is correct. If it is a mistake, correct or remove it.

Student Marks
Ali 82
Sara 88
Ahmed 85
Hamza 85
Note: An outlier is not always an error. It should be checked before changing or removing it.

Data Validation Techniques

Data validation means checking whether the collected data is correct, valid, and follows the required rules.

  • Follows correct rules: Only allowed values are entered.
    Example: If the available sports are Cricket, Football, and Hockey, "Tennis" should not be entered.
  • Has the right type of values: The correct type of data is entered.
    Example: Age should contain numbers, not words.
  • Is not fake or silly: The data should be realistic and make sense.
    Example: A student's marks cannot be 150 out of 100.

Data Cleaning

Data cleaning is the process of finding and correcting or removing incorrect, incomplete, duplicate, or unnecessary data.

Data Cleaning Methods

  • Fill or remove missing values.
  • Remove duplicate records.
  • Correct incorrect values.
  • Handle unusual or incorrect outliers.
  • Use a consistent format.

Why Cleaning Data Matters

Clean data helps us get accurate analysis and reliable results by removing errors, missing values, and duplicate records.

Example: If a school's student records contain incorrect marks, the analysis of student performance may give wrong results.

4. Analyzing Data

What Does It Mean to Analyze Data?

Data analysis means studying data to find useful information, patterns, relationships, and trends.

Example: Comparing students' attendance and marks to see whether attendance affects performance.

Simple Tools for Data Analysis

Data can be analyzed using simple tools such as:

  • Google Sheets
  • Microsoft Excel
  • Manual calculations and tables in a notebook

5. Interpreting Data

Data interpretation means understanding what the results of data analysis actually mean.

Example: After analyzing attendance and marks, we may find that students with higher attendance generally have better marks.

6. Visualizing and Communicating Results

After analyzing and interpreting data, the results are presented in a way that is easy to understand.

Importance of Data Visualization

Data visualization means presenting data using charts, graphs, and other visual forms.

It helps to:

  • Understand data easily.
  • Identify patterns and trends.
  • Compare information.
  • Communicate results clearly.

Tools for Visualization

  • Google Sheets
  • Microsoft Excel

Examples of Data Visualization

  1. Bar Chart: Compare values between different categories.
  2. Line Chart: Show changes or trends over time.
  3. Pie Chart: Show parts or percentages of a whole.
  4. Column Chart: Compare values using vertical bars.
  5. Scatter Plot: Show the relationship between two sets of values.
line-bar-pie-chart

Databases and Storing Data

What is a Database?

A database is an organized collection of data that can be stored, managed, and accessed easily.

Example: A school's database can store students' names, classes, marks, and attendance.

Table

A table stores data in rows and columns.

Example:

ID Name Class
1 Ali 9
2 Ahmed 9

Record

A record is a complete row of data about one item or person.

Example: 1 | Ali | 9 is one student record.

Field

A field is a single type of information stored in a column.

Example: Name, Class, and ID are fields.

Note: In a database table, a column is also called a field.

DBMS

DBMS (Database Management System) is software used to create, store, manage, and access data in databases.

Examples: MySQL, Microsoft Access, and PostgreSQL.

What Can We Do in a DBMS?

A DBMS allows us to perform different operations on data, such as:

  1. Create databases and tables.
  2. Store data in an organized way.
  3. Insert new records.
  4. Update existing data.
  5. Delete unwanted data.
  6. Search and retrieve required data.
  7. Sort and filter data.
  8. Protect data using security and access controls.
  9. Create backups to prevent data loss.

SQL

SQL (Structured Query Language) is a language used to communicate with and manage databases using commands. These commands allow us to create databases and tables, insert, retrieve, update, and delete data.

Example: We can use SQL commands to add a student's record, search for a student's marks, update their information, or delete a record.

Students Table

Suppose we have the following Students table:

ID Name Class
1 Ahmed 9
2 Sara 9
3 Hamza 10

SELECT

The SELECT command is used to retrieve data from a database.

SELECT * FROM Students;

This command retrieves all fields/columns and all records from the Students table.

ID Name Class
1 Ahmed 9
2 Sara 9
3 Hamza 10

Here, * means all fields/columns.

INSERT

The INSERT command is used to add new data to a table.

INSERT INTO Students (Name, Class)
VALUES ('Ali', 9);

Before using the INSERT command, the table contains:

ID Name Class
1 Ahmed 9
2 Sara 9
3 Hamza 10

After running the INSERT command, a new record for Ali is added:

ID Name Class
1 Ahmed 9
2 Sara 9
3 Hamza 10
4 Ali 9

Easy to Remember

Command Action
SELECT Get data
INSERT Add data
* All fields/columns

Exercise – Short Questions

1. What is the importance of understanding a problem before collecting data?

Understanding the problem helps us know what data to collect and ensures that the data is relevant and useful.

Example: If we want to find students' favorite sports, we should collect data about their sports preferences.

2. Name any two methods of collecting data and give one example of each.

See Topic Methods of Collecting Data.

3. What do we mean by "cleaning" data?

Data cleaning means finding and correcting or removing errors, such as missing, duplicate, or incorrect data.

Example: Removing a student's duplicate record from a student database.

4. Why is it important to validate data before using it?

Data validation ensures that the data follows the correct rules, has the right type of values, and is realistic.

Example: A student's marks should be a number between 0 and 100.

5. What is the purpose of visualizing data using charts?

Data visualization helps us understand, compare, and identify patterns or trends in data more easily.

Example: A bar chart can quickly show which student has the highest marks.

6. How does bias in data affect results?

Bias can make the results unfair or inaccurate because the data may not represent the full picture.

Example: If we ask only boys about their favorite sports, the results may not represent the opinions of girls.

7. Write two steps you will follow to clean a messy survey.

  1. Find and handle missing or incorrect values.
    Example: Find a missing student's age from the original survey.
  2. Find and remove duplicate records.
    Example: Remove a student's record if it appears twice.

8. Name any two tools used for creating charts.

Two tools used for creating charts are Microsoft Excel and Google Sheets.

Example: We can use Excel to create a bar chart of students' marks.

Note: Dear Students, please visit the website and read the content below if you want to learn how to implement the Data Science Life Cycle in an easy way.

Example: Data Science Life Cycle – Calculating Students' Marks

Suppose a teacher wants to calculate and analyze the average marks of students in a class. We can use the Data Science Life Cycle to solve this problem.

1. Understanding the Problem

First, we clearly understand what we want to find out. Here, our goal is to calculate the average marks of students and understand their performance.

Example: We want to find the average marks of 5 students in a Computer Science test.

2. Collecting Data

We collect the required data, such as the names of students and their marks.

Student Marks
Ali 80
Ahmed 75
Sara 90
Hamza 65
Ayesha 85

Example: The teacher can collect the marks from the students' test papers or school records.

3. Cleaning Data

We check the collected data for missing, duplicate, or incorrect values and correct them.

Example: If Ahmed's marks are entered as 750 instead of 75, we check the original test paper and correct the value.

4. Validating Data

We check whether the data follows the required rules and has the correct type and reasonable values.

Example: Since the test is out of 100 marks, every student's marks should be between 0 and 100.

5. Analyzing Data

We perform calculations on the cleaned and validated data to get useful information.

To calculate the average:

Average = (80 + 75 + 90 + 65 + 85) ÷ 5

Average = 395 ÷ 5 = 79

Example: The average marks of the 5 students are 79 marks.

6. Visualizing Data

We can represent the data using charts to make it easier to understand and compare.

Example: We can create a bar chart showing the marks of Ali, Ahmed, Sara, Hamza, and Ayesha.

Student Marks
Ali 80
Ahmed 75
Sara 90
Hamza 65
Ayesha 85

7. Communicating Results

Finally, we present the results to others in a simple and understandable way.

Example: The teacher can report that the class average is 79 marks and show the bar chart to compare the students' performance.

Complete Example at a Glance

Life Cycle Step What We Do Example
1. Understanding the Problem Define what we want to find. Find the average marks of students.
2. Collecting Data Gather the required data. Collect students' names and marks.
3. Cleaning Data Find and correct errors. Correct 750 to 75 if it was entered incorrectly.
4. Validating Data Check whether data follows the rules. Marks must be between 0 and 100.
5. Analyzing Data Perform calculations. Calculate the average = 79 marks.
6. Visualizing Data Represent data using charts. Create a bar chart of students' marks.
7. Communicating Results Present the findings. Report the class average and show the chart.

Multiple Choice Questions (MCQs) on Data Science

1. What is Data Science?
a. The process of collecting, studying, and understanding data
b. The process of creating computer hardware
c. The process of designing websites
d. The process of writing only Python programs
Answer: a. The process of collecting, studying, and understanding data
2. What is one main purpose of Data Science?
a. To increase computer storage
b. To find useful information and make better decisions
c. To create operating systems
d. To repair computer hardware
Answer: b. To find useful information and make better decisions
3. Which of the following is an example of using Data Science in a school?
a. Installing a printer
b. Designing a school logo
c. Studying students' marks and attendance
d. Replacing a computer keyboard
Answer: c. Studying students' marks and attendance
4. Which of the following is an importance of data in decision making?
a. Increasing screen size
b. Installing software
c. Creating passwords
d. Identifying problems
Answer: d. Identifying problems
5. Which application uses Data Science to recommend videos?
a. YouTube
b. Calculator
c. Notepad
d. Paint
Answer: a. YouTube
6. How is Data Science used in online shopping?
a. To repair shopping websites
b. To recommend products based on user activity
c. To increase monitor brightness
d. To install operating systems
Answer: b. To recommend products based on user activity
7. How can Data Science be used in transport?
a. By designing car colors
b. By repairing engines
c. By analyzing traffic and finding better routes
d. By increasing fuel capacity
Answer: c. By analyzing traffic and finding better routes
8. What is the Data Science Life Cycle?
a. A method for installing software
b. A process for designing computer networks
c. A process for creating databases only
d. A series of steps used to collect, clean, analyze, understand, and present data
Answer: d. A series of steps used to collect, clean, analyze, understand, and present data
9. What is the first step of the Data Science Life Cycle?
a. Understanding the Problem
b. Data Visualization
c. Data Cleaning
d. Data Analysis
Answer: a. Understanding the Problem
10. What is the purpose of identifying and defining a problem?
a. To create a database
b. To describe the problem clearly
c. To draw a pie chart
d. To remove duplicate records
Answer: b. To describe the problem clearly
11. What is the purpose of setting clear objectives?
a. To delete old data
b. To create computer hardware
c. To decide what you want to achieve from the data
d. To create a website
Answer: c. To decide what you want to achieve from the data
12. What does data collection mean?
a. Deleting unnecessary data
b. Drawing charts
c. Testing computer programs
d. Gathering the required data from different sources
Answer: d. Gathering the required data from different sources
13. Which method collects information directly from people using questions?
a. Surveys
b. Web scraping
c. Sensor data
d. Database queries
Answer: a. Surveys
14. What does API stand for?
a. Application Program Internet
b. Application Programming Interface
c. Advanced Programming Information
d. Automated Program Interface
Answer: b. Application Programming Interface
15. Which type of data can be collected from a temperature sensor?
a. Student names
b. Product descriptions
c. Room temperature
d. Website passwords
Answer: c. Room temperature
16. What is web scraping?
a. Cleaning a database
b. Creating a pie chart
c. Sending emails
d. Collecting information from webpages using software or scripts
Answer: d. Collecting information from webpages using software or scripts
17. Which of the following is important when choosing a data source?
a. The source should be reliable, accurate, and relevant
b. The source should always be the newest website
c. The source should contain only images
d. The source should have a colorful design
Answer: a. The source should be reliable, accurate, and relevant
18. What does data quality refer to?
a. The size of a database
b. Checking whether data is complete, correct, and relevant
c. The number of computers used
d. The color of a chart
Answer: b. Checking whether data is complete, correct, and relevant
19. What is data bias?
a. Data stored in a table
b. Data that contains only numbers
c. Data that does not represent the full picture and may favor one group or viewpoint
d. Data that is stored in a database
Answer: c. Data that does not represent the full picture and may favor one group or viewpoint
20. Which action can help avoid bias when collecting data?
a. Asking only one type of person
b. Using leading questions
c. Ignoring unusual patterns
d. Asking different types of people
Answer: d. Asking different types of people
21. What is raw data?
a. Original data collected before it is cleaned or processed
b. Data presented in a pie chart
c. Data after all errors have been removed
d. Data stored only in a database
Answer: a. Original data collected before it is cleaned or processed
22. Which of the following is a common data error?
a. Visualization
b. Missing data
c. Interpretation
d. Communication
Answer: b. Missing data
23. What is duplicate data?
a. Data with missing values
b. Data with unusual values
c. The same record appearing more than once
d. Data collected from sensors
Answer: c. The same record appearing more than once
24. What is an outlier?
a. A missing value
b. A duplicate record
c. A database field
d. A value that is unusually high or low compared with other values
Answer: d. A value that is unusually high or low compared with other values
25. Which value can be used to estimate a missing value?
a. Mean
b. ID
c. Field name
d. Table name
Answer: a. Mean
26. What should be done before changing or removing an outlier?
a. Always delete it immediately
b. Check the original source to see if the value is correct
c. Replace it with zero
d. Convert it into text
Answer: b. Check the original source to see if the value is correct
27. What is data validation?
a. Creating graphs from data
b. Deleting every unusual value
c. Checking whether data is correct, valid, and follows required rules
d. Storing data in rows
Answer: c. Checking whether data is correct, valid, and follows required rules
28. Which is an example of checking the correct data type?
a. Entering a student's name in the Age field
b. Entering Tennis when only Cricket, Football, and Hockey are allowed
c. Entering 150 as marks out of 100
d. Entering a number in the Age field
Answer: d. Entering a number in the Age field
29. What is data cleaning?
a. Finding and correcting or removing incorrect, incomplete, duplicate, or unnecessary data
b. Creating new computer hardware
c. Drawing charts only
d. Collecting data from surveys only
Answer: a. Finding and correcting or removing incorrect, incomplete, duplicate, or unnecessary data
30. Why is data cleaning important?
a. It increases screen resolution
b. It helps produce accurate analysis and reliable results
c. It creates computer networks
d. It increases the size of tables
Answer: b. It helps produce accurate analysis and reliable results
31. What does data analysis mean?
a. Storing data in rows
b. Deleting all data
c. Studying data to find useful information, patterns, relationships, and trends
d. Creating passwords
Answer: c. Studying data to find useful information, patterns, relationships, and trends
32. Which tool can be used for simple data analysis?
a. Paint
b. Calculator only
c. Web browser only
d. Microsoft Excel
Answer: d. Microsoft Excel
33. What is data interpretation?
a. Understanding what the results of data analysis actually mean
b. Collecting data from sensors
c. Removing duplicate records
d. Creating database tables
Answer: a. Understanding what the results of data analysis actually mean
34. What is data visualization?
a. Storing data in a database
b. Presenting data using charts, graphs, and other visual forms
c. Removing missing values
d. Writing SQL commands
Answer: b. Presenting data using charts, graphs, and other visual forms
35. Which chart is commonly used to show changes or trends over time?
a. Pie Chart
b. Bar Chart
c. Line Chart
d. Scatter Plot
Answer: c. Line Chart
36. What is a database?
a. A programming language
b. A type of chart
c. A computer network
d. An organized collection of data that can be stored, managed, and accessed easily
Answer: d. An organized collection of data that can be stored, managed, and accessed easily
37. What is a record in a database table?
a. A complete row of data about one item or person
b. A column heading only
c. A database software
d. A SQL command
Answer: a. A complete row of data about one item or person
38. What is a field in a database table?
a. A complete database
b. A single type of information stored in a column
c. A complete row
d. A SQL query
Answer: b. A single type of information stored in a column
39. Which SQL command is used to retrieve data from a database?
a. INSERT
b. DELETE
c. SELECT
d. UPDATE
Answer: c. SELECT
40. Which SQL command is used to add new data to a table?
a. SELECT
b. UPDATE
c. DELETE
d. INSERT
Answer: d. INSERT

Test Yourself: Interactive MCQs (Data Science)

Multiple Choice Questions (MCQs) on Data Science, Databases & SQL

1. What is Data Science?
2. What is one of the main purposes of Data Science?
3. A school studies students' marks and attendance to find students who need help. This is an example of:
4. Which is an important benefit of using data in decision making?
5. How does YouTube use data?
6. How is Data Science used in online shopping?
7. How can Data Science be used in transportation?
8. What is the Data Science Life Cycle?
9. What is the first step of the Data Science Life Cycle?
10. What is done when understanding the problem?
11. Why should clear objectives be set when understanding a problem?
12. What does collecting data mean?
13. Which is a method of collecting data?
14. What does API stand for?
15. Which is an example of IoT and sensor data?
16. What is web scraping?
17. What should be considered when choosing a data source?
18. Which of the following is a characteristic of good-quality data?
19. What is data bias?
20. Which action can help avoid bias when collecting data?
21. What is raw data?
22. Which is a common error found in data?
23. What is duplicate data?
24. What is an outlier?
25. Which method can be used to fill a missing numerical value when appropriate?
26. What should be done before changing or removing an outlier?
27. What is data validation?
28. Which is an example of checking the correct data type?
29. What is data cleaning?
30. Why is data cleaning important?
31. What is the purpose of analyzing data?
32. Which tool can be used for simple data analysis?
33. What is data interpretation?
34. What is data visualization?
35. Which chart is commonly used to show changes or trends over time?
36. What is a database?
37. What is a record in a database?
38. What is a field in a database?
39. Which SQL command is used to retrieve data from a table?
40. Which SQL command is used to add new data to a table?

FAQs

Data Science, Databases & SQL FAQs

Data Science is the process of collecting, studying, and understanding data to find useful information and make better decisions.

Data helps make better decisions, identify problems, find trends, improve performance, and reduce risks.

Data Science is used in social media, online shopping, healthcare, transportation, and education. For example, Google Maps analyzes traffic data to suggest faster routes.

The Data Science Life Cycle is a series of steps used to collect, clean, analyze, understand, and present data to solve a problem.

The first step is understanding the problem. It involves identifying and defining the problem and setting clear objectives.

Common methods include surveys, APIs and online sources, IoT and sensor data, and web scraping.

API stands for Application Programming Interfaces. It allows a program to request specific data from a service and receive it in a usable format.

Web scraping is the process of collecting information from webpages using software or scripts. For example, a program can collect product prices from different webpages.

Data quality refers to how complete, correct, and relevant the collected data is.

Data bias occurs when data does not represent the full picture and may unfairly favor a particular group or viewpoint. For example, surveying only boys about favorite sports can produce biased results.

Raw data is the original data collected before it is cleaned or processed.

Common data errors include missing data, duplicate data, and outliers.

An outlier is a value that is unusually different from other values in a dataset. An outlier should be checked before it is changed or removed because it is not always an error.

Data validation is the process of checking whether data is correct, valid, follows required rules, has the right data type, and contains realistic values.

Data cleaning is the process of finding, correcting, or removing incorrect, incomplete, duplicate, or unnecessary data.

Data cleaning is important because clean data helps produce accurate analysis and reliable results. Incorrect data can lead to wrong conclusions.

Data analysis is the process of studying data to find useful information, patterns, relationships, and trends.

Data interpretation is the process of understanding what the results of data analysis actually mean.

Data visualization is the process of presenting data using charts, graphs, and other visual forms to make information easier to understand.

Common charts include bar charts, line charts, pie charts, column charts, and scatter plots. A line chart is commonly used to show changes or trends over time.

A database is an organized collection of data that can be stored, managed, and accessed easily. For example, a school database can store students' names, classes, marks, and attendance.

A table is a structure in a database that organizes data into rows and columns.

A record is a complete row in a database table that contains information about one item or person.

A field is a single type of information stored in a column of a database table. For example, Name, Class, and ID can be fields.

DBMS stands for Database Management System. It is software used to create, store, manage, and access data in databases.

Examples of DBMS include MySQL, Microsoft Access, and PostgreSQL.

A DBMS can be used to create databases and tables, store data, insert, update, delete, search, retrieve, sort, filter, protect, and back up data.

SQL stands for Structured Query Language. It is a language used to communicate with and manage databases using commands.

The SELECT command is used to retrieve data from a database table. For example, SELECT * FROM Students; retrieves all fields and records from the Students table.

The asterisk (*) means all fields or columns. For example, SELECT * FROM Students; retrieves all columns from the Students table.

The INSERT command is used to add new data to a database table. For example, INSERT INTO Students (Name, Class) VALUES ('Ali', 9); adds a new student record.

Download Notes

Download PDF