finding the right fitness class creating a database that does the work for you stephanie long ls 560...
TRANSCRIPT
![Page 1: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/1.jpg)
Finding the Right Fitness Class
Creating a Database that does the work for you
Stephanie LongLS 560Monday
04/14/2014
![Page 2: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/2.jpg)
My husband and I joined a local gym because they offer a multitude of fitness options, including 60+ classes. When I went to their website to find the fitness classes I wanted to attend, I found a long list of classes categorized only by day and time. The page had absolutely no search function to quickly find the classes offered. I had to scroll through the whole (long) list to determine what, when and where the facility offered classes.
The Problem
![Page 3: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/3.jpg)
The Group Fitness Page(aka: The Offender)
![Page 4: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/4.jpg)
Further Down the Group Fitness Page
![Page 5: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/5.jpg)
To achieve the goal of finding specific classes, I created a database that would allow me to search by class/keyword, time, facility, and room. I created several tables, but the Main Table, Fitness Class Schedule, linked them all together.
The Solution
![Page 6: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/6.jpg)
Other Tables
![Page 7: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/7.jpg)
Relationships
![Page 8: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/8.jpg)
To find the classes I wanted, I created a form that searched the tables and delivered the results in a query. This is the SQL for that query:
SELECT [Fitness Class Schedule].[Fitness Class], [Fitness Class Schedule].[Class Description], [Days of Week].[Day of Week], [Fitness Class Schedule].[Begin Time], [Fitness Class Schedule].[End Time], Facility.Facility, [Fitness Class Schedule].ClassroomFROM [Days of Week] INNER JOIN (Facility INNER JOIN [Fitness Class Schedule] ON Facility.[Facility Code] = [Fitness Class Schedule].[Facility Code]) ON [Days of Week].[Day of Week] = [Fitness Class Schedule].[Day of Week].ValueGROUP BY [Fitness Class Schedule].[Fitness Class], [Fitness Class Schedule].[Class Description], [Days of Week].[Day of Week], [Fitness Class Schedule].[Begin Time], [Fitness Class Schedule].[End Time], Facility.Facility, [Fitness Class Schedule].Classroom, [Fitness Class Schedule].[Description/Keywords], [Days of Week].IDHAVING ((([Fitness Class Schedule].[Begin Time]) Like "*" & [Forms]![Search Form]![Time]) AND ((Facility.Facility) Like "*" & [Forms]![Search Form]![Facility] & "*") AND (([Fitness Class Schedule].[Description/Keywords]) Like "*" & [Forms]![Search Form]![Class] & "*"))ORDER BY [Days of Week].ID;
Queries
![Page 9: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/9.jpg)
I also wanted to search what classes were held at which of the two locations. This is the resulting SQL of that query:
Classes at Macon Health Club: SELECT [Fitness Class Schedule].[Facility Code], [Fitness Class Schedule].[Fitness Class], [Fitness Class Schedule].[Day of Week].Value, [Fitness Class Schedule].[Begin Time], [Fitness Class Schedule].[End Time], [Fitness Class Schedule].Classroom, [Fitness Class Schedule].[Class Description]FROM [Fitness Class Schedule]WHERE ((([Fitness Class Schedule].[Facility Code])="MHC"))ORDER BY [Fitness Class Schedule].[Facility Code];
Classes at The Wellness Center: To discover classes at the Wellness Center, I created another query which resulted in the following SQL:
SELECT [Fitness Class Schedule].[Facility Code], [Fitness Class Schedule].[Fitness Class], [Fitness Class Schedule].[Day of Week].Value, [Fitness Class Schedule].[Begin Time], [Fitness Class Schedule].[End Time], [Fitness Class Schedule].Classroom, [Fitness Class Schedule].[Class Description]FROM [Fitness Class Schedule]WHERE ((([Fitness Class Schedule].[Facility Code])="TWC"))ORDER BY [Fitness Class Schedule].[Facility Code];
Classes at Each Facility Queries
![Page 10: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/10.jpg)
I also wanted to know which classes were held in the morning and which ones were available in the afternoon/evening. Here are the resulting SQLs:
Morning: SELECT [Fitness Class Schedule].[Begin Time], [Fitness Class Schedule].[End Time], [Fitness Class Schedule].[Day of Week].Value, [Fitness Class Schedule].[Fitness Class], [Fitness Class Schedule].[Facility Code], [Fitness Class Schedule].[Class Description]FROM [Fitness Class Schedule]WHERE ((([Fitness Class Schedule].[Begin Time]) Between #12/30/1899# And #12/30/1899 11:59:0#))ORDER BY [Fitness Class Schedule].[Begin Time];
Afternoon: SELECT [Fitness Class Schedule].[Begin Time], [Fitness Class Schedule].[End Time], [Fitness Class Schedule].[Day of Week].Value, [Fitness Class Schedule].[Fitness Class], [Fitness Class Schedule].[Facility Code], [Fitness Class Schedule].[Class Description]FROM [Fitness Class Schedule]WHERE ((([Fitness Class Schedule].[Begin Time]) Between #12/30/1899# And #12/30/1899 11:59:0#))ORDER BY [Fitness Class Schedule].[Begin Time];
Morning or Afternoon/Evening Queries
![Page 11: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/11.jpg)
New & ImprovedMock-up
SearchSearchable by Class, Time, Facility, or Classroom. Facility and Classroom are Combo Boxes that allows the users to choose from an inclusive list.
![Page 12: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/12.jpg)
Query Results
As an example, I searched for yoga classes resulting in this query
![Page 13: Finding the Right Fitness Class Creating a Database that does the work for you Stephanie Long LS 560 Monday 04/14/2014](https://reader036.vdocument.in/reader036/viewer/2022062423/5697bfe11a28abf838cb3fd4/html5/thumbnails/13.jpg)
From the form, the query generates a report of the search findings
Results of Search