Your GAA club has a list of fixtures. Can a visitor find just the venue they need?
Your GAA club wants a fixture finder on its website. A visitor chooses camogie and wants to see where it's on. You already have a list of fixtures. How would you save that list so the site can find the right venue?
You already have two columns: event and venue. Hurling is in Ennis, camogie is in Galway, and football is in Cork. The visitor needs to find where their chosen event is on. Here's a requirement you can test: choosing camogie should show Galway and leave out Ennis and Cork.
When you save the fixture list as fixtures dot C S V, the whole named item is the file. The camogie row is one record because it keeps the details of one fixture together. Venue is a field, which means one kind of detail. Galway is its value in this record.
Which option shows one complete record for the camogie fixture? Pick the option that contains both values from that row, in the same order as in the list.
In the project folder, make a folder called data. Save a plain text file there as fixtures dot C S V. Type Event, comma, Venue. On separate lines, type Hurling, comma, Ennis; Camogie, comma, Galway; and Football, comma, Cork. To reopen it, follow that relative path from the project folder.
You're back in the project folder. This time, the file is called results dot C S V, and it's saved inside a folder called reports. Pick the path that opens it from where you are.
For the full schedule, read every record and display every event and venue. For camogie only, check the event field as you read each record. Display the event and venue only when the event is camogie. A simple scan still checks every record so you don't miss a match.
Here's a wording slip in a design explanation: calling the camogie row a database. That row describes one fixture, so call it a record. Galway is a value in its venue field. The named item that stores the whole list is the CSV file.
In SQLite, create a Fixtures table. Use a unique whole-number ID for each fixture and store the event and venue as text. Insert the three fixture records. Then ask for the event and venue where the event is camogie. You get one row: Camogie, Galway.