|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
number of records! need help
hi guys i knew all of you are the best out there so please dont stop helping me!
i got this thought and i would like to see how this is done. the number of records(numViews) is the one i cant get! how do you count the number of records in a given records? i cant get the numViews and i got a hard time in getting that GROUP syntax in SQL. grrr sample output: idnum |numViews 01000 |(2) 02000 |(9) 03000 |(56) |
|
#2
|
||||
|
||||
|
Hi,
try using this Code:
select idnum, count(idnum) from table group by idnum this will get the idnum and the number of entries in the database for that idnum. hope this helps
__________________
Look! Its a ShemZilla ![]() ![]()
|
![]() |
| Viewing: ASP Free Forums > Other > Programming Help > number of records! need help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|