Databases AQA

studied byStudied by 1 person
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 6 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 57 people
Updated ... ago
5.0 Stars(3)
note Note
studied byStudied by 18 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 1418 people
Updated ... ago
4.8 Stars(25)

Explore top flashcards

flashcards Flashcard29 terms
studied byStudied by 297 people
Updated ... ago
4.5 Stars(10)
flashcards Flashcard50 terms
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard80 terms
studied byStudied by 6 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard21 terms
studied byStudied by 2 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard144 terms
studied byStudied by 12 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard47 terms
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard49 terms
studied byStudied by 82 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard146 terms
studied byStudied by 10 people
Updated ... ago
5.0 Stars(1)