Complicated query

Puiu

Well-known member
Joined
Oct 6, 2004
Messages
90
I have the following tables in my database:

Media(IdMedia, Description)
Images(IdImage, IdMedia, Size)
Requests(IdRequest, IdMedia, DownloadDate, Aproved)

I need to create a query that will calculate the total downloads of each image and show the user the percentage of those downloads in the total number of downloads in the current month
Example:
Let
 

Similar threads

Back
Top