Bash, the Crucial Exams Chat Bot
AI Bot

Database Management and SQL Flashcards

What is the difference between TRUNCATE and DELETE in SQL
WHERE
What is ACID in database transactions
TRUNCATE removes all rows without logging individual row deletions while DELETE logs each row removal and can include a WHERE clause
Which SQL statement is used to update existing data in a table
UPDATE
Groups rows that share the same values in specified columns into summary rows
What does the GROUP BY clause do in SQL
Which clause is used to filter records in a SQL query
What is a composite key
Atomicity Consistency Isolation Durability
A key that consists of two or more columns to uniquely identify a record
FrontBack
Explain the purpose of the DISTINCT keyword in SQLIt removes duplicate records from the result set
Give an example of a DDL (Data Definition Language) statement in SQLCREATE DROP or ALTER
Name the first normal formA table structure with no repeating groups and each field contains only atomic values
Name the second normal formA table in first normal form where all non-key columns are fully functional dependent on the primary key
Name the types of SQL joinsINNER JOIN LEFT JOIN RIGHT JOIN FULL OUTER JOIN
What does SQL stand forStructured Query Language
What does the GROUP BY clause do in SQLGroups rows that share the same values in specified columns into summary rows
What is a composite keyA key that consists of two or more columns to uniquely identify a record
What is a cursor in SQLA database object used to retrieve navigate and manipulate rows in a result set
What is a data warehouseA system used for reporting and data analysis
What is a foreign keyA field that creates a relationship between two tables
What is a JOIN in SQLA clause used to combine rows from two or more tables based on a related column
What is a primary key in a relational databaseA unique identifier for each record in a table
What is a schema in a databaseThe structure that defines the organization of data in the database
What is a stored procedureA precompiled collection of SQL statements stored in the database
What is a subquery in SQLA query nested inside another SQL query
What is a surrogate keyA unique identifier for an entity, not derived from application data
What is a transaction in databasesA sequence of operations performed as a single logical unit of work
What is a trigger in SQLA procedure that automatically executes in response to certain events on a table or view
What is a view in SQLA virtual table based on the result set of an SQL statement
What is ACID in database transactionsAtomicity Consistency Isolation Durability
What is an index in a databaseA data structure that improves the speed of data retrieval
What is denormalizationThe process of adding redundant data to a database for performance improvement
What is normalizationThe process of organizing data to minimize redundancy
What is referential integrityEnsures relationships between tables remain consistent through foreign keys
What is SQL injectionA code injection technique that might destroy a database
What is the difference between TRUNCATE and DELETE in SQLTRUNCATE removes all rows without logging individual row deletions while DELETE logs each row removal and can include a WHERE clause
What is the HAVING clause used for in SQLUsed to filter result sets after applying aggregate functions such as SUM or COUNT
Which clause is used to filter records in a SQL queryWHERE
Which clause is used to sort the result-set in SQLORDER BY
Which SQL statement is used to delete data from a tableDELETE FROM
Which SQL statement is used to insert new data into a tableINSERT INTO
Which SQL statement is used to remove a table definition and its data from the databaseDROP
Which SQL statement is used to retrieve data from a databaseSELECT
Which SQL statement is used to update existing data in a tableUPDATE
Front
What is a stored procedure
Click the card to flip
Back
A precompiled collection of SQL statements stored in the database
Front
What does the GROUP BY clause do in SQL
Back
Groups rows that share the same values in specified columns into summary rows
Front
Which clause is used to sort the result-set in SQL
Back
ORDER BY
Front
What is referential integrity
Back
Ensures relationships between tables remain consistent through foreign keys
Front
Name the first normal form
Back
A table structure with no repeating groups and each field contains only atomic values
Front
What is denormalization
Back
The process of adding redundant data to a database for performance improvement
Front
What is a surrogate key
Back
A unique identifier for an entity, not derived from application data
Front
What is the difference between TRUNCATE and DELETE in SQL
Back
TRUNCATE removes all rows without logging individual row deletions while DELETE logs each row removal and can include a WHERE clause
Front
What is the HAVING clause used for in SQL
Back
Used to filter result sets after applying aggregate functions such as SUM or COUNT
Front
What is a composite key
Back
A key that consists of two or more columns to uniquely identify a record
Front
What is a subquery in SQL
Back
A query nested inside another SQL query
Front
Which SQL statement is used to retrieve data from a database
Back
SELECT
Front
What is a view in SQL
Back
A virtual table based on the result set of an SQL statement
Front
What is SQL injection
Back
A code injection technique that might destroy a database
Front
Name the second normal form
Back
A table in first normal form where all non-key columns are fully functional dependent on the primary key
Front
Give an example of a DDL (Data Definition Language) statement in SQL
Back
CREATE DROP or ALTER
Front
What is a cursor in SQL
Back
A database object used to retrieve navigate and manipulate rows in a result set
Front
Which SQL statement is used to delete data from a table
Back
DELETE FROM
Front
What is ACID in database transactions
Back
Atomicity Consistency Isolation Durability
Front
What is a primary key in a relational database
Back
A unique identifier for each record in a table
Front
Which SQL statement is used to update existing data in a table
Back
UPDATE
Front
What is a data warehouse
Back
A system used for reporting and data analysis
Front
What does SQL stand for
Back
Structured Query Language
Front
What is normalization
Back
The process of organizing data to minimize redundancy
Front
Which SQL statement is used to insert new data into a table
Back
INSERT INTO
Front
What is a schema in a database
Back
The structure that defines the organization of data in the database
Front
What is a foreign key
Back
A field that creates a relationship between two tables
Front
Which clause is used to filter records in a SQL query
Back
WHERE
Front
What is an index in a database
Back
A data structure that improves the speed of data retrieval
Front
Name the types of SQL joins
Back
INNER JOIN LEFT JOIN RIGHT JOIN FULL OUTER JOIN
Front
What is a trigger in SQL
Back
A procedure that automatically executes in response to certain events on a table or view
Front
What is a JOIN in SQL
Back
A clause used to combine rows from two or more tables based on a related column
Front
What is a transaction in databases
Back
A sequence of operations performed as a single logical unit of work
Front
Which SQL statement is used to remove a table definition and its data from the database
Back
DROP
Front
Explain the purpose of the DISTINCT keyword in SQL
Back
It removes duplicate records from the result set
1/35
Gain knowledge of fundamental database management concepts, including relational databases, SQL queries, normalization, and database optimization techniques.
Share on...
Follow us on...