Re: Help with database strategy
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 18086
interpreted = N
texte = Since I need to track actual inventory counts for each date on each hotel,I'm going to be forced into creating a database with several hundred fieldsper record I beleive. So my current strategy is to use a record per hoteland a single field per date. I think I've settled on using the numericvalue of the date to label each inventory date field. So my database wouldlook like the following:Hotel_ID 729909 729910 729911 729912 729913 729914 ...etcHyatt 5 5 5 0 0 0 ...etcRamada 15 6 8 24 0 36 ...etc...etcWhere as the 729909 represents the # of days since 00/00/000 and the cellsbelow represent that day's level of inventory per hotel.I've never used WebDNA to try to create the names of the fields to searchin so excuse me if I'm screwing this all up...First I'd like to create a series of pull downs that would allow a user toconstuct a start date for the search (June 04 1998) then I'd convert thosepulldowns to a numeric value (7299090) which identifies the first fieldname to do a greater than 0 comparison. Now there would be anotherpulldown asking the customer to indicate how many total nights they wouldbe staying (1-15). Any ideas on how to take that value and generate theadditional field searches?In the case of the customer arriving on June 05 1998 and staying for threenights, I'd need to create code that would end up functioning like this: