SQL

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/57

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 8:23 AM on 5/12/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

58 Terms

1
New cards

SQL (Structured Query Language)

Standard programming language for managing and manipulating relational databases.

2
New cards

Relational Database Management Systems (RDBMS)

Systems like MySQL, PostgreSQL, Oracle, and SQL Server.

3
New cards

Database

Organized collection of related data, structured for efficient storage and retrieval.

4
New cards

Table

Collection of rows and columns that store data in a relational format.

5
New cards

INT

Whole numbers without decimal points.

6
New cards

VARCHAR(n)

String with a maximum length of n characters.

7
New cards

DATE

Represents calendar dates.

8
New cards

BOOLEAN

True or False values.

9
New cards

FLOAT / DOUBLE

Decimal numbers with single (FLOAT) or double (DOUBLE) precision.

10
New cards

SELECT

Used to retrieve data from one or more tables.

11
New cards

INSERT

Used to add new rows to a table.

12
New cards

UPDATE

Used to modify existing data in a table.

13
New cards

DELETE

Used to remove rows from a table.

14
New cards

WHERE Clause

Used to filter records based on specified conditions.

15
New cards

ORDER BY

Used to sort the result-set in ascending or descending order.

16
New cards

COUNT()

Counts the number of rows

17
New cards

SUM()

Calculates the sum of values in a column

18
New cards

AVG()

Calculates the average value of a column

19
New cards

MAX()

Finds the maximum value in a column

20
New cards

MIN()

Finds the minimum value in a column

21
New cards

INNER JOIN

Returns only matching records from both tables

22
New cards

LEFT JOIN

Returns all records from the left table and matched records from the right table

23
New cards

RIGHT JOIN

Returns all records from the right table and matched records from the left table

24
New cards

FULL JOIN

Returns all records from both tables

25
New cards

PRIMARY KEY

Uniquely identifies a record in a table

26
New cards

FOREIGN KEY

Establishes a link between two tables using a column that refers to the primary key of another table

27
New cards

UNIQUE

Ensures that all values in a column are unique

28
New cards

NOT NULL

Ensures that a column cannot contain NULL values

29
New cards

Subqueries

Queries nested inside another query.

30
New cards

SQL (Structured Query Language)

SQL is the standard language for interacting with relational databases. It allows users to perform various operations such as querying, updating, and managing data. It is declarative, meaning you specify what you want to achieve, not how to achieve it.

31
New cards

Relational Database Management Systems (RDBMS)

RDBMS are software systems used to manage and maintain relational databases. Popular examples include MySQL, PostgreSQL, Oracle, and SQL Server. They provide a structured way to store, organize, and access data, ensuring data integrity and consistency.

32
New cards

Database

A database is an organized and structured collection of data, stored and accessed electronically. It is designed to efficiently store, manage, and retrieve large amounts of related data, providing a reliable and persistent storage solution.

33
New cards

Table

A table is a fundamental structure in a relational database, consisting of rows and columns. It is used to store data in a structured format, where each row represents a record and each column represents a specific attribute of that record.

34
New cards

INT

INT is a data type used to represent whole numbers, both positive and negative, without any decimal points. It is commonly used for storing integer values such as counts, quantities, or IDs.

35
New cards

VARCHAR(n)

VARCHAR(n) is a data type used to store variable-length character strings, where 'n' specifies the maximum number of characters that can be stored. It is suitable for storing text data such as names, addresses, or descriptions.

36
New cards

DATE

DATE is a data type used to represent calendar dates, typically consisting of year, month, and day. It is commonly used for storing dates of events, records, or transactions.

37
New cards

BOOLEAN

BOOLEAN is a data type used to represent binary values, either True or False. It is commonly used for storing flags or status indicators.

38
New cards

FLOAT / DOUBLE

FLOAT / DOUBLE are data types used to represent decimal numbers with single (FLOAT) or double (DOUBLE) precision. They are commonly used for storing numerical values with fractional parts, such as measurements or financial data.

39
New cards

SELECT

SELECT is a SQL statement used to retrieve data from one or more tables in a database. It allows users to specify the columns to be retrieved and apply conditions to filter the results.

40
New cards

INSERT

INSERT is a SQL statement used to add new rows (records) to a table in a database. It allows users to specify the values to be inserted into each column of the new row.

41
New cards

UPDATE

UPDATE is a SQL statement used to modify existing data in a table. It allows users to change the values of one or more columns in specific rows based on specified conditions.

42
New cards

DELETE

DELETE is a SQL statement used to remove rows (records) from a table in a database. It allows users to delete specific rows based on specified conditions.

43
New cards

WHERE Clause

The WHERE clause is used to filter records based on specified conditions. It is used in SELECT, UPDATE, and DELETE statements to specify which records should be affected by the query.

44
New cards

ORDER BY

ORDER BY is a clause used to sort the result-set of a query in ascending or descending order based on one or more columns. It allows users to arrange the retrieved data in a specific order for better readability or analysis.

45
New cards

COUNT()

COUNT() is an aggregate function that counts the number of rows in a table or the number of non-NULL values in a column. It is commonly used to determine the size of a dataset or the frequency of occurrences.

46
New cards

SUM()

SUM() is an aggregate function that calculates the sum of values in a numeric column. It is commonly used to compute the total value of a set of numbers.

47
New cards

AVG()

AVG() is an aggregate function that calculates the average value of a numeric column. It computes the arithmetic mean of a set of numbers.

48
New cards

MAX()

MAX() is an aggregate function that finds the maximum value in a column. It determines the highest value among a set of values.

49
New cards

MIN()

MIN() is an aggregate function that finds the minimum value in a column. It determines the lowest value among a set of values.

50
New cards

INNER JOIN

INNER JOIN returns only the matching records from both tables involved in the join. It combines rows from two tables based on a related column between them.

51
New cards

LEFT JOIN

LEFT JOIN returns all records from the left table and the matched records from the right table. If there is no match, the result will contain NULL values for the columns from the right table.

52
New cards

RIGHT JOIN

RIGHT JOIN returns all records from the right table and the matched records from the left table. If there is no match, the result will contain NULL values for the columns from the left table.

53
New cards

FULL JOIN

FULL JOIN returns all records from both tables. When there are no matching rows, it fills in NULL values for the missing sides.

54
New cards

PRIMARY KEY

PRIMARY KEY is a column or a set of columns that uniquely identifies each record in a table. It ensures that each row has a unique identifier and helps enforce data integrity.

55
New cards

FOREIGN KEY

FOREIGN KEY establishes a link between two tables by referencing the primary key of another table. It ensures referential integrity between related tables, maintaining consistency of data across the database.

56
New cards

UNIQUE

UNIQUE constraint ensures that all values in a column are unique, preventing duplicate entries. It helps maintain the uniqueness and integrity of data within a column.

57
New cards

NOT NULL

NOT NULL constraint ensures that a column cannot contain NULL values, requiring a value to be present for every record. It prevents missing or incomplete data in a column.

58
New cards

Subqueries

Subqueries are queries nested inside another query. They are used to perform complex data retrieval and filtering operations, allowing users to create dynamic and flexible queries.