Viewing 15 posts - 151 through 165 (of 375 total)
It's Friday afternoon and this was a nice small example. Here's my offering:
-- Create sample data
DROP TABLE IF EXISTS #Example
CREATE TABLE #Example
(DayNum...
March 9, 2024 at 12:10 am
Need sample data that is directly usable, that is, CREATE TABLE and INSERT statement(s), not just a splat on the screen.
no problem. here you go:
CREATE TABLE...
March 8, 2024 at 11:48 pm
You've already got restrictions based on @LOOK_BACK_PERIOD in the WHEREs, it would just be more efficient to pre-filter rather than waiting until some processing has been done on all...
March 7, 2024 at 8:52 pm
duplicate post by accident
March 7, 2024 at 8:29 pm
thank you both! i know how to fix my query now because of your feedback. thank you again for the help!!
Cool. Can you show us what you settled...
March 7, 2024 at 8:02 pm
Did you add the WHERE condition for the TXN_DATE? If you have a long history in the table, that would help the most.
Then try an index on (txn_date, company)...
March 7, 2024 at 6:49 pm
Need the DDL for the table to sure of more specific recommendations for best speed, but, assuming you will keep a long history in this table:
(1) Either:...
March 7, 2024 at 5:01 pm
Need the DDL for the table to sure of more specific recommendations for best speed, but, assuming you will keep a long history in this table:
(1) Either: (A) cluster...
March 7, 2024 at 4:05 pm
sure thing no problem.
I have attached an Excel sheet with sample data and expected outcome. In case you prefer to not download file then here is a screenshot with description. ...
March 7, 2024 at 3:36 pm
thank you both! i know how to fix my query now because of your feedback. thank you again for the help!!
March 5, 2024 at 10:01 pm
this is super interesting. i didn't know that.
this begs the question....how do you decide on an appropriate index? is there a good resource you can suggest that goes over the...
February 26, 2024 at 4:21 am
does it make sense that an unindexed query is faster than an indexed one?
February 25, 2024 at 6:40 pm
thank you everyone. What recommended settings for parallelism should I set SS to? Clearly the defaults are not recommended.
February 24, 2024 at 4:58 am
Viewing 15 posts - 151 through 165 (of 375 total)