SQL Basics Flashcards

1
Q

Define Relational Database

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

Define 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

What is another name for a Table?

A

Relation

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

Define Column

A

a set of data values of a particular type

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

Define Row

A

a single record in a table

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

What are 4 common data types?

A

Integer, Text, Date, and REal

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

Define Integer

A

a positive or negative WHOLE number (example, 19)

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

Define Text

A

a string of text (example, ‘Gotham City’)

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

Define Date & how formatted

A

date formatted as YYYY-MM-DD

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

Define Real

A

a decimal value (example, 1.2)

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

Define Statement

A

text that the database recognizes as a valid command

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

What does EVERY statement end with in SQL?

A

a semicolon ;

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

What are the 3 components of a statement?

A
  1. Clause
  2. Table Name
  3. Parameter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Define Clause

A

Performs specific task in SQL

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

How are clauses written in SQL?

A

ALL CAPS

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

What are clauses also known as?

A

Commands

17
Q

Define Parameter

A

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

18
Q

Do the number of lines in a string of code affect the outcome in SQL?

A

NO!!

19
Q

Do SQL statements need to be written all on one line, or can they be split up across multiple lines for legibility?

A

They can be split up into multiple lines