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

Search results for query: *

  1. RenEvo

    Embed Select Aggregate in Aggregate Function

    i needed a derived table, as the original data came from a view that had a sum of the sales per day, and i needed to get the count of days that had a non-zero value, then get the avg sales from that to the total sales of all the days queried. original sql (mockup, not real table): select...
  2. RenEvo

    Embed Select Aggregate in Aggregate Function

    Having a bit of trouble trying to get the data exactly how i need it. anyone know why sql throws an error on this? Select count(select sum(sales) from actsales groupby salesdate) from actsales innerjoin ~..... the error is on the select inside the count, says its invalid. thanks in advance...

Part and Inventory Search

Back
Top