What are creational design patterns?
Patterns focused on object creation mechanisms, e.g., Singleton, Factory Method.
What are structural design patterns?
Patterns dealing with class and object composition, e.g., Adapter, Composite.
What are behavioral design patterns?
Patterns addressing communication between objects, e.g., Observer, Strategy.
What are design patterns?
Reusable solutions to common problems in software design.
What is a database?
A structured collection of data.
What is DBMS?
Software to manage databases.
What is RDBMS?
A DBMS with a table-based structure.
What is one advantage of DBMS?
Data consistency and integrity.
How is SQL Server Management Studio installed?
By downloading the setup file, running the installer, and following configuration prompts.
What is the role of a primary key?
To uniquely identify each record in a table.
What is a primary key?
A key that uniquely identifies each record.
What is a foreign key?
A key that links two tables.
What are arithmetic operators in SQL?
+, -, *, /, %.
Name one DML command.
INSERT.
How do SQL operators differ?
Arithmetic operators perform calculations, comparison operators compare values, and logical operators combine conditions.
What is the difference between DELETE and DROP?
DELETE removes rows from a table; DROP deletes the table itself.
What does DDL stand for?
Data Definition Language.
Name a TCL command.
COMMIT.
What is the role of constraints in SQL?
To enforce rules on data in tables.
What are the types of constraints?
Not Null, Check, Unique, Primary Key, Foreign Key.
What is the purpose of ROLLBACK?
To undo changes made during a transaction.
What is an inner join?
A join that matches rows with common values.
What does the SUM() function do?
Adds numeric values in a column.
What is a cross join?
A join that produces the Cartesian product of two tables.
What is the difference between LEFT JOIN and RIGHT JOIN?
LEFT JOIN includes all rows from the left table, RIGHT JOIN includes all rows from the right table.
How are aggregate functions used?
To perform calculations on multiple rows, e.g., COUNT, AVG.
What is a stored procedure?
A reusable SQL query with parameters.
What is a trigger in SQL?
A set of instructions executed automatically in response to DML events.
What is the purpose of a trigger?
To enforce business rules or validations.
How do input and output parameters work in stored procedures?
Input parameters pass values; output parameters return results.
What do stored procedures encapsulate?
SQL logic for reuse and maintainability.
What do triggers automate?
Responses to table events, ensuring data integrity or enforcing rules during transactions.
What is a view in SQL?
A virtual table created from an SQL query.
What is the purpose of indexing?
To improve query performance.
What is a clustered index?
An index that sorts data rows in the table.
How does a view simplify queries?
By encapsulating complex SQL logic into a virtual table.
What is the difference between clustered and non-clustered indexes?
Clustered indexes sort data rows; non-clustered indexes provide pointers to data.
What is the goal of normalization?
To reduce data redundancy and improve data integrity.
What is the first normal form (1NF)?
A table with no repeating groups.
What is the third normal form (3NF)?
A table in 2NF with no transitive dependencies.
Why is normalization important?
It ensures the database is efficient and free of anomalies.
What is the difference between 1NF and 2NF?
1NF eliminates repeating groups; 2NF eliminates partial dependencies.
What does normalization structure a database to minimize?
Redundancy and dependency.
What do databases achieve by organizing data into normalized forms?
Efficiency and data consistency, avoiding anomalies.
What are creational design patterns?
Patterns focused on object creation mechanisms, e.g., Singleton, Factory Method.
What are structural design patterns?
Patterns dealing with class and object composition, e.g., Adapter, Composite.
What are behavioral design patterns?
Patterns addressing communication between objects, e.g., Observer, Strategy.
How is SQL Server Management Studio installed?
By downloading the setup file, running the installer, and following configuration prompts.
How do SQL operators differ?
Arithmetic operators perform calculations, comparison operators compare values, and logical operators combine conditions.
What is the difference between DELETE and DROP?
DELETE removes rows from a table; DROP deletes the table itself.
What is the difference between LEFT JOIN and RIGHT JOIN?
LEFT JOIN includes all rows from the left table, RIGHT JOIN includes all rows from the right table.
How do input and output parameters work in stored procedures?
Input parameters pass values; output parameters return results.
What do triggers automate?
Responses to table events, ensuring data integrity or enforcing rules during transactions.
What is the difference between clustered and non-clustered indexes?
Clustered indexes sort data rows; non-clustered indexes provide pointers to data.
What is the difference between 1NF and 2NF?
1NF eliminates repeating groups; 2NF eliminates partial dependencies.
What do databases achieve by organizing data into normalized forms?
Efficiency and data consistency, avoiding anomalies.
Are you sure you want to delete 0 flashcard(s)? This cannot be undone.
Select tags to remove from 0 selected flashcard(s):
Loading tags...