Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Totals from a set of dates
Message
 
To
26/02/2010 11:20:28
Moacyr Zalcman
Independent Consultant
São Paulo, Brazil
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01451177
Message ID:
01451257
Views:
26
>Hi Naomi and Borislav
>
>Sorry, I´ll try to be more clear.
>
>The dates comes from another table. Products are put on sales in different times during the day. For every producT I need to calculate the total sales from the entire store after that time.
>
>Product A - Start Sales at 2009-02-26 08:00AM ->Total sales from the store after 2009-02-26 08:00AM till now- 600000
>Product B - Start Sales at 2009-02-25 10:00AM ->Total sales from the store after 2009-02-25 10:00 AM till now 900000
>
>Table A stores these dates of beggining sales and Table B stores individual sales I need a sum of sales for each start sales


Give me some example data and desired results from it.
From where StartSales date comes from?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform