in IBM DB2:SELECT TOP 10 col FROM table
I think the only platform independent way to do this is:SELECT col FROM table FETCH FIRST 10 ROWS ONLY
SELECT col FROM table A WHERE 10 > (SELECT COUNT(*) FROM table B WHERE A.col < B.col) ORDER BY col DESC
In reply to is that standard though?
by cebrown
in thread The fine art of database programming
by gmax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |