Learning SQLite Flashcards

1
Q

What is a relational database?

A

A database that organizes information into one or more tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a table?

A

A collection of data organized into rows and columns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

All data stored in a relational database is of a certain data type. Some of the most common data types are:

A

INTEGER, a positive or negative whole number
TEXT, a text string
DATE, the date formatted as YYYY-MM-DD
REAL, a decimal value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a SQL statement?

A

A string of characters that the database recognizes as a valid command and always ends in a semicolon ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a clause?

A

Perform specific tasks in SQL. By convention, these are written in capital letters and can also be referred to as commands.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a parameter?

A

A list of columns, data types, or values that are passed to a clause as an argument.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

UPDATE clause

A

A clause that edits a row in the table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SET clause

A

A clause that indicates the column to edit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

DELETE FROM clause

A

A clause that lets you delete rows from a table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

WHERE clause

A

A clause that lets you select which rows you want to delete.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are constraints?

A

Used to tell the database to reject inserted data that does not adhere to a certain restriction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is SQL?

A

A programming language designed to manipulate and manage data stored in relational databases.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a relational database?

A

A database that organizes information into one or more tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

CREATE TABLE clause

A

A clause that creates a new table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

INSERT INTO clause

A

A clause that adds a new row to a table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

SELECT clause

A

A clause that queries data from a table.

17
Q

ALTER TABLE clause

A

A clause that changes an existing table.

18
Q

UPDATE clause

A

A clause that edits a row in a table.

19
Q

DISTINCT statement

A

Used to return unique values in the output. It filters out all duplicate values in the specified column(s).

20
Q

%

A

A wildcard character that matches zero or more missing letters in the pattern.

21
Q

ORDER BY

A

A clause that indicates you want to sort the result set by a particular column.

22
Q

LIMIT clause

A

A clause that lets you specify the maximum number of rows the result set will have.

23
Q

CASE

A

A statement that allows us to create different outputs (usually in the SELECT statement). It is SQL’s way of handling if-then logic.

24
Q

Aggregates

A

Calculations performed on multiple rows of a table.

25
Q

GROUP BY

A

A clause in SQL that is used with aggregate functions. It is used in collaboration with the SELECT statement to arrange identical data into groups.