A glossary of key terms related to SQL

A glossary of key terms related to SQL

  1. SQL (Structured Query Language)
    A programming language used for managing and manipulating relational databases.
  1. डेटाबेस
    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.

Subscribe to our newsletter

Follow Us
  1. INSERT

An SQL statement used to add new rows of data to a table.

  1. UPDATE
    An SQL statement used to modify existing data in a table.
  2. DELETE

An SQL statement used to remove rows from a table.

  1. 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.
  2. WHERE
    A clause used in SQL queries to filter records based on specific conditions. It is used with SELECT, UPDATE, and DELETE statements.
  3. 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.
  4. HAVING
    A clause used to filter groups of rows created by the GROUP BY clause, typically based on an aggregate function.
  5. 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.
  6. DISTINCT
    A keyword used in SQL to return only distinct (unique) values from a column or combination of columns.
  7. 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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.

  1. Normalization

The process of organizing data in a database to reduce redundancy and improve data integrity by dividing large tables into smaller, related tables.

  1. Denormalization
    The process of combining tables to increase data retrieval speed at the cost of introducing redundancy.
  2. 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).
  3. 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.
  1. Schema
    The structure or blueprint of a database, defining how data is organized in tables, relationships, and other database objects.
  2. Cursor
    A database object used to retrieve, manipulate, and navigate through a result set row-by-row, often used in stored procedures.
  3. Alias
    A temporary name given to a table or column for the duration of a query, making it easier to reference in complex queries.
  4. 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).
  5. UNION
    An SQL operator used to combine the result sets of two or more SELECT queries, removing duplicate rows in the combined result set.
  6. 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.
  7. CASE
    A conditional expression in SQL that allows for if-then-else logic within SQL statements, particularly within SELECT statements.
  8. 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.
  9. 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.
  10. 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().
  11. 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