Viewing 15 posts - 121 through 135 (of 375 total)
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
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 putting you...
March 15, 2024 at 12:10 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 putting you results into...
March 14, 2024 at 11:51 pm
For some reason, you didn't ask -- perhaps deliberately -- about the simplest and probably the best option, which is just:
SELECT field1,field2
FROM table1
Because there is no...
March 14, 2024 at 9:52 pm
thank you everyone!
I used the script that Jonathan provided. It turns out that temp was using float when I used numeric. Once I made this change the numbers...
March 14, 2024 at 7:20 pm
thank you everyone!
I used the script that Jonathan provided. It turns out that temp was using float when I used numeric. Once I made this change the numbers match.
March 14, 2024 at 5:35 pm
Viewing 15 posts - 121 through 135 (of 375 total)