MySQL Forums
Forum List  »  General

Betwenn return wrong value
Posted by: Mirko Taenzler
Date: April 14, 2005 06:05PM

Hi,

i have the current table.

legierung min_hoehe max_hoehe min_breite max_breite preis
02 0 1,5 0,0 3,5 52,90
02 0 1,5 3,1 3,5 57,00
02 0 1,5 3,6 4,0 61,10
02 0 1,5 4,1 4,5 67,70
02 0 1,5 4,6 5,0 72,50
02 0 1,5 5,1 6,0 82,10
02 0 1,5 6,1 7,0 92,40
02 0 1,5 7,1 8,0 103,10
02 0 1,5 8,1 9,0 113,10
02 0 1,5 9,1 10,0 125,30
02 0 1,5 10,1 11,0 146,00
02 0 1,5 11,1 12,0 152,40

min_hoehe, max_hoehe, min_breite and max_breite are decimal (2,1).

Tablename is "musterpreis".
If i use the following instruction it return the wrong values.

SELECT `*` FROM `musterpreis` WHERE '10.1' BETWEEN min_breite AND max_breite

This return

02 0 1,5 0,0 3,5 52,90
02 0 1,5 10,1 11,0 146,00

but i want only this

02 0 1,5 10,1 11,0 146,00

Whats wrong?

Mirko

Options: ReplyQuote


Subject
Written By
Posted
Betwenn return wrong value
April 14, 2005 06:05PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.