Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a group query:
SELECT Course.course_code, Course.course_name, Count (Course.ID) AS CountOfID FROM Course GROUP BY Course.course_code, Course.course_name; Is there any way I can add a numbering field (using the build wizard or any way)to give numbering to records. Please advise. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
you already have a numbering field...
Course.ID change you SQL to SELECT Course.ID, course_code, course_name, _ Count(Course.ID) AS CountOfID FROM Course GROUP BY course_code, course_name; Patrick Molloy Microsoft Excel MVP -----Original Message----- I have a group query: SELECT Course.course_code, Course.course_name, Count (Course.ID) AS CountOfID FROM Course GROUP BY Course.course_code, Course.course_name; Is there any way I can add a numbering field (using the build wizard or any way)to give numbering to records. Please advise. . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Who said Course.ID is a number? But I admit it's a good bet. Someone
who would take a non-procedural, set-orientated language like SQL and use it to create cursor is more than likely to choose a IDENTITY column as a primary key, right? -- "Patrick Molloy" wrote in message ... you already have a numbering field... Course.ID change you SQL to SELECT Course.ID, course_code, course_name, _ Count(Course.ID) AS CountOfID FROM Course GROUP BY course_code, course_name; Patrick Molloy Microsoft Excel MVP -----Original Message----- I have a group query: SELECT Course.course_code, Course.course_name, Count (Course.ID) AS CountOfID FROM Course GROUP BY Course.course_code, Course.course_name; Is there any way I can add a numbering field (using the build wizard or any way)to give numbering to records. Please advise. . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If Course.ID isn't satisfactory as a numbering field, you could try
something like this: SELECT C1.course_code, C1.course_name, ( SELECT count(*) FROM Course C2 WHERE C2.Course_code <= C1.Course_code ) as Counting FROM Course C1 ; -- HTH, Dianne In , JA typed: I have a group query: SELECT Course.course_code, Course.course_name, Count (Course.ID) AS CountOfID FROM Course GROUP BY Course.course_code, Course.course_name; Is there any way I can add a numbering field (using the build wizard or any way)to give numbering to records. Please advise. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumif number is greater than a number but less than another number | Excel Discussion (Misc queries) | |||
How can I click on a telephone number in an Excel 2002 spreadsheet, and have the number dialed? | Excel Discussion (Misc queries) | |||
How to calculate number of occurencies of a specific number number | Excel Discussion (Misc queries) | |||
convert text-format number to number in excel 2000%3f | Excel Discussion (Misc queries) | |||
Rounding a number to a multiple quantity that adds to a fixed total number | Excel Worksheet Functions |