SQL Flashcards

1
Q

When should you use a programming language?

A

When it is useful for what you are doing.

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

What does TSV stand for and what is it?

A

Tab Separated Values and is a format where each field is separated by a tab.

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

What does SQL stand for?

A

Structured Query Language

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

What does * mean in SQL?

A

Select everything

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

What is a varchar in SQL?

A

A variable character where the maximum possible length is specified.

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

What is a char in SQL?

A

A fixed length string

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

What is a text type in SQL?

A

A string

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

What does CRUD stand for in SQL?

A

Create (insert), Read, Update, Delete (drop)

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

What does ‘=’ represent in SQL

A

Equal

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

Why is the following code a big no no?
DELETE FROM favorites

A

It will delete the entire database

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

Why is it important? To back up databases?

A

Because there is no undo button/whole databases can be deleted with one query.

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

What does Ctrl c do?

A

Breaks

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

What does ‘- -’ mean in SQL?

A

Comment

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

Why is the following code dangerous: ‘…’ ?

A

It can easily be hacked

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

What type of print function can be hacked? What type can’t?

A

Formatted can, placeholder can’t.

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

What type of print function is this: print(f”…”)?

A

Formatted

17
Q

What does the input() function do?

A

Get used input