MySQL Forums
Forum List  »  General

To make things wierder...
Posted by: Eric Blankfield
Date: January 23, 2005 08:56PM

SELECT DISTINCT name,tons
FROM cdl
LEFT JOIN vessel ON (cdl.vessel = vessel.id)
WHERE tons between 74 and 76

offers this result set...
+-------------------+-------+
| name | tons |
+-------------------+-------+
| Betsy & Eliza | 74.44 |
| Elizabeth Rebecca | 75.06 |
| Susan Center | 74.15 |
+-------------------+-------+

while "SELECT DISTINCT name,tons FROM vessel WHERE tons BETWEEN 74 AND 76" gives the following...

+-------------------+-------+
| name | tons |
+-------------------+-------+
| Betsy & Eliza | 74.44 |
| Elizabeth Rebecca | 75.06 |
| Susan Center | 74.15 |
| Torpedo | 76.00 |
| Rumrunner | 75.00 |
+-------------------+-------+

What gives?

Options: ReplyQuote


Subject
Written By
Posted
To make things wierder...
January 23, 2005 08:56PM
January 23, 2005 09:49PM
January 24, 2005 07:59AM
January 25, 2005 11:17AM


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.