sql beginning

    Master this deck with 21 terms through effective study methods.

    Generated from YouTube video

    Created by @ganesh

    What is data?

    Any kind of information, including personal details.

    Why is data important for companies?

    It helps in compliance, auditing, and gaining insights.

    What is a database?

    A container used to store data.

    What is SQL?

    A language used to communicate with databases.

    How does SQL differ from NoSQL?

    SQL is structured and relational, while NoSQL is flexible and non-relational.

    What is a primary key?

    A unique identifier for records in a table.

    What is a foreign key?

    A field that links to a primary key in another table.

    What is normalization?

    The process of organizing data to reduce redundancy.

    What is a view in SQL?

    A virtual table based on the result of a SELECT query.

    What is the purpose of a database management system (DBMS)?

    To manage and handle requests to the database.

    What are the types of SQL commands?

    DDL, DML, DQL, and DCL.

    What is a transaction in SQL?

    A sequence of operations performed as a single logical unit.

    What is the difference between a clustered and a non-clustered index?

    Clustered indexes sort and store data rows, while non-clustered indexes store a pointer to the data.

    What is a stored procedure?

    A precompiled collection of SQL statements.

    What is a trigger in SQL?

    A set of instructions that automatically execute in response to certain events.

    What is the purpose of using joins in SQL?

    To combine rows from two or more tables based on a related column.

    What is the difference between INNER JOIN and LEFT JOIN?

    INNER JOIN returns matching rows, while LEFT JOIN returns all rows from the left table and matched rows from the right.

    What is a subquery?

    A query nested inside another query.

    What is the purpose of GROUP BY in SQL?

    To arrange identical data into groups.

    What is an aggregate function?

    A function that performs a calculation on a set of values and returns a single value.

    What is the purpose of the HAVING clause?

    To filter records after aggregation.