SQL Flashcards

1
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
2
Q

What is a database?

A

A database is a persistent store of data.

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

What does SQL allow you to do?

A

it is a language which allows you to create, query and add data to databases.

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

Can SQL queries be used in high level programming languages?

A

Yes, they can be used in languages such as Python and C#

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

What are the three SQL syntax for querying a database?

A

SELECT (list the fields to be displayed)
FROM (specify the table name)
WHERE (list the search criteria)

MUST ALL BE IN CAPITALS.

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

What is a wild card?

A

All columns.

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

What are the three main operators in word form?

A

AND, OR, NOT

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

What does the Operator BETWEEN mean?

A

Searches between a inclusive range,

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

What does the operator LIKE do?

A

Searches for a pattern.

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

What does ORDER BY allow you to do?

A

Allows a query to sort data by ascending or descending order.

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

What are the commands for Ascending order or Descending Order?

A
Ascending = ASC
Descending = DESC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly