How To Add Ordering To SQL For graph

G

Gary

I have the SQL used for the RowSource of a Graph object in Access. It is
currently sorting by personnel (ascending order).

I would like to sort it in descending frequency order of personnel. Can
someone please help.

Here is the SQL statement:

TRANSFORM Sum([O_Rept#111_RP by Personnel].NoPers) AS SumOfNoPers
SELECT [O_Rept#111_RP by Personnel].Personnel
FROM [O_Rept#111_RP by Personnel]
GROUP BY [O_Rept#111_RP by Personnel].Personnel
ORDER BY [O_Rept#111_RP by Personnel].RnPa DESC
PIVOT [O_Rept#111_RP by Personnel].RnPa;


Thank You

Gary
 
K

KARL DEWEY

I would like to sort it in descending frequency order of personnel.
What field would that be?
 
G

Gary

NoPers

I want the NoPers to order in from largest to smallest.


Gary

KARL DEWEY said:
What field would that be?
--
KARL DEWEY
Build a little - Test a little


Gary said:
I have the SQL used for the RowSource of a Graph object in Access. It is
currently sorting by personnel (ascending order).

I would like to sort it in descending frequency order of personnel. Can
someone please help.

Here is the SQL statement:

TRANSFORM Sum([O_Rept#111_RP by Personnel].NoPers) AS SumOfNoPers
SELECT [O_Rept#111_RP by Personnel].Personnel
FROM [O_Rept#111_RP by Personnel]
GROUP BY [O_Rept#111_RP by Personnel].Personnel
ORDER BY [O_Rept#111_RP by Personnel].RnPa DESC
PIVOT [O_Rept#111_RP by Personnel].RnPa;


Thank You

Gary
 
K

KARL DEWEY

Use a second query to order.
--
KARL DEWEY
Build a little - Test a little


Gary said:
NoPers

I want the NoPers to order in from largest to smallest.


Gary

KARL DEWEY said:
I would like to sort it in descending frequency order of personnel.
What field would that be?
--
KARL DEWEY
Build a little - Test a little


Gary said:
I have the SQL used for the RowSource of a Graph object in Access. It is
currently sorting by personnel (ascending order).

I would like to sort it in descending frequency order of personnel. Can
someone please help.

Here is the SQL statement:

TRANSFORM Sum([O_Rept#111_RP by Personnel].NoPers) AS SumOfNoPers
SELECT [O_Rept#111_RP by Personnel].Personnel
FROM [O_Rept#111_RP by Personnel]
GROUP BY [O_Rept#111_RP by Personnel].Personnel
ORDER BY [O_Rept#111_RP by Personnel].RnPa DESC
PIVOT [O_Rept#111_RP by Personnel].RnPa;


Thank You

Gary
 
G

Gary

Thank You.

I got it working !!!!


Gary




KARL DEWEY said:
Use a second query to order.
--
KARL DEWEY
Build a little - Test a little


Gary said:
NoPers

I want the NoPers to order in from largest to smallest.


Gary

KARL DEWEY said:
I would like to sort it in descending frequency order of personnel.
What field would that be?
--
KARL DEWEY
Build a little - Test a little


:

I have the SQL used for the RowSource of a Graph object in Access. It is
currently sorting by personnel (ascending order).

I would like to sort it in descending frequency order of personnel. Can
someone please help.

Here is the SQL statement:

TRANSFORM Sum([O_Rept#111_RP by Personnel].NoPers) AS SumOfNoPers
SELECT [O_Rept#111_RP by Personnel].Personnel
FROM [O_Rept#111_RP by Personnel]
GROUP BY [O_Rept#111_RP by Personnel].Personnel
ORDER BY [O_Rept#111_RP by Personnel].RnPa DESC
PIVOT [O_Rept#111_RP by Personnel].RnPa;


Thank You

Gary
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top