Guest_imported
New member
- Jan 1, 1970
- 0
Hi, I have a DB that stores hits on pictures for a photo album. it stores IP, photoname, and datetime.
I want to make a SQL query to get back two columns, one the name each distinct photo, the other the number of tupples(or hits) that photo has. then I can calculate which photos are in the top 50% of hits and choose a pic of the week automatically.
I'm still pretty noobish with SQL and I can't get this query. anyone have a solution?
I want to make a SQL query to get back two columns, one the name each distinct photo, the other the number of tupples(or hits) that photo has. then I can calculate which photos are in the top 50% of hits and choose a pic of the week automatically.
I'm still pretty noobish with SQL and I can't get this query. anyone have a solution?