Hi, Why so complicated, why don't you just use a simple join?
SELECT * FROM TICKER INNER JOIN ANLKURSE AS LETZTER ON .. INNER JOIN ANLKURSE AS VORLETZTER ON ... ORDER BY ... LIMIT 1 Again, please use StackOverflow for such questions. The H2 Group is not the right place for basic SQL join questions. Regards, Thomas -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
