Viewing 15 posts - 91 through 105 (of 300 total)
Perhaps something like this?
SELECT
RefDocNum,
MAX(AcctDocNum1) AS AcctDocNum1,
DocType1,
LocCrdtAmt,
LocDbtAmt
FROM
...
October 10, 2022 at 7:34 am
I'm especially stayed aware of the article and I will get many benefits from it. Subsequently, thank you for sharing it.
Huh? I don't understand what you're saying. It doesn't...
October 7, 2022 at 8:36 am
In a set-oriented language you return the whole set of values that are temporally equal toMight wan the min(date diff) over(patition by account) .
Look up Dr. Codd's T-Join for...
October 4, 2022 at 7:50 pm
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
Viewing 15 posts - 91 through 105 (of 300 total)