Viewing 15 posts - 1 through 15 (of 21 total)
March 8, 2017 at 9:08 am
March 7, 2017 at 1:56 pm
March 7, 2017 at 12:40 pm
March 7, 2017 at 12:25 pm
March 7, 2017 at 12:09 pm
@arjun, I had charge_amount at first - charge_qty does fix the number of records. So both queries give the right results, but ChrisM is a little faster.
So...
January 11, 2017 at 9:45 am
Arjun Sivadasan (1/9/2017)
having sum(charge_amount) > 0
Edit: Your original query checks for sum(charge_qty) > 0. Do both...
January 10, 2017 at 2:29 pm
@ChrisM@Work - Your query did run faster, however it is not unique and so it brings up 9,266 rows instead of the 2,570.
@arjun Sivadasan - I...
January 9, 2017 at 11:02 am
Thank you for the explanation. Here is the latest execution time:
(2570 row(s) affected)
(1 row(s) affected)
SQL Server Execution Times:
CPU time = 3593 ms, elapsed time...
January 6, 2017 at 5:16 pm
Okay, I updated the statistics and then I ran the next bit of SQL and this is the output:
Configuration option 'show advanced options' changed from 1 to 1. Run the...
January 6, 2017 at 4:52 pm
This is what was returned with "SET STATISTICS TIME ON" for your query.
(2570 row(s) affected)
SQL Server Execution Times:
CPU time = 3185 ms, elapsed time =...
January 6, 2017 at 4:41 pm
I don't know, it is what comes back on my EMS SQL Manager for SQL Server when I run a query. That is why I posted both. SQL...
January 6, 2017 at 4:08 pm
I don't know if you get notified if I just edit. But I have edited the post above with the execution times.
January 6, 2017 at 3:55 pm
I have attached 3 sqlplan files. The query that I have (douglas.sqlplan), the one drew.allen created (drew.sqlplan) and the sql by Arjun (arjun.sqlplan).
My query returns: 2540 records (Execution time:...
January 6, 2017 at 1:53 pm
Thanks for the effort. Your code is taking longer than mine though on a year's data. I don't know how best to export and post the execution plans...
January 5, 2017 at 4:37 pm
Viewing 15 posts - 1 through 15 (of 21 total)