JPCogAdmin
Programmer
Hi everyone,
I really need to get some help.
Here is the scenario:
I have a table with appro. 65 columns in MS-Access (eventually this will be in Oracle). Anyway, I need to select the top 5 categories. In other scenarios I selected the top 10 categories using the following code (portable in any db):
=====================================================
SELECT A, visits, C, D, E
FROM table1 AS first
WHERE 10 > (select count(*) from table1 second where first.Visits < second.Visits)
ORDER BY Visits DESC;
=====================================================
Now I need to select the top 5 categories using a column whose values range in the following format:
507
11.93
510.9
11.9 and so on.....
How can I possible create this query? Can one of you help me? I thank you in advance..
-J
I really need to get some help.
Here is the scenario:
I have a table with appro. 65 columns in MS-Access (eventually this will be in Oracle). Anyway, I need to select the top 5 categories. In other scenarios I selected the top 10 categories using the following code (portable in any db):
=====================================================
SELECT A, visits, C, D, E
FROM table1 AS first
WHERE 10 > (select count(*) from table1 second where first.Visits < second.Visits)
ORDER BY Visits DESC;
=====================================================
Now I need to select the top 5 categories using a column whose values range in the following format:
507
11.93
510.9
11.9 and so on.....
How can I possible create this query? Can one of you help me? I thank you in advance..
-J