backendgym backendgym · reps Sign in with GitHubSign in

01Expose current collections

sql-viewing / reps/01/README.md

Create a view named current_collections with the collection ID, title and artist name of every collection that hasn't been soft-deleted. Query it, ordered by ID.

Expected: 4 rows, IDs 1, 2, 3 and 5. ID 4, Hidden Study, is missing.

After the rep
  1. 1 Inside a transaction, soft-delete collection 5 and query your view again. How many rows now, and what does that say the view stores?