Hey
using the following sql
SELECT DB_SALGSPRIS from pris_interval WHERE DB_INTERVAL_START < '11.78' AND DB_INTERVAL_END >= '11.78'
SELECT DB_CUSTOMER from pris_interval WHERE AND DB_INTERVAL_START < '7.19'AND DB_INTERVAL_END >= '7.19'
I get multiple results, 3 from first, and 2 from the second to be precise, what I am wondering about is why, because when I look at the table, using the given values. I only get 1 result, from each statement.
The results the statements give are
db_salgspris:
59.00
149.00
1099.00
db_customer
149.00
1099.00
A snip from the table is as follows:
DB_Salgspris db_interval_start db_interval_end db_customer
59 | 2 | 3 | 59
99 | 7 | 8 | 149
149 | 11 | 12 | 199
699 | 65 | 68 | 1099
1099 | 102 | 110 | 1699
What I dont get it why there are 3 results for one query, and 2 for the other, when I look at the table, I would expect only to get one, namely 99 for the first query, and 199 for the second query.
Any able to clarify this?