Date Search Problem

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23993
interpreted = N
texte = Hi all, I've just been handed a database from a client that has been used in a perl solution until now. It's a listing of show dates for Las Vegas shows. The fields are:Show_Performer, Venue, Show_Days, Category. Now, the thing that is stumping me is how to formulate a search on the Show_Days field using the data formatting that is being used. In Vegas, shows are run for one or more days in a row, sometimes with a black day or days at some point in the week. Black days are days that the show doesn't play. So the way their data is formatted in the Show_Days field goes like this: If a show runs on Sunday and Monday of the week starting Jan 29th, the data looks like this 01-29-99:1100000 without the quotes. If a show starts on April 8 and runs consecutively for 21 days, the data looks like this 04-08-99:111111111111111111111. If the show runs continuously with black days on Wednesday and Thursday, the data looks like this C:1110011. This is obviously something that was set up by the original perl programmer and I'm guessing perl is suited to do parsing of string variables in a way that makes this workable. But I don't see how to make it happen in WebDNA. I need to have the search page allow searching for shows between a start date and an end date and not return dark days. Does this look like something that can be done in WebDNA using their data? I can request that the database structure be revised if anyone can suggest a better way to format for these parameters (start date, end date, one or more dark days). Any and all help on this will be greatly appreciated.Thanks, Mike Davis Associated Messages, from the most recent to the oldest:

    
  1. re: date search problem (Allen Booth 1999)
  2. re: date search problem (Allen Booth 1999)
  3. Date Search Problem (Mike Davis 1999)
  4. Date Search Problem (Mike Davis 1999)
Hi all, I've just been handed a database from a client that has been used in a perl solution until now. It's a listing of show dates for Las Vegas shows. The fields are:Show_Performer, Venue, Show_Days, Category. Now, the thing that is stumping me is how to formulate a search on the Show_Days field using the data formatting that is being used. In Vegas, shows are run for one or more days in a row, sometimes with a black day or days at some point in the week. Black days are days that the show doesn't play. So the way their data is formatted in the Show_Days field goes like this: If a show runs on Sunday and Monday of the week starting Jan 29th, the data looks like this 01-29-99:1100000 without the quotes. If a show starts on April 8 and runs consecutively for 21 days, the data looks like this 04-08-99:111111111111111111111. If the show runs continuously with black days on Wednesday and Thursday, the data looks like this C:1110011. This is obviously something that was set up by the original perl programmer and I'm guessing perl is suited to do parsing of string variables in a way that makes this workable. But I don't see how to make it happen in WebDNA. I need to have the search page allow searching for shows between a start date and an end date and not return dark days. Does this look like something that can be done in WebDNA using their data? I can request that the database structure be revised if anyone can suggest a better way to format for these parameters (start date, end date, one or more dark days). Any and all help on this will be greatly appreciated.Thanks, Mike Davis Mike Davis

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:

Emailer setup (1997) RE: Credit card processing - UK (1997) Creating main- and sub-category search (1997) textarea data entry and display (2000) SQL - Output into file (2004) Migrating to NT (1997) [TCPSend] and whois? (1999) OT: IE6 Back Button (2005) HELP WITH DATES (1997) Re:quit command on NT (1997) Image as submit button (2000) Revisit: speed test (2002) Deleteing Based On Dates (2002) Change in Host? (1999) [WebDNA] Handling passwords in WebDNA (2010) Opinion: [input] should be called [output] ... (1997) formulas.db ?? (1998) Firesite cache vs webcat cache (1997) emailer w/F2 (1997) Grouping search fields, etc. (1997)