Viewing 15 posts - 136 through 150 (of 2,646 total)
DECLARE @TableString AS nvarchar(MAX)
DECLARE @SqlString as nvarchar(MAX) = ''
DECLARE MyCursor cursor
FOR SELECT concat_ws('.',c.TABLE_CATALOG, c.TABLE_SCHEMA, c.TABLE_NAME) x
FROM INFORMATION_SCHEMA.COLUMNS c
...
April 5, 2024 at 1:47 pm
Couldn't it be as straightforward as this??
SELECT t.[pick your columns]
FROM SomeTable t
INNER JOIN (SELECT [ID#]
...
April 3, 2024 at 11:11 pm
deleted - duplicate
April 3, 2024 at 12:20 pm
It sounds like an exciting opportunity for SQL Architects! With a focus on building sustainable systems, improving database architecture, and guiding engineering teams, this role is pivotal for the...
April 3, 2024 at 12:19 pm
This gives the exact same results as Jonathan's but only reads the near and next term data tables once each.
SELECT FP.UNDERLYING_SYMBOL,
...
April 2, 2024 at 6:49 pm
This gives the exact same results as Jonathan's but only reads the near and next term data tables once each.
SELECT FP.UNDERLYING_SYMBOL,
...
April 2, 2024 at 5:44 pm
Alternatively:
;WITH CTE AS
(
SELECT h1.hist_id,
'NEW' history,
...
April 2, 2024 at 4:45 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...
April 2, 2024 at 3:26 pm
Jonathan AC Roberts wrote:You need to add a
GObefore the second insert.and how will that work within a Stored Proc?
If the script is within a stored procedure it won't work,...
April 2, 2024 at 12:28 pm
You need to add a GO before the second insert.
April 2, 2024 at 10:49 am
After reading again. I think this is what you want:
SELECT FP.UNDERLYING_SYMBOL,
FP.QUOTE_DATE ...
April 1, 2024 at 8:16 pm
I think OUTER APPLY should work. I don't think this is quite correct as I'm not too sure about your specifications for what happens if nothing is found on the...
April 1, 2024 at 4:30 pm
Are you expecting at most one row back for each UNDERLYING_SYMBOL, QUOTE_DATE?
April 1, 2024 at 4:07 pm
From ChatGPT:
It seems like there's a formatting issue with your latitude and longitude values. The error message indicates that it's expecting a number but encountered something else at position 12...
March 28, 2024 at 12:51 pm
Viewing 15 posts - 136 through 150 (of 2,646 total)