What is the primary purpose of data manipulation in databases?
The primary purpose of data manipulation in databases is to retrieve, update, insert, and delete data,
ensuring that the data is organized and accessible for analysis. ✔️✔️
What is SQL, and why is it important for data manipulation?
SQL, or Structured Query Language, is a programming language used for managing and manipulating
relational databases. It is important because it allows users to perform operations on the data stored in
databases easily. ✔️✔️
How can you insert new data into a table in SQL?
You can insert new data into a table in SQL using the `INSERT INTO` statement followed by the table
name and the values to be inserted. ✔️✔️
What does the `UPDATE` statement do in SQL?
The `UPDATE` statement in SQL modifies existing records in a table based on specified criteria. ✔️✔️
What is the purpose of the `DELETE` statement in SQL?
The purpose of the `DELETE` statement in SQL is to remove one or more records from a table based on
specific conditions. ✔️✔️
How can you retrieve specific columns from a table using SQL?
You can retrieve specific columns from a table using the `SELECT` statement followed by the column
names and the table name. ✔️✔️
What is a `JOIN` in SQL, and when would you use it?
A `JOIN` in SQL is used to combine rows from two or more tables based on a related column. It is used
when you need to retrieve data that is spread across multiple tables. ✔️✔️
What is data aggregation, and how is it performed in SQL?
, Data aggregation is the process of summarizing data to derive meaningful insights, often using functions
like `SUM`, `COUNT`, `AVG`, and `GROUP BY` in SQL. ✔️✔️
How can you sort the results of a query in SQL?
You can sort the results of a query in SQL using the `ORDER BY` clause followed by the column name and
the desired sort order (ASC or DESC). ✔️✔️
What is the purpose of the `WHERE` clause in SQL?
The `WHERE` clause in SQL is used to filter records based on specific conditions, allowing for more
targeted queries. ✔️✔️
How do you create a new table in SQL?
You create a new table in SQL using the `CREATE TABLE` statement followed by the table name and the
definitions of the columns. ✔️✔️
What is the difference between `INNER JOIN` and `LEFT JOIN` in SQL?
`INNER JOIN` retrieves only the matching records from both tables, while `LEFT JOIN` returns all records
from the left table and the matching records from the right table, filling in with NULLs where there are
no matches. ✔️✔️
What are indexes, and how do they improve data manipulation performance?
Indexes are special data structures that improve the speed of data retrieval operations on a database
table, making queries faster by allowing the database engine to find rows more efficiently. ✔️✔️
How can you change the structure of an existing table in SQL?
You can change the structure of an existing table in SQL using the `ALTER TABLE` statement, which
allows you to add, modify, or drop columns. ✔️✔️
What is normalization, and why is it important in database design?
Normalization is the process of organizing a database to reduce redundancy and improve data integrity.
It is important because it ensures efficient data management and helps prevent anomalies during data
manipulation. ✔️✔️