Closed (fixed)
Project:
Audio
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2008 at 05:28 UTC
Updated:
30 Jun 2008 at 06:04 UTC
I'm using the audio module and would like to fetch the total number of plays of all of a certain users audio.
When writing it up I used in SQL
SELECT SUM(play_count)
FROM audio
WHERE uid = 1
Only to find out that uid isn't implemented in the audio table.
So I ventured towards towards the node table.
SELECT SUM(play_count)
FROM node
WHERE type = 'audio'
Only to discover that play_count isn't in there? So what the heck am I suppose to do?!
Comments
Comment #1
mike.hobo commentedNever mind I found the solution in case anyone is wondering how this can be done.
I had to join the tables and match them up and then take the play_count accordingly.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.