Databases AQA

studied byStudied by 2 people
0.0(0)
Get a hint
Hint

Database

1 / 20

flashcard set

Earn XP

21 Terms

1

Database

An organised and persistent collection of data

New cards
2

Flat-File Database

A database for only 1 table at a time, storing those attributes independently

New cards
3

Disadv of flat file

Can lead to data redundancy if a field is repeated and trying to be updated

New cards
4

Primary key

A field that uniquely identifies a record

New cards
5

Foreign Key

The linking field in the foreign table formed when a relationship is made

New cards
6

Secondary Key

A key field that can be used to access a table in a different way

New cards
7

Entity Relationship

A graphical representation that depicts relationships in relational databases (e.g 1→M, M→M)

New cards
8

Index

The process of creating a database index, which is a data structure that improves the speed of data retrieval

New cards
9

Normalisation

The process of arranging data into tables

1NF → 1 table, 2NF → 2 tables etc…

New cards
10

Atomic Data

Data that can’t be broken down

New cards
11

1NF (First normal form)

Data is atomic, no repeating attributes, records have primary keys

New cards
12

2NF (Second normal form)

meets 1NF, no partial dependencies on non-key attributes

New cards
13

3NF (Third normal form)

meets 1NF and 2NF, no dependencies on non-key attributes

New cards
14

SQL for selecting an item from a table

SELECT “wantedField”

FROM “tableName”

WHERE “item = wantedItem”

New cards
15

SQL for ordering by field

ORDER BY “fieldName” (asc/descending)

New cards
16

SQL for “like”

WHERE “fieldName” LIKE “wantedItem”

New cards
17

SQL for inserting to a table

INSERT INTO “tableName”

“fieldName1, fieldName2…..”

VALUES “value1, value2….”

New cards
18

SQL for deleting from a database

DELETE FROM “tableName”

WHERE “fieldName” = “condition”

New cards
19

SQL for updating a table

UPDATE “tableName”

SET “fieldName” = “value1, value2…”

WHERE “fieldName” = “condition”

New cards
20

SQL for joining 1 table to another

JOIN “tableName1”

ON “tableName2”.”fieldName2” = “tableName1”. “fieldName1”

New cards
21

SQL for dropping a table

DROP TABLE “tableName”

New cards

Explore top notes

note Note
studied byStudied by 28 people
... ago
5.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 10 people
... ago
5.0(1)
note Note
studied byStudied by 3 people
... ago
5.0(1)
note Note
studied byStudied by 13 people
... ago
5.0(1)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 31 people
... ago
5.0(2)

Explore top flashcards

flashcards Flashcard (255)
studied byStudied by 13 people
... ago
5.0(1)
flashcards Flashcard (56)
studied byStudied by 6 people
... ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 12 people
... ago
5.0(2)
flashcards Flashcard (38)
studied byStudied by 24 people
... ago
5.0(1)
flashcards Flashcard (72)
studied byStudied by 132 people
... ago
5.0(3)
flashcards Flashcard (87)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (96)
studied byStudied by 22 people
... ago
5.0(1)
flashcards Flashcard (485)
studied byStudied by 305 people
... ago
5.0(6)
robot