Back to marketplace

SQL And Databases

No description yet. This curated deck is ready for daily study.

Total cards: 17•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (17)

#1
Front (Question)

What is a database?

Back (Answer)

A database is an organised collection of data that can be easily accessed, managed, and updated.

#2
Front (Question)

What is a record in a database?

Back (Answer)

A record is a single row in a table that contains data about one item.

#3
Front (Question)

What is a field in a database?

Back (Answer)

A field is a column in a table that holds one piece of data about every record.

#4
Front (Question)

What is a primary key?

Back (Answer)

A primary key is a field that uniquely identifies each record in a table. It cannot be duplicated or left empty.

#5
Front (Question)

What is a foreign key?

Back (Answer)

A foreign key is a field in one table that links to the primary key in another table, creating a relationship between the tables.

#6
Front (Question)

What is a flat file database?

Back (Answer)

A database that stores all data in a single table. It is simple but can lead to data redundancy.

#7
Front (Question)

What is a relational database?

Back (Answer)

A database that stores data in multiple related tables, reducing redundancy and improving data integrity.

#8
Front (Question)

What is SQL?

Back (Answer)

SQL (Structured Query Language) is the standard language used to create, modify, and query databases.

#9
Front (Question)

What does the SQL SELECT statement do?

Back (Answer)

It retrieves data from a database. Example: SELECT name FROM students returns the name field from the students table.

#10
Front (Question)

What does the SQL WHERE clause do?

Back (Answer)

It filters results based on a condition. Example: SELECT * FROM students WHERE grade = ‘A’ returns only students with grade A.

#11
Front (Question)

What does * mean in an SQL query?

Back (Answer)

It means “select all fields”. Example: SELECT * FROM students returns every column from the students table.

#12
Front (Question)

How do you sort results in SQL?

Back (Answer)

Use ORDER BY. Example: SELECT name FROM students ORDER BY age sorts by age.

#13
Front (Question)

How do you rename a field in the output using SQL?

Back (Answer)

Use AS. Example: SELECT name AS student_name FROM students.

#14
Front (Question)

What does the SQL INSERT INTO command do?

Back (Answer)

It adds new data to a table. Example: INSERT INTO students (name, grade) VALUES (‘Alice’, ‘A’).

#15
Front (Question)

What does the SQL UPDATE command do?

Back (Answer)

It changes existing data. Example: UPDATE students SET grade = ‘B’ WHERE name = ‘Alice’.

#16
Front (Question)

What does the SQL DELETE command do?

Back (Answer)

It removes data from a table. Example: DELETE FROM students WHERE name = ‘Alice’.

#17
Front (Question)

Why is validation important in databases?

Back (Answer)

Validation checks that data entered is sensible and reasonable, improving data integrity and reducing errors.