Computer Science - 7 Relational Databases and SQL - 3 Structured Query Language (SQL)

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

1/19

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

20 Terms

1
New cards

SQL

special-purpose programming language for accessing and manipulating data stored in a relational database

2
New cards

SELECT ...

lists the fields data should be displayed from

3
New cards

FROM ...

specifies the table data should be from

4
New cards

WHERE ...

uses Boolean operators to list a condition records must fall into

5
New cards

BETWEEN ...

data between an inclusive range

6
New cards

LIKE ...

searches for a pattern

7
New cards

Wildcard symbol

*

8
New cards

Wildcard function

selects all fields

9
New cards

ORDER BY ...

organises data in ascending or descending order

10
New cards

ASC

ascending order

11
New cards

DESC

descending order

12
New cards

UPDATE ...

defines what table should be updated

13
New cards

SET ...

defines what value should be changed

14
New cards

DELETE FROM ...

defines what table a record[s] should be deleted from

15
New cards

INSERT INTO ...

inserts new data into a database

16
New cards

VALUES ...

defines the values to be inserted into a table

17
New cards

INSERT INTO + VALUES syntax

INSERT INTO table_name (column1, column2... columnx)

VALUES (value1, value2... valuex)

18
New cards

INNER JOIN ...

returns records in the overlap between two tables

19
New cards

INNER JOIN syntax

INNER JOIN table_name1 IN table_name1.field_name = table_name2.field_name

20
New cards

ASC/DESC syntax

ORDER BY field_name [ASC/DESC]