Viewing 15 posts - 91 through 105 (of 297 total)
Okay, I'll give it a shot...
DECLARE
@tableA TABLE (
Id ...
October 4, 2022 at 5:02 pm
Just to play the devil's advocate here and make you think: 🙂
How do you want to handle if the date in Table A is right in the middle between two...
September 28, 2022 at 5:38 pm
even on the same version but with different server specs it can return different results - I would not consider it a bug but rather a consequence of using...
September 18, 2022 at 7:54 pm
Is this a question or just a comment? What do you need?
September 8, 2022 at 10:52 am
Various activities (post new topic, reply to one, post article, etc.). I think I need to file a bug that spam posts don't count as points.
Okay, but do you...
September 6, 2022 at 6:46 pm
This is a personal preference, but I find your case structure difficult to parse and comprehend.
Instead of your
where finvdate < Case when Month(current_timestamp) = 1 then
Dateadd(year, DateDiff(year,'19060101',...
August 30, 2022 at 10:35 pm
How about something like this?
WITH ssn_empID AS (
SELECT DISTINCT
...
August 18, 2022 at 9:37 pm
The default precision and scale of the numeric type is 18,0 and my guess is that one or more rows have a value that exceed the default precision of 18.
As...
August 15, 2022 at 7:09 pm
Your could try to use Azure Data Studio as an alternative tool for your documentation.
August 14, 2022 at 12:49 am
Generally speaking the easiest way to achieve your "roll up" is to use a GROUP BY on StudentID and then for each of your names do a MAX or MIN,...
August 14, 2022 at 12:25 am
If I have interpreted your question correctly, you could try something like this:
DECLARE @SQL NVARCHAR(MAX) = N'
WITH util AS (
SELECT
...
August 13, 2022 at 11:32 pm
What is the relationship between the first part about putting a query into a declared variable and the published formatted query? I'm confused.
The only part of the update query that...
August 13, 2022 at 10:03 pm
Hmmm... maybe like this?
SELECT
CONCAT(SCHEMA_NAME(t.schema_id), '.', t.name) AS TableName
, t.create_date AS CreatedDate
, t.modify_date AS LastModifiedDate
...
August 12, 2022 at 6:32 pm
Thanks Kaj.
Actually i would like to add HasTriggerDependency to the select list.
Can you please suggest .
Thank you.
It doesn't work in the supplied query? I mean, I already added the...
August 11, 2022 at 3:21 pm
I'm pretty sure that I'd remove the IP address and port from the original post. Just sayin'... you know... Security??? 😉
Hmmm... I'm pretty sure that IP address is one...
August 1, 2022 at 6:36 am
Viewing 15 posts - 91 through 105 (of 297 total)