What is wrong with my query?
Posted
by user299874
on Stack Overflow
See other posts from Stack Overflow
or by user299874
Published on 2010-03-23T12:18:46Z
Indexed on
2010/03/23
12:23 UTC
Read the original article
Hit count: 346
SELECT h11, HA11
FROM florin.h11
WHERE (3>d1 AND 3<d2) OR (3>d1 AND 3=d2 AND id=MAX(id))
UNION (3=d1 AND 3<d2 AND id=MIN(id));`
Here a screenshot of my table stucture:
© Stack Overflow or respective owner