in reply to Data structure advice
Then, the first value returned is the one you want. (Since the values are in descending order, the last measurement before the time specified is the first one returned.)SELECT pressure FROM baro_over_time WHERE time_measured < ? ORDER BY time_measured DESC
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Data structure advice
by b10m (Vicar) on Jan 05, 2004 at 15:09 UTC | |
|
Re: Re: Data structure advice
by robinbowes (Beadle) on Jan 05, 2004 at 15:14 UTC | |
by dragonchild (Archbishop) on Jan 05, 2004 at 15:17 UTC | |
by robinbowes (Beadle) on Jan 05, 2004 at 15:25 UTC | |
by duff (Parson) on Jan 05, 2004 at 15:28 UTC | |
by robinbowes (Beadle) on Jan 05, 2004 at 15:33 UTC | |
by Abigail-II (Bishop) on Jan 05, 2004 at 16:16 UTC | |
by duff (Parson) on Jan 05, 2004 at 20:02 UTC | |
by Abigail-II (Bishop) on Jan 05, 2004 at 20:55 UTC | |
|
Re: Re: Data structure advice
by robinbowes (Beadle) on Jan 06, 2004 at 23:03 UTC | |
by dragonchild (Archbishop) on Jan 07, 2004 at 12:52 UTC |