Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

count function 1

Status
Not open for further replies.

georgia51390

Programmer
May 17, 2001
13
US
Hi there, I have a table that has one column of ID #s. The ID's represent people and can be in the table any number of times. I have a second column of dates - these are dates that the ID/person was active in the system. For each unique ID, I need to count how many times were they active (how many dates they have)? Any suggestions?
 
something like this might work:

select ID,
count(active_date)
from table1
group by ID
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top