- SQL (Structured Query Language)
A programming language used for managing and manipulating relational databases.
- डेटाबेस
A structured collection of data stored in a computer system, organized in tables, and accessible through a database management system (DBMS).
3. Table
A collection of related data organized into rows and columns within a database. Each table has a unique name.
4. Column
A vertical entity in a table that contains all the information associated with a specific field. For example, a “Name” column in a “Customers” table.
5. Row (Record)
A horizontal entity in a table representing a single data item. Each row contains data in columns corresponding to the attributes of that item.
6. Primary Key
A column or set of columns in a table that uniquely identifies each row in that table. The primary key must contain unique values and cannot contain NULL values.
7. Foreign Key
A column or set of columns in one table that references the primary key in another table, establishing a relationship between the two tables.
8. Index
A database object that improves the speed of data retrieval operations on a table by creating a quick lookup capability for specific columns.
9. Query
A request for data or information from a database, typically written in SQL. A query retrieves, inserts, updates, or deletes data in a database.
10. SELECT
An SQL statement used to retrieve data from a database. It specifies the columns to be retrieved and the table(s) from which to retrieve them.
- INSERT
An SQL statement used to add new rows of data to a table.
- UPDATE
An SQL statement used to modify existing data in a table. - DELETE
An SQL statement used to remove rows from a table.
- JOIN
An SQL operation that combines rows from two or more tables based on a related column between them. Types of joins include INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN. - WHERE
A clause used in SQL queries to filter records based on specific conditions. It is used with SELECT, UPDATE, and DELETE statements. - GROUP BY
A clause used in SQL to group rows that have the same values in specified columns, often used with aggregate functions like COUNT, SUM, AVG, etc. - HAVING
A clause used to filter groups of rows created by the GROUP BY clause, typically based on an aggregate function. - ORDER BY
A clause used to sort the result set of a query by one or more columns, either in ascending (ASC) or descending (DESC) order. - DISTINCT
A keyword used in SQL to return only distinct (unique) values from a column or combination of columns. - Aggregate Functions
Functions in SQL that perform a calculation on a set of values and return a single value. Common aggregate functions include COUNT, SUM, AVG, MIN, and MAX.
- Subquery
A query nested within another SQL query. Subqueries are often used in SELECT, INSERT, UPDATE, or DELETE statements to operate on data returned by the subquery. - View
A virtual table in SQL that is the result of a stored query. Views allow users to simplify complex queries and provide a level of abstraction. - Stored Procedure
A set of SQL statements stored in the database and executed as a single unit. Stored procedures can include control-of-flow language, which allows for the implementation of logic like loops and conditionals. - Trigger
A database object that automatically executes a specified SQL statement when a particular event occurs, such as an INSERT, UPDATE, or DELETE operation on a table. - Constraint
A rule enforced on data columns in a table to ensure the integrity and accuracy of the data. Common constraints include PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, and CHECK.
- Normalization
The process of organizing data in a database to reduce redundancy and improve data integrity by dividing large tables into smaller, related tables.
- Denormalization
The process of combining tables to increase data retrieval speed at the cost of introducing redundancy. - Transaction
A sequence of one or more SQL operations executed as a single unit. Transactions are typically governed by the ACID properties (Atomicity, Consistency, Isolation, Durability). - ACID Properties
A set of properties that guarantee the reliability of database transactions:
- Atomicity: Ensures that all operations within a transaction are completed; otherwise, the transaction is aborted.
- Consistency: Ensures that a transaction brings the database from one valid state to another.
- Isolation: Ensures that concurrent transactions do not interfere with each other.
- Durability:Ensures that the results of a transaction are permanently stored in the database once committed.
- Schema
The structure or blueprint of a database, defining how data is organized in tables, relationships, and other database objects. - Cursor
A database object used to retrieve, manipulate, and navigate through a result set row-by-row, often used in stored procedures. - Alias
A temporary name given to a table or column for the duration of a query, making it easier to reference in complex queries. - Wildcards
Special symbols used in SQL queries to search for data within a pattern. Common wildcards include%
(matches zero or more characters) and_
(matches a single character). - UNION
An SQL operator used to combine the result sets of two or more SELECT queries, removing duplicate rows in the combined result set. - NULL
A special marker in SQL that indicates the absence of a value in a column. NULL is not equivalent to an empty string or zero. - CASE
A conditional expression in SQL that allows for if-then-else logic within SQL statements, particularly within SELECT statements. - Index Scan
A database operation that sequentially reads all the entries in an index to find the matching rows, used to speed up query performance. - Cross Join
An SQL operation that returns the Cartesian product of two tables, meaning it pairs each row of the first table with each row of the second table. - Scalar Function
A function in SQL that takes one or more input values and returns a single output value. Examples include UPPER(), LOWER(), and ROUND(). - SET
An SQL statement used to assign values to variables or to modify data in a table without the use of INSERT, UPDATE, or DELETE commands.
Add a Comment