I suppose it is a lot of work, but I guess that's the trade-off with writing code that is implementation-independent.
For example, the select ... top n directive is only valid for MS SQL version >=7.0 --
lardmonster - an occasional visitor
mkflint@hotmail.com
SET ROWCOUNT 10
Not very standard SQL either...
OK, lets think about this:
you want a set of data - let's say something like:
select c.co_name from company c order by c.co_name asc
now lets add another column to get a row-count:
select c.co_name,
(select count(*) from company c2...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.