SQL Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/61

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

62 Terms

1
New cards

SELECT

Extracts data from a database

2
New cards

UPDATE

Modifies existing records in a table

3
New cards

DELETE

Removes existing records in a table

4
New cards

INSERT INTO

Adds new data into a database

5
New cards

CREATE DATABASE

Establishes a new database

6
New cards

ALTER DATABASE

Adjusts a database

7
New cards

CREATE TABLE

Generates a new table

8
New cards

ALTER TABLE

Modifies a table

9
New cards

DROP TABLE

Deletes a table

10
New cards

CREATE INDEX

Establishes an index (search key)

11
New cards

DROP INDEX

Removes an index

12
New cards

SELECT DISTINCT

Returns distinctly different values

13
New cards

COUNT()

Provides a count of data

14
New cards

WHERE

Sets criteria to filter data

15
New cards

=

Represents equal in SQL

16
New cards

>

Denotes greater than

17
New cards

<

Denotes less than

18
New cards

>=

Denotes greater than or equal to

19
New cards

Denotes less than or equal to

20
New cards

<>

Denotes not equal

21
New cards

BETWEEN

Specifies a range

22
New cards

LIKE

Searches for a pattern

23
New cards

IN

Specifies multiple possible values for a column

24
New cards

ORDER BY

Sorts data in ascending or descending order

25
New cards

AND

Filters records based on multiple conditions

26
New cards

OR

Filters records based on any of the conditions

27
New cards

NOT

Negates a condition

28
New cards

NULL

Represents a field with no value

29
New cards

IS NULL

Checks for NULL values

30
New cards

IS NOT NULL

Checks for non-NULL values

31
New cards

SET

Modifies existing records in a table

32
New cards

MIN()

Returns the smallest value in a column

33
New cards

MAX()

Returns the largest value in a column

34
New cards

SUM()

Calculates the total sum of a numerical column

35
New cards

AVG()

Computes the average value of a numerical column

36
New cards

JOIN

Combines rows from two or more tables based on a related column

37
New cards

SELF JOIN

Joins a table to itself

38
New cards

UNION

Combines the result-set of multiple SELECT statements

39
New cards

ALL

Compares a value with every value in a subquery

40
New cards

AND

Combines conditions where all must be true

41
New cards

ANY

Compares a value with any value in a subquery

42
New cards

BETWEEN

Checks if an operand is within a range

43
New cards

EXISTS

Checks if a subquery returns records

44
New cards

IN

Checks if an operand is in a list of expressions

45
New cards

LIKE

Matches a pattern

46
New cards

NOT

Negates a condition

47
New cards

OR

Combines conditions where at least one must be true

48
New cards

SOME

Compares a value with some values in a subquery

49
New cards

+=

Adds and assigns

50
New cards

-=

Subtracts and assigns

51
New cards

*=

Multiplies and assigns

52
New cards

/=

Divides and assigns

53
New cards

%=

Modulo and assigns

54
New cards

&

Bitwise AND

55
New cards

|

Bitwise OR

56
New cards

^

Bitwise exclusive OR

57
New cards

+

Addition

58
New cards

-

Subtraction

59
New cards

*

Multiplication

60
New cards

/

Division

61
New cards

%

Modulo

62
New cards

ALTER TABLE

Adds, deletes, or modifies columns in a table