Changes between Version 4 and Version 5 of UseCase003
- Timestamp:
- 05/13/26 11:54:50 (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UseCase003
v4 v5 20 20 1. User navigates to the store's catalog or search page to view available music. 21 21 22 2. System retrieves the list of {{{Releases}}} from the database, including metadata such as {{{title}}}, {{{genre}}}, and {{{record_label}}}.22 2. System retrieves the list of Releases from the database, including metadata such as title, genre, and record_label. 23 23 24 3. System matches each {{{Release}}} with its corresponding {{{Artist}}} to display the {{{artist_name}}}. 24 {{{#!div style="margin-left: 20px;" 25 {{{ 26 SELECT release_id, title, genre, record_label, release_date, cover_photo 27 FROM Release; 28 }}} 29 }}} 25 30 26 4. System identifies the specific physical {{{Product/s}}} available for each release (such as Vinyl, CD, or Cassette) along with their current {{{price}}} and {{{stock levels}}}. 31 3. System matches each Release with its corresponding Artist to display the artist_name. 32 33 {{{#!div style="margin-left: 20px;" 34 {{{ 35 SELECT r.title, a.artist_name 36 FROM Release r 37 JOIN Artist a ON r.artist_id = a.artist_id; 38 }}} 39 }}} 40 41 4. System identifies the specific physical Product/s available for each release (such as Vinyl, CD, or Cassette) along with their current price and stock levels. 42 43 {{{#!div style="margin-left: 20px;" 44 {{{ 45 SELECT release_id, format, price, stock 46 FROM Product 47 WHERE release_id = @current_release_id; 48 }}} 49 }}} 27 50 28 51 5. System displays the results to the user, formatted by the release type (Album or Single) and featuring the {{{cover_photo}}}. 52 53 {{{#!div style="margin-left: 20px;" 54 {{{ 55 SELECT release_id, 'Album' AS type FROM Album 56 UNION 57 SELECT release_id, 'Single' AS type FROM Single; 29 58 }}} 59 }}} 60 61 }}}
