Databases Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Define Database

A

A structured collection of data, allowing organized extraction of information

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

What is a record?

A

A single row that contains all the information for a specific item or entity

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

What is a primary key and what is its purpose?

A

a primary key is a unique identifier for each record in a table, which makes sure there are no duplicate entries

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

Describe the difference between validation and verification

A

Validation checks if the right type of data is entered. Verification checks for exact data which matches the input

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

What are the different data types and explain them

A

Real: Single floating-point number
Integer: Whole number
Character: Characters
Text: Groups of characters
Date: Date
Boolean: TRUE/FALSE or YES/NO

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

What does SQL stand for and what is its primary focus?

A

Structured Query Language, Used for writing scripts and queries to retrieve information from a database.

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

How can data be sorted in SQL queries?

A

(ORDER BY) clause, arranges results by a specified field either alphabetically or numerically.

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

What does the wildcard (*) symbol do?

A

Selects all records from a specified table.

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

What does the SELECT statement do in SQL

A

used to fetch specific fields in a database

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

What is the difference between COUNT and SUM

A

COUNT is the number of records the meet the specific criteria, While SUM adds up all values in a specifies column.

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