Why it is recommended to avoid referencing a floating point column in the where clause?
Answer / Surendra Singh Laspal
It is recommended to avoid referencing a floating point column in the WHERE clause because of precision and rounding errors. SQL Server stores floating-point numbers as binary values, which can lead to unexpected results when performing equality comparisons due to rounding differences. To mitigate this issue, it's best to compare floating-point columns using ranges or approximate functions like `FLOOR` and `CEILING`.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are cursors and when they are useful?
Can another user execute your local temporary stored procedures?
what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration
Explain about temporary stored procedure?
Which sql server table is used to hold the stored procedure script?
what is the difference between delete,drop and truncate
What is difference between unique and primary key?
What is truncate table?
How to generate the Reports for the Database? I need an Example for it.Will we manually do this or else any script is there? Please let me know ASAP...
How to convert binary strings into integers in ms sql server?
What are the new data types are introduced in sql 2000?
How to get the count of distinct records. Please give me the query?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)