Viewing 15 posts - 31 through 45 (of 290 total)
the queries are giving the correct output now.
thank you both so much!
April 4, 2024 at 4:05 pm
Thank you both!! I appreciate your help so much!
I tested another scenario. I added a different company in the list so there are now two not one company.
Drew, your solution...
April 3, 2024 at 11:33 pm
Thank you everyone!
I will try them and report back any issues
April 2, 2024 at 6:52 pm
Thank you everyone.
This is very interesting. Is this a bug within SS that you cannot drop a #temp table inside a SP using the DROP TABLE command? Or is there...
April 2, 2024 at 3:07 pm
one thing I should mention/clarify...
each time I re-use #temp2 I am using a completely different select statement so the columns going into #temp2 will be different.
it is odd that I...
April 2, 2024 at 7:30 am
thank you everyone for your feedback. I will test the code and see how the output looks
April 1, 2024 at 9:25 pm
I gave this a bit more thought...
Returning the MIN value of STRIKE will not work. Instead, do the following...
If the sub-query ever returns an empty result then return the result...
March 29, 2024 at 5:44 am
Run the select without the insert, what type of values are you getting for what would be inserted into STRIKE_CONTRIBUTION?
Is anything in double digits, 99.9999999999999999
If so your numeric(28,27) is...
March 28, 2024 at 12:39 am
It would be simpler and more efficient to just calc the 3rd Friday of the month and then see if there are any rows for that date, i.e., you...
March 19, 2024 at 5:22 pm
One more thing...
The create table and create index code was created before any rows were added to the temp tables. Not sure why the run time grew like that. Any...
March 15, 2024 at 5:07 pm
I added the clustered indexes to the temp tables. the run time is close to 2.5 minutes. what! before the change the query was running in 20 seconds. what happened??
March 15, 2024 at 5:26 am
You need to remove the drop existing bit, as there is no existing index on a new table.
Thank you!
March 15, 2024 at 4:43 am
posting error
March 15, 2024 at 4:36 am
The optimiser should be able to simplify the query to remove the nesting so it might not make much difference.
One of the big...
March 15, 2024 at 2:53 am
The optimiser should be able to simplify the query to remove the nesting so it might not make much difference.
One of the big advantages of...
March 15, 2024 at 2:23 am
Viewing 15 posts - 31 through 45 (of 290 total)