Save
A-level Computer Science
School Notes
Databases
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Ana Saker
Visit profile
Cards (31)
What is a relational database?
A
database
that stores
data
in
multiple
tables
View source
What is a flat file?
A
database
that stores
data
in a
single
table
View source
What is a primary key?
A
unique
identifier
for each
record
View source
What is a foreign key?
A
copy
of a
primary key
in
another
table
View source
What is a secondary key?
A
field
indexed
but not a
primary key
View source
What is the purpose of indexing?
To make
sorting
and
searching
quicker
View source
What is data redundancy?
Data
stored
more
than
once
in a
system
View source
What is data inconsistency?
Contradictory
copies
of the
same
data
View source
What does data integrity refer to?
The
correctness
and
rightness
of data
View source
What are the formats for exporting data from a database?
CSV (
Comma Separated Value
)
XML (
eXtensible
Markup
Language)
SQL (
Structured
Query
Language)
View source
What is normalization in databases?
Analyzing
a
database
design
for
efficiency
View source
What is 1NF in normalization?
No
repeated
fields
in a
database
View source
What is 2NF in normalization?
Must be in
1NF
with no
partial
key
dependencies
View source
What is 3NF in normalization?
Must be in
2NF
with no
non-key dependencies
View source
What are methods of exchanging data with other computer systems?
CSV
JSON
XML
SQL
APIs
EDI
RSS
SOAP
View source
What does the SELECT statement do in SQL?
It
selects
data
from a
database
View source
What does the FROM clause specify in SQL?
Which
table
to
select
or
delete
data
from
View source
What does the WHERE clause do in SQL?
Filters
results
based
on
specified conditions
View source
What does the LIKE operator do in SQL?
Searches
for a
specified
pattern
in a
column
View source
What does the wildcard '%' represent in SQL?
Zero,
one,
or
multiple
characters
View source
What does the wildcard '_' represent in SQL?
A single
character
View source
What does the AND operator do in SQL?
Includes
rows
where
both conditions
are
true
View source
What does the OR operator do in SQL?
Includes rows where either condition is true
View source
What does the DELETE statement do in SQL?
Deletes
existing records
in a
table
View source
What does the INSERT statement do in SQL?
Inserts
new rows
into a
table
View source
What does the DROP statement do in SQL?
Deletes
a whole
database
or
table
View source
What does the JOIN clause do in SQL?
Returns
rows
with
matching
values
in both
tables
View source
What is referential integrity in databases?
Ensures
consistent
changes
across a
database
Removes
all
references
if a
record
is
deleted
A
foreign key
must
correspond
to a
primary key
View source
What does ACID stand for in database transactions?
Atomic
:
Transaction
fully
completes
or
not
Consistency
:
Affects
entire
database
Isolation
:
Prevents
simultaneous
changes
Durability
:
Changes
remain
once
made
View source
What are the benefits and drawbacks of a flat file database?
Benefits:
Easy
to
set
up
All
records
in
one
place
Drawbacks:
More
redundant data
Slower
searching
Harder
to
manage
and
expand
View source
What are the benefits and drawbacks of a relational database?
Benefits:
Less
redundant
data
Easier
to
manage
and
expand
Faster
searching
More
secure
access
Drawbacks:
More
difficult
to
set
up
Data
spread
across
multiple
tables
More
expensive
due to
DBMS
View source