Advanced SQL

Q. In a DBMS architecture, what does the term 'data independence' refer to?
  • A. The ability to change the data structure without affecting the application
  • B. The ability to access data from multiple sources
  • C. The ability to store data in different formats
  • D. The ability to secure data from unauthorized access
Q. In an ER diagram, what does a diamond shape represent?
  • A. Entity
  • B. Attribute
  • C. Relationship
  • D. Weak entity
Q. In an ER model, what does a diamond shape represent?
  • A. Entity
  • B. Attribute
  • C. Relationship
  • D. Weak Entity
Q. In DBMS architecture, what does the term 'physical data independence' refer to?
  • A. The ability to change the logical schema without changing the physical schema
  • B. The ability to change the physical storage without affecting the logical schema
  • C. The ability to access data from multiple sources
  • D. The ability to enforce security measures
Q. In SQL, which clause is used to filter records after grouping?
  • A. WHERE
  • B. HAVING
  • C. GROUP BY
  • D. ORDER BY
Q. In the context of DBMS architecture, what does 'three-tier architecture' refer to?
  • A. Data, Application, Presentation
  • B. Client, Server, Database
  • C. User, Application, Database
  • D. Data, Logic, User Interface
Q. What does the term 'concurrency control' refer to in a DBMS?
  • A. Managing multiple database connections
  • B. Ensuring data consistency during simultaneous transactions
  • C. Optimizing query performance
  • D. Backing up data
Q. What is a foreign key in a relational database?
  • A. A key that uniquely identifies a record
  • B. A key that links two tables together
  • C. A key that is used for indexing
  • D. A key that is automatically generated
Q. What is the main purpose of indexing in a database?
  • A. To store data
  • B. To enforce data integrity
  • C. To speed up data retrieval
  • D. To manage transactions
Q. What is the purpose of a foreign key in a relational database?
  • A. To uniquely identify a record
  • B. To create a relationship between two tables
  • C. To enforce data integrity
  • D. All of the above
Q. What is the purpose of normalization in a database?
  • A. To increase redundancy
  • B. To eliminate data anomalies
  • C. To improve query performance
  • D. To simplify database design
Q. What is the purpose of the 'GROUP BY' clause in SQL?
  • A. To sort the result set
  • B. To aggregate data across multiple records
  • C. To filter records
  • D. To join multiple tables
Q. Which normal form eliminates transitive dependencies?
  • A. First Normal Form (1NF)
  • B. Second Normal Form (2NF)
  • C. Third Normal Form (3NF)
  • D. Boyce-Codd Normal Form (BCNF)
Q. Which of the following is a characteristic of a transaction in a database?
  • A. Atomicity
  • B. Redundancy
  • C. Isolation
  • D. Both Atomicity and Isolation
Q. Which of the following is a characteristic of a transaction in a DBMS?
  • A. Atomicity
  • B. Redundancy
  • C. Isolation
  • D. Both Atomicity and Isolation
Q. Which of the following is NOT a type of join in SQL?
  • A. INNER JOIN
  • B. OUTER JOIN
  • C. CROSS JOIN
  • D. LINK JOIN
Q. Which SQL clause is used to filter records in a query?
  • A. ORDER BY
  • B. GROUP BY
  • C. WHERE
  • D. HAVING
Q. Which SQL statement is used to remove a table from a database?
  • A. DELETE TABLE
  • B. DROP TABLE
  • C. REMOVE TABLE
  • D. ALTER TABLE
Showing 1 to 18 of 18 (1 Pages)