Skip to content
Advertisement

SELECT a query after another SELECT using Dates

i have a table that uses TIMESTAMPS an needs to be filtered by month, the query is:

now, from the results of this query i need to use another query that groups the dates by day and makes a sum of a field, in the same table:

How can i join this two querys so the two separated queries can be made in just one?

Advertisement

Answer

That should do the trick; you don’t need a second query as you want to filter the table down to a set of rows and then you want to output and aggregate those results

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement