Databases Flashcards

(43 cards)

1
Q

What is a table in database terminology?

A

A collection of related data organized in rows and columns, where each row represents a record and each column represents a field

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

What is a record in a database?

A

A single row in a database table that contains all the information about one particular item or entity

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

What is a field in a database?

A

A single column in a database table that stores a specific type of data (e.g., name, age, address)

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

What is a key field and why is it important?

A

A field that uniquely identifies each record in a table.

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

What is a query in database terms?

A

A request for specific data from a database, used to search, filter, or extract information based on certain criteria

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

What is a form in a database application?

A

A user interface that allows users to enter, edit, or view data in a more user-friendly way than directly editing tables

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

What is a report in database terminology?

A

A formatted presentation of data from a database, often used for printing or displaying information in an organized manner

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

What is a macro in database applications?

A

A set of automated commands or actions that can be executed to perform repetitive tasks in a database

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

What is a relationship in database design?

A

A connection between two or more tables that allows data to be linked and shared between them

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

Name the 4 relationship types

A
  • 1 to 1
  • 1 to many
  • many to one
  • Many to many
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What does importing data mean in database context?

A

The process of bringing data from external sources (like spreadsheets or other databases) into your database

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

What is the Text data type used for?

A

Storing alphabetic characters, words, and sentences (e.g., names, addresses, descriptions)

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

What is the Number data type used for?

A

Storing numerical values that can be used in mathematical calculations (e.g., age, quantity, price)

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

What is the Date/Time data type used for?

A

Storing dates and times in a standardized format (e.g., birth dates, appointment times)

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

What is the Boolean/Yes-No data type used for?

A

Storing true/false or yes/no values (e.g., married status, membership status)

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

What is the Currency data type used for?

A

Storing monetary values with appropriate formatting and precision for financial calculations

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

Why is data validation important in databases?

A

To ensure data accuracy, consistency, and integrity by preventing incorrect or inappropriate data from being entered

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

What is presence validation?

A

A validation check that ensures a field is not left empty - it must contain some data

19
Q

What is length validation?

A

A validation check that ensures data entered is within specified minimum and maximum character limits

20
Q

What is type validation?

A

A validation check that ensures data entered matches the expected data type (e.g., numbers only in a numeric field)

21
Q

What is format validation?

A

A validation check that ensures data follows a specific pattern or format (e.g., email addresses, phone numbers)

22
Q

What is range validation?

A

A validation check that ensures numerical data falls within specified minimum and maximum values

23
Q

What does the < operator do in database queries?

A

Returns records where the field value is less than the specified value

24
Q

What does the > operator do in database queries?

A

Returns records where the field value is greater than the specified value

25
What does the = operator do in database queries?
Returns records where the field value is exactly equal to the specified value
26
What does the <= operator do in database queries?
Returns records where the field value is less than or equal to the specified value
27
What does the >= operator do in database queries?
Returns records where the field value is greater than or equal to the specified value
28
What does the AND operator do in database queries?
Combines two or more conditions where ALL conditions must be true for a record to be returned
29
What does the OR operator do in database queries?
Combines two or more conditions where ANY ONE condition must be true for a record to be returned
30
What does the BETWEEN operator do in database queries?
Returns records where the field value falls within a specified range (inclusive of the boundary values)
31
What is big data?
Extremely large datasets that are too complex to be processed using traditional data processing methods
32
What does 'volume' refer to in big data?
The massive amount or size of data being generated and stored
33
What does 'velocity' refer to in big data?
The speed at which data is generated, processed, and analyzed
34
What does 'variety' refer to in big data?
The different types and formats of data (structured, unstructured, text, images, videos, etc.)
35
What is data analytics?
The process of examining, cleaning, transforming, and modeling data to discover useful information and support decision-making
36
Why is data analytics needed for big data?
Because big data is too large and complex for humans to interpret manually - analytics tools help identify patterns, trends, and insights
37
Give an example of when you might use presence validation
When ensuring a customer's name field is not left blank in a customer database
38
Give an example of when you might use length validation
When ensuring a password is between 8-20 characters long
39
Give an example of when you might use range validation
When ensuring an age field only accepts values between 0 and 120
40
Write a query to find all students with age greater than 16
Age > 16
41
Write a query to find all products priced between Β£10 and Β£50
Price BETWEEN 10 AND 50
42
Write a query to find all customers from London OR Manchester
City = 'London' OR City = 'Manchester'
43
What would happen without data validation in a database?
Inconsistent, inaccurate, or inappropriate data could be entered, leading to unreliable information and poor decision-making