Viewing 15 posts - 331 through 345 (of 2,645 total)
I think the following index should help performance:
CREATE INDEX IX_OptionsEOD_1
ON dbo.OptionsEOD (UNDERLYING_SYMBOL, ROOT_SYMBOL, EXPIRATION, STRIKE, OPTION_TYPE, QUOTE_DATE)
INCLUDE (CLOSE_PRICE)
;
July 3, 2023 at 5:10 pm
To increase the performance you could limit the rows the query in the CTE produces by selecting on the QUOTE_DATE going back a given amount of days to when you...
July 3, 2023 at 3:08 pm
Another option:
WITH CTE AS
(
SELECT T1.UNDERLYING_SYMBOL,
T1.QUOTE_DATE,
...
July 3, 2023 at 2:28 pm
SELECT T1.UNDERLYING_SYMBOL,
T1.QUOTE_DATE,
T1.ROOT_SYMBOL,
T1.EXPIRATION,
...
July 3, 2023 at 1:41 pm
Yes you can, I've upgraded from SQL 2012 to 2019 by just restoring a backup.
July 3, 2023 at 11:24 am
DECLARE @YearKey int,
@WeekKey int, @CA4 int,
@PrevMonthCheck int= -1,
...
July 1, 2023 at 5:02 pm
You are getting the new error because ProjectedValue / StartValue is less than 1 (3.22/4.079).
When you raise this to a number greater than 1 (182.5) you get a number very...
June 30, 2023 at 9:53 pm
The overflow occurs because the exponent in the POWER function is extremely large due to the short time span and high growth rate.
The formula isn't designed to handle cases of...
June 30, 2023 at 8:53 pm
The expressions you mentioned, such as BETWEEN, EXISTS, IN, LIKE, <, >, =, and others, are often referred to as operators or comparison operators rather than predicates.
In logic, predicates typically...
June 29, 2023 at 10:05 pm
You are attempting to compute the result of raising 78.94 to the power of 365, which evaluates to approximately 3.27E+692.
This value exceeds the maximum representable number in the float data...
June 29, 2023 at 9:08 pm
DROP TABLE IF EXISTS #label ;
-- Create the table
CREATE TABLE #label
(
plot int,
)
-- Populate the table with sample data
INSERT INTO #label(plot)
VALUES (1), (2),...
June 28, 2023 at 9:46 am
About 25 minutes right now. We have about 10 stars right now and growing. I expect to have another 5 by next month.
25 minutes is quite fast for a...
June 28, 2023 at 7:07 am
How do I execute what is printed?
You can copy it to the clipboard and execute it by pasting into a query window and pressing F5.
But my suggestion was really...
June 28, 2023 at 7:04 am
How long does a full load of the DW take?
June 27, 2023 at 11:57 pm
I think you might want something like this:
WITH CTE AS
(
SELECT s.DocumentId,
ROW_NUMBER() OVER...
June 27, 2023 at 11:53 pm
Viewing 15 posts - 331 through 345 (of 2,645 total)