DATABASE SYSTEM 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/52

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:06 PM on 5/15/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

53 Terms

1
New cards
CREATE
Creates the main components of a database, such as databases and tables.
2
New cards
DROP
Deletes tables or databases permanently.
3
New cards
ALTER
Modifies existing structures, like adding, deleting, or changing columns.
4
New cards
INSERT
Loads or adds new data into the database.
5
New cards
UPDATE
Modifies the values of specified fields and records.
6
New cards
DELETE
Deletes specific records from a database table.
7
New cards
GRANT
Gives permissions to users.
8
New cards
REVOKE
Removes permissions from users.
9
New cards
COMMIT
Confirms an operation or transaction.
10
New cards
ROLLBACK
Rewinds or undoes an operation.
11
New cards
SELECT
Used to query database records that satisfy a given criterion and specify the columns to be included in the results.
12
New cards
FROM
Specifies the relationships or tables to be used as the source for the query.
13
New cards
WHERE
Specifies filter conditions that the rows must meet to be selected.
14
New cards
ORDER BY
Sorts the selected data results, typically in ascending (ASC) or descending (DESC) order.
15
New cards
GROUP BY
Groups rows with identical values in specified columns into summary rows.
16
New cards
HAVING
Filters results after they have been grouped.
17
New cards
LIMIT
Restricts the number of rows or items returned by the query.
18
New cards
=, <>, !=, >, >=,
Standard comparison operators to check if values are equal, different, larger, or smaller.
19
New cards
Safely compares equality, even handling NULL values.
20
New cards
AND / OR
Logical operators used to combine multiple filtering conditions.
21
New cards
IN ( )
Checks if a value matches any value within a specified list.
22
New cards
NOT
Denies or reverses a condition.
23
New cards
BETWEEN
Checks if values fall within a specific range, including the extremes.
24
New cards
IS NULL / IS NOT NULL
Checks if a value is empty (NULL) or has data.
25
New cards
LIKE
Defines a search pattern. Uses % to represent zero, one, or multiple characters, and _ to represent one specific character.
26
New cards
EXISTS
A condition that is met if a subquery returns at least one row.
27
New cards
DISTINCT
Filters the data to select and return only unique (non-repeated) values.
28
New cards
INNER JOIN
Finds matches between two tables, returning only records that have identical values in the linked fields.
29
New cards
LEFT (OUTER) JOIN
Returns all rows from the left table, even if there is no matching row in the right table (putting NULL in the unmatched right columns).
30
New cards
RIGHT (OUTER) JOIN
Returns all rows from the right table, even if there is no matching row in the left table.
31
New cards
FULL (OUTER) JOIN
Returns all rows from both tables, even if they have no correspondence in the other table.
32
New cards
CROSS JOIN
Generates all combinations of records (Cartesian Product) between two tables.
33
New cards
UNION
Merges two tables together without showing duplicate records (requires matching columns and data types).
34
New cards
UNION ALL
Merges two tables and shows everything, including duplicates.
35
New cards
INTERSECT
Keeps only the rows that are common to both queries.
36
New cards
EXCEPT
Generates only the records that are unique to the first table.
37
New cards
COUNT
Returns the total number of rows selected by the query.
38
New cards
MIN
Returns the minimum value of a specified field.
39
New cards
MAX
Returns the maximum value of a specified field.
40
New cards
SUM
Adds the values of a specified field.
41
New cards
AVG
Returns the average value of a specified field.
42
New cards
LOWER / LCASE
Converts a string to lower case.
43
New cards
UPPER / UCASE
Converts a string to upper case.
44
New cards
TRIM, RTRIM, LTRIM
Removes spaces from a string.
45
New cards
LEFT / RIGHT
Extracts a specific number of characters from the left (beginning) or right (end) of a string.
46
New cards
CONCAT
Joins multiple strings together to form a new string.
47
New cards
REPLACE
Swaps specified sequences of characters with a new string.
48
New cards
SUBSTRING
Extracts a portion of a string.
49
New cards
LENGTH
Returns the total number of characters in a string.
50
New cards
NOW()
Returns the constant date and time at the exact moment the statement starts executing.
51
New cards
SYSDATE()
Returns the date and time of the server dynamically each time the function is evaluated.
52
New cards
CURRENT_DATE()
Returns the current date of the client.
53
New cards
DATE_ADD() / DATE_SUB()
Adds or subtracts a specified interval (minutes, hours, days) from a date value.