Q1
True / FalseSQL stands for Structured Query Language.
SQL is an acronym for Structured Query Language, which is used for managing and manipulating relational databases.
Q2
True / FalseSQL is a programming language designed for querying and modifying databases.
SQL is specifically designed for querying, updating, and managing data in relational database management systems (RDBMS), including PostgreSQL.
Q3
True / FalseSQL cannot be used to delete data from a database.
SQL includes the DELETE statement, which is used to remove records from a table in a database.
Q4
True / FalseSQL commands are divided into categories such as DDL, DML, DCL, and TCL.
SQL commands are categorized into Data Definition Language (DDL), Data Manipulation Language (DML), Data Control Language (DCL), and Transaction Control Language (TCL) to organize their different functions.
Q5
True / FalseIn PostgreSQL, SQL is used to create and manage tables.
SQL in PostgreSQL can be used to create, alter, and drop tables, as well as define their structure using DDL commands like CREATE TABLE and ALTER TABLE.
Q6
True / FalseSQL is case-sensitive in PostgreSQL, meaning that SELECT and select are treated differently.
SQL is generally case-insensitive in PostgreSQL, so SELECT and select are treated the same. However, identifiers like table and column names are case-sensitive unless quoted.
Q7
True / FalseSQL in PostgreSQL can be used to perform complex transactions that include multiple statements executed as a single unit of work.
PostgreSQL supports transactions, allowing multiple SQL statements to be executed as a single unit using BEGIN, COMMIT, and ROLLBACK.
Q8
True / FalseSQL functions in PostgreSQL can include control-of-flow statements such as IF and LOOP.
SQL functions in PostgreSQL support procedural extensions (PL/pgSQL) that include control-of-flow statements like IF, LOOP, WHILE, etc.
Q9
True / FalseSQL in PostgreSQL does not support recursive queries.
PostgreSQL supports recursive queries using Common Table Expressions (CTEs) with the WITH RECURSIVE clause, allowing queries to reference their own output.
Q10
True / FalseIn PostgreSQL, the EXPLAIN statement in SQL is used to display the execution plan of a query.
The EXPLAIN statement in PostgreSQL is used to show the execution plan of a query, providing insights into how the database will execute the query and helping with performance optimization.