multi-table date sort problem thingy
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45395
interpreted = N
texte = Long one. Ready?One of our clients has an events database, in three tables:Table 1 is an Artists database which contains only names:Cosby, BillCirque Eloize,Miami City BalletThis table is used to generate a select menu for users to search for aspecific performer.Table 2 is the actual Event db with, among other fields, Billing (whichreplicates what's in the artist db - there is a reason, don't worry),Description, Underwriter, etc.Table 3 is the performance dates table.So...If I search for Bill Cosby from the select menu, that name is sent tothe next page to look for a match in the Billing field of the events.db.Using the SKU (primary key) for that event, it looks for all relatedperformances in the performance db and lists them in chronological order.This works perfectly when there is one match for the first part of thesearch. Example:Bill CosbyApril 17, 2003, 7PMBill CosbyApril 18, 2003, 3 PMBill Cosby April 18, 2003, 7 PMHowever, when more than one match is made on the FIRST part of the search, Ican't sort by date properly. For instance, the Miami City Ballet has 5separate, unrelated shows, some with multiple performances. So, in mysearch results, I get chronological listings *within each event* but notoverall. As below:Miami City Ballet #3: Coppélia: Ballet¹s Comic MasterpieceMarch 18, 2003, 8 p.m.March 19, 2003, 8 p.m.The Neighborhood BallroomDecember 11, 2002, 8 p.m.Miami City Ballet #1: Some Balanchine HeroesJanuary 14, 2003, 8 p.m.January 15, 2003, 8 p.m.George Balanchine's The NutcrackerNovember 27, 2002, 8 p.m.November 29, 2002, 8 p.m.November 30, 2002, 8 p.m.November 30, 2002, 2 p.m.December 01, 2002, 2 p.m.December 01, 2002, 7 p.m.In the example above, you can see that The Nutcracker, with all of itsdates, should be FIRST on the list, followed by The Neighborhood Ballroom,Balanchine's Heroes, and Comic Masterpiece.Because the performance dates are in a separate table, I have no way toperform a sort on the order in which these events come up, rather only forthe dates FOR each event.Does anyone understand my problem? If so, are there suggestions for how Ican address this? TIA-- Patrick Junkroski http://www.vsm.net(239) 642.0304-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Long one. Ready?One of our clients has an events database, in three tables:Table 1 is an Artists database which contains only names:Cosby, BillCirque Eloize,Miami City BalletThis table is used to generate a select menu for users to search for aspecific performer.Table 2 is the actual Event db with, among other fields, Billing (whichreplicates what's in the artist db - there is a reason, don't worry),Description, Underwriter, etc.Table 3 is the performance dates table.So...If I search for Bill Cosby from the select menu, that name is sent tothe next page to look for a match in the Billing field of the events.db.Using the SKU (primary key) for that event, it looks for all relatedperformances in the performance db and lists them in chronological order.This works perfectly when there is one match for the first part of thesearch. Example:Bill CosbyApril 17, 2003, 7PMBill CosbyApril 18, 2003, 3 PMBill Cosby April 18, 2003, 7 PMHowever, when more than one match is made on the FIRST part of the search, Ican't sort by date properly. For instance, the Miami City Ballet has 5separate, unrelated shows, some with multiple performances. So, in mysearch results, I get chronological listings *within each event* but notoverall. As below:Miami City Ballet #3: Coppélia: Ballet¹s Comic MasterpieceMarch 18, 2003, 8 p.m.March 19, 2003, 8 p.m.The Neighborhood BallroomDecember 11, 2002, 8 p.m.Miami City Ballet #1: Some Balanchine HeroesJanuary 14, 2003, 8 p.m.January 15, 2003, 8 p.m.George Balanchine's The NutcrackerNovember 27, 2002, 8 p.m.November 29, 2002, 8 p.m.November 30, 2002, 8 p.m.November 30, 2002, 2 p.m.December 01, 2002, 2 p.m.December 01, 2002, 7 p.m.In the example above, you can see that The Nutcracker, with all of itsdates, should be FIRST on the list, followed by The Neighborhood Ballroom,Balanchine's Heroes, and Comic Masterpiece.Because the performance dates are in a separate table, I have no way toperform a sort on the order in which these events come up, rather only forthe dates FOR each event.Does anyone understand my problem? If so, are there suggestions for how Ican address this? TIA-- Patrick Junkroski http://www.vsm.net(239) 642.0304-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
PatrickJ
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Date problems-more (1997)
[WebDNA] Brian Harrington (2019)
Sort Order on a page search (1997)
Listfiles and nothing found (2001)
What's New Date (2002)
RE: Problems reading files created by WC (1997)
World Address Info (2003)
WebCat & WebTen (1997)
Math with Time (1997)
DB Emergency (2002)
Plugin or CGI or both (1997)
FEA REQ: One .hdr, multiple .db's (2003)
Need help with emailer- 2 issues (1997)
Buying sans cart (1997)
2cd pair.. [math] and European Date format (2004)
[url] (1997)
HTML Editors (1997)
[WebDNA] Is a '.webdna' suffix better? (2008)
Re:Signal Raised (1997)
RE: Problems with shopping cart (1997)