Answered by:
Track and Field Database

Question
-
I'm a newbie in db design but have been asked to try to figure out a way to use access or sql server to track my daughters' track and fields team's stats.
I haven't found a decent (free) app so I thought I'd try to do something, as simplistic as possible, to track these things. Her team also holds meets, so would have to track multiple teams.
So there would be meets.
With meets, there would be teams.
On teams there would be athletes. Athletes would have personal information about themselves, and stats like events they've done with their times/distances input as well.
Some of the useful reports the team will use are: each athletes progress over time, teams performance over various meets, etc, etc.
Does anyone know of a sql script that can be used to accomplish this? I can write queries for the reports but creating the tables and associating them is where I'm having issues.
Any help is appreciated.
Thank you.
Tuesday, December 22, 2015 8:28 PM
Answers
-
Create table Athlets contain all info about them, last name, first name, address and etc. Also you have to add teamid references to teams table
Create table teams contain info about the teams , teamid, teamname
Create table events,....
Best Regards,Uri Dimant SQL Server MVP, http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting: Large scale of database and data cleansing
Remote DBA Services: Improves MS SQL Database Performance
SQL Server Integration Services: Business Intelligence
- Proposed as answer by Lydia ZhangMicrosoft contingent staff Thursday, December 24, 2015 2:50 AM
- Marked as answer by Lydia ZhangMicrosoft contingent staff Thursday, December 31, 2015 6:56 AM
Wednesday, December 23, 2015 7:41 AM -
Hi DCToronto,
Adding to other post, you need to create foreign fey relationships among these tables in order to associate rows of one table with rows of another. For more details about how to create foreign fey, please review the examples in the following articles.
Create Foreign Key Relationships
https://msdn.microsoft.com/en-us/library/ms189049(v=sql.120).aspxSQL SERVER – 2008 – Creating Primary Key, Foreign Key and Default Constraint
http://blog.sqlauthority.com/2008/09/08/sql-server-%E2%80%93-2008-creating-primary-key-foreign-key-and-default-constraint/Thanks,
Lydia ZhangLydia Zhang
TechNet Community Support- Proposed as answer by Lydia ZhangMicrosoft contingent staff Wednesday, December 30, 2015 6:11 AM
- Marked as answer by Lydia ZhangMicrosoft contingent staff Thursday, December 31, 2015 6:56 AM
Thursday, December 24, 2015 2:58 AM
All replies
-
Create table Athlets contain all info about them, last name, first name, address and etc. Also you have to add teamid references to teams table
Create table teams contain info about the teams , teamid, teamname
Create table events,....
Best Regards,Uri Dimant SQL Server MVP, http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting: Large scale of database and data cleansing
Remote DBA Services: Improves MS SQL Database Performance
SQL Server Integration Services: Business Intelligence
- Proposed as answer by Lydia ZhangMicrosoft contingent staff Thursday, December 24, 2015 2:50 AM
- Marked as answer by Lydia ZhangMicrosoft contingent staff Thursday, December 31, 2015 6:56 AM
Wednesday, December 23, 2015 7:41 AM -
Hi DCToronto,
Adding to other post, you need to create foreign fey relationships among these tables in order to associate rows of one table with rows of another. For more details about how to create foreign fey, please review the examples in the following articles.
Create Foreign Key Relationships
https://msdn.microsoft.com/en-us/library/ms189049(v=sql.120).aspxSQL SERVER – 2008 – Creating Primary Key, Foreign Key and Default Constraint
http://blog.sqlauthority.com/2008/09/08/sql-server-%E2%80%93-2008-creating-primary-key-foreign-key-and-default-constraint/Thanks,
Lydia ZhangLydia Zhang
TechNet Community Support- Proposed as answer by Lydia ZhangMicrosoft contingent staff Wednesday, December 30, 2015 6:11 AM
- Marked as answer by Lydia ZhangMicrosoft contingent staff Thursday, December 31, 2015 6:56 AM
Thursday, December 24, 2015 2:58 AM