SQL Flashcards

You may prefer our related Brainscape-certified 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 structured way to store data which can be retrieved using queries

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

What is the name for a row of data in a table?

A

Record

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

What is the name for a single attribute of a data in a table?

A

Field

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

What are the different data types in a database?

A

Integer
Real
Date
Time
DateTime
Char
Varchar
Text

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

What is a flat file database?

A

A database stored in a single text file

Often stored using a CSV file, or comma separated values

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

What is one advantage and disadvantage of a flat file database?

A

It is easy to set up, but is hard to use for anything but the simplest of data sets.

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

What is a primary key?

A

A primary key is a unique field for that specific table

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

What is redundancy in a database?

A

Two records store the same data

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

What is inconsistency in a database?

A

Information is incorrect or labelled differently

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

What is a relational database?

A

A database that stores multiple tables that have relations between them

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

What is a foreign key?

A

A field in a table that references the primary key of another table.

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

Write a query in SQL to select all fields from the database “dogs “ that are called “Chip”.

A

SELECT * FROM dogs WHERE name = “Chip”

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