Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 4 subjective questions Database Joins

CAP570 — Advanced Database Techniques 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Define a database join. Explain why joins are needed in a relational database.

  2. Question 2 of 20

    Explain the concept of a join condition. What happens when an appropriate join condition is omitted?

  3. Question 3 of 20

    Describe the working of an INNER JOIN with syntax and an appropriate example.

  4. Question 4 of 20

    Explain a LEFT OUTER JOIN. How does it differ from an INNER JOIN?

  5. Question 5 of 20

    Describe a RIGHT OUTER JOIN with an example. How can it be rewritten as a LEFT JOIN?

  6. Question 6 of 20

    Compare INNER JOIN, LEFT JOIN, and RIGHT JOIN in terms of matched and unmatched rows.

  7. Question 7 of 20

    What is a SELF JOIN? Explain its use with an employee-manager relationship.

  8. Question 8 of 20

    Construct and explain a query using a SELF JOIN to find pairs of employees who work in the same department.

  9. Question 9 of 20

    Explain how joins are performed across three tables. Develop a query that displays customers, their orders, and the products ordered.

  10. Question 10 of 20

    Discuss the effect of placing a filter condition in the ON clause versus the WHERE clause of a LEFT JOIN.

  11. Question 11 of 20

    Define a database view. Explain its major characteristics and uses.

  12. Question 12 of 20

    Explain how to create, query, replace, and delete a view using SQL commands.

  13. Question 13 of 20

    Distinguish between a view and a base table.

  14. Question 14 of 20

    What is an updatable view? Discuss the conditions that commonly determine whether a view can be updated.

  15. Question 15 of 20

    Define a database transaction and explain the ACID properties.

  16. Question 16 of 20

    Explain the purposes of COMMIT, ROLLBACK, and SAVEPOINT in transactional control.

  17. Question 17 of 20

    Develop a transaction for transferring an amount between two bank accounts. Explain how errors should be handled.

  18. Question 18 of 20

    Explain transaction states from the beginning of a transaction until it is committed or rolled back.

  19. Question 19 of 20

    Discuss common concurrency problems in transactions and explain how transaction isolation helps control them.

  20. Question 20 of 20

    Explain how joins, views, and transactions can be combined in a database application. Illustrate with an order-processing scenario.

That's unit 4

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.