Recent PostsRecent Posts Popular TopicsPopular Topics
 Home Search Members Calendar Who's On

 The Bowling Challenge Rate Topic Display Mode Topic Options
Author
 Message
 Posted Friday, July 16, 2004 9:38 AM
 SSCertifiable Group: Moderators Last Login: Yesterday @ 2:42 PM Points: 6,598, Visits: 1,522
Post #126691
 Posted Thursday, July 22, 2004 3:40 AM
 SSC Eights! Group: General Forum Members Last Login: Wednesday, December 04, 2013 9:14 AM Points: 804, Visits: 170
 Hi Andy, I have some questions  :- Can there be multiple games for 1 UserId in the table ? And if so, should the procedure only list the score of the last game ?- The inserts in your article all uses FrameNumber = 1. Is it up to the stored prcoedure to correct this, are is it a copy/paste mistake in the article ?Greetings,Bert De Haes
Post #127600
 Posted Thursday, July 22, 2004 5:49 AM
 Hall of Fame Group: General Forum Members Last Login: Yesterday @ 2:47 AM Points: 3,127, Visits: 1,540
 Also:- can we assume that scores are entered in sequence, ie the RowID can be used to get the order that balls were thrown?- will the table hold the scores for more than one player? -----@jameslean
Post #127638
 Posted Thursday, July 22, 2004 6:23 AM
 SSC-Enthusiastic Group: General Forum Members Last Login: Wednesday, November 27, 2013 6:59 AM Points: 144, Visits: 198
 I think your sample data in the artice has a typo. Should the last two entries use values of (1,2,4) instead of (1,1,4).Additionally, how do you intend to represent bonus balls in the tenth. If I bowl a 300, I throw three balls in the tenth frame. Sometimes bowlers refer to these extra balls as the eleventh and twelfth frames.Would the values be three sets of (1, 10, 10) or would they be (1, 10, 10), (1, 11, 10), and (1, 12, 10)?I can deal with either methodology. I just need to know what the test data will look like.
Post #127643
 Posted Thursday, July 22, 2004 8:19 AM
 SSC-Dedicated Group: Administrators Last Login: 2 days ago @ 5:42 PM Points: 32,275, Visits: 14,529
 great questions. Ones I han't thought of. I'll ping Andy for some clarification. Follow me on Twitter: @way0utwestForum Etiquette: How to post data/code on a forum to get the best help
Post #127683
 Posted Thursday, July 22, 2004 8:29 AM
 SSC Veteran Group: General Forum Members Last Login: Thursday, November 07, 2013 11:40 AM Points: 289, Visits: 65
 I think the table should also have a GameNumber column so you can track the frames properly for each user if they bowl multiple games on the same day. The greatest obstacle to transforming the world is that we lack the clarity and imagination to conceive that it could be different. -- Roberto Unger
Post #127686
 Posted Thursday, July 22, 2004 10:30 AM
 SSC-Addicted Group: General Forum Members Last Login: Yesterday @ 2:11 AM Points: 468, Visits: 1,018
 Are there any restrictions on which version of SQL can be used to solve this problem?
Post #127729
 Posted Thursday, July 22, 2004 12:32 PM
 Ten Centuries Group: General Forum Members Last Login: Thursday, December 05, 2013 8:25 AM Points: 1,137, Visits: 693
 What should the output look like if the last frame bowled was a strike and it wasn't the 10th frame? A NULL, maybe?Frame 5 NULLOr something else? Standardized output will make it easier for you to programatically test solutions, if that's your plan... --Adam MachanicSQL Server MVPSQLblog.com: THE SQL Server Blog Spot on the Web
Post #127761
 Posted Thursday, July 22, 2004 1:24 PM
 Forum Newbie Group: General Forum Members Last Login: Wednesday, April 09, 2008 7:08 PM Points: 7, Visits: 10
 two questions: 1. should we compensate for incomplete games, or assume the games are always going to consist of 10 frames?2. do you want error checking/handling for invalid scores (scores over 10) being entered?
Post #127770
 Posted Thursday, July 22, 2004 1:36 PM
 Ten Centuries Group: General Forum Members Last Login: Thursday, December 05, 2013 8:25 AM Points: 1,137, Visits: 693
 Getanothername, wouldn't you expect error checking to be handled by constraints rather than the query to select the data? --Adam MachanicSQL Server MVPSQLblog.com: THE SQL Server Blog Spot on the Web
Post #127772

 Permissions