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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help needed with aggregate functions.

Status
Not open for further replies.

JProg

Programmer
Apr 4, 2002
88
0
0
JP
Hi Everyone,

Given the following table data:

ACTORNO MOVIENO
4 17
4 41
15 21
15 26
15 70
17 18
17 41
59 26
65 3
66 17
66 18
76 67
82 62
88 39

I need to work out how many movies each actor has been in. I believe that I should use the count function and possibly the distinct keyword, however I really have no idea what I am doing! If anybody can explain to me how I can go about performing the above task (syntax would be good) it will be greatly appreciated.

Thanks

David
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top