SnapCards

Computer Science: Database Fundamentals

20 cards|
6 easy10 medium4 hard
computer sciencedatabasessql

SQL, relational databases, normalization, and database design concepts.

Study these flashcards with spaced repetition

Track your progress, master difficult cards, and export to Anki. Free to start.

Start Studying — Free

Flashcards in This Deck

1
easy

What is a Primary Key in a relational database?

A Primary Key is a unique identifier for each record in a table. It must contain unique values and cannot contain NULL values.

2
easy

Which SQL command is used to retrieve data from a database?

The SELECT statement is used to select data from a database, which is then stored in a result table called a result-set.

3
easy

What does the 'A' in ACID properties stand for, and what does it guarantee?

Atomicity. It guarantees that a transaction is treated as a single 'unit', which either succeeds completely or fails completely; there is no partial completion.

4
easy

What is the purpose of a Foreign Key?

A Foreign Key is a field (or collection of fields) in one table that refers to the Primary Key in another table, establishing a link between the data in the two tables.

5
easy

Which SQL aggregate function is used to calculate the total number of rows that match a specified criterion?

The COUNT() function returns the number of rows that matches a specified criterion.

6
easy

What is the difference between the DELETE and DROP commands?

DELETE is a DML command used to remove rows from a table based on a condition, while DROP is a DDL command that removes the entire table structure and its data from the database.

7
medium

Explain the difference between an INNER JOIN and a LEFT JOIN.

An INNER JOIN returns records that have matching values in both tables. A LEFT JOIN returns all records from the left table and the matched records from the right table; if no match exists, NULL values are returned for the right side.

8
medium

What are the requirements for a table to be in First Normal Form (1NF)?

A table is in 1NF if it contains only atomic (indivisible) values, and each attribute contains only a single value from its domain (no repeating groups or multi-valued attributes).

9
medium

How does Second Normal Form (2NF) differ from 1NF?

To be in 2NF, a table must first be in 1NF and all non-key attributes must be fully functionally dependent on the entire primary key, meaning no partial dependencies on a composite key.

10
medium

What is a transitive dependency, and which normal form aims to eliminate it?

A transitive dependency occurs when a non-key attribute depends on another non-key attribute rather than the primary key. Third Normal Form (3NF) aims to eliminate these.

+10 more cards — sign up to see all

Frequently Asked Questions

How many flashcards are in this Computer Science: Database Fundamentals deck?

This deck contains 20 flashcards with a mix of difficulty levels: 6 easy, 10 medium, and 4 hard cards.

Is this flashcard deck free to use?

Yes! You can study these flashcards for free with our spaced repetition system. Create a free account to track your progress and save your study history.

Can I export these flashcards to Anki?

Pro users can export any deck to Anki (.apkg format) with one click. Free users can export to CSV. Start studying for free and upgrade when you need Anki export.

What is spaced repetition?

Spaced repetition is a study technique that shows you cards at increasing intervals based on how well you know them. Cards you struggle with appear more often, while mastered cards are shown less frequently. This is proven to be one of the most effective ways to memorize information.

Related Flashcard Decks

Ready to study?

Create a free account and start studying these flashcards with spaced repetition.

Get Started — Free