awalkinthepark
asked on
SQL not returning values that are in a table - datatype issue?
This statement returns all rows:
Select column12 from mytable
Column12 datatype is "real"
From this, I pick a random value from in the rows returned:
for example, -1.399726E+08
copy an paste it into an this :
Select column12 from mytable where column12 =-1.399726E+08
This returns a null, no row found and returned
Is the query value I'm seeing in the intial query, ( -1.399726E+08 ) not exactly what's in the table?
What's going in here?
Thanks
Select column12 from mytable
Column12 datatype is "real"
From this, I pick a random value from in the rows returned:
for example, -1.399726E+08
copy an paste it into an this :
Select column12 from mytable where column12 =-1.399726E+08
This returns a null, no row found and returned
Is the query value I'm seeing in the intial query, ( -1.399726E+08 ) not exactly what's in the table?
What's going in here?
Thanks
This should be work like this as well
Select column12 from mytable where column12 ='-1.399726E+08'
Select column12 from mytable where column12 ='-1.399726E+08'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks - works.
1. Either, widen the column, so that you can see the entire number.
2. Or, convert it to a character, so you can see the entire number (if #1 does not work).
Open in new window