Session 1 Flashcards

(22 cards)

1
Q

What is Big Data?

A

Big Data is large, complex data that’s hard to process with traditional tools.

Example: Healthcare records

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

Difference between structured and unstructured data

A

Structured data is organised and stored in fixed formats like databases (e.g., Excel spreadsheets), while unstructured data lacks a predefined format, such as emails, videos, or social media posts.

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

What does RDBMS stand for?

A

Relational Database Management System

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

What is RDBMS?

A

It is the basis for SQL, and for all modern database systems. The data in RSBMS is stored in database objects called tables. A table is a collection of related data entries and it consists of columns and rows.

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

Command for deleting an existing SQL Database

A

DROP TABLE ‘insert table name’

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

Command for creating a new database

A

CREATE DATABASE ‘insert name’

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

NULL VALUE VS NOT NULL

A

NULL means no value is assigned (unknown or missing).

NOT NULL means a value must always be provided (it cannot be left empty).

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

Creating a table

A

Use project name;
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
);

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

DATA TYPES: CHAR(size)

A

Fixed length text. The size defines the exact number of characters it will store.

For example CHAR(5) means it can store up to 5 characters. Even if only “hi” is input it will be stored as “hi “ (three spaces totalling to 5 characters).

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

DATA TYPES: VARCHAR(size)

A

Stores variable-length text.

The size defines the maximum number of characters it can store, but unlike CHAR, it only uses the exact space needed for the input without adding extra padding.

For example, VARCHAR(5) can store up to 5 characters. If you insert “Hi,” it will store just “Hi” (no extra spaces).

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

DATA TYPES: BINARY

A

Fixed length strings, where size is the number of binary characters to store.

The size defines the exact number of bytes it stores.

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

DATA TYPES: FLOAT(p)

A

Floating point number. Where p is a precision

It’s used to store approximate numerical values with a precision p, which determines the number of significant digits. The precision affects how the value is stored and calculated.

If p is 1 to 24, the value is stored as a single-precision (4 bytes).

If p is 25 to 53, it is stored as double-precision (8 bytes).

For example, FLOAT(10) will store a number with up to 10 significant digits.

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

DATA TYPES: INTEGER

A

Standard integer value, allows whole numbers. INTEGER stores whole numbers (no decimals) from -2 billion to 2 billion.

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

DATA TYPES: DECIMAL (m,d)

A

Fixed point number, where m is the total digits and d is the number of digits after the decimal.

For example, DECIMAL(5, 2) can store numbers like 123.45 (5 digits total, 2 after the decimal).

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

DATA TYPES: BOOLEAN

A

BOOLEAN stores true or false values, often represented as 1 (true) and 0 (false).

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

DATA TYPES: DATE

A

Displayed as ‘YYY-MM-DD’

17
Q

DATA TYPES: TIME

A

Displayed as ‘HH:MM:SS’

18
Q

DATA TYPES: TIMESTAMP

A

Displayed as ‘YYY-MM-DD HH:MM:SS’

19
Q

What datatype to enter when creating table for id

20
Q

What datatype to enter when creating table for name/text

21
Q

What datatype to enter when creating table for whole numbers

22
Q

How to populate inside several tables

A

INSERT INTO table_name (column1_name, column2_name, column3_name) VALUES

(‘Data’, ‘Data’, ‘Data’),
(‘Data’, ‘Data’, ‘Data’),
(‘Data’, ‘Data’, ‘Data’),
(‘Data’, ‘Data’, ‘Data’);