Viewing 15 posts - 1 through 15 (of 32 total)
Thanks a lot. That works.
November 13, 2024 at 1:56 pm
Thanks a lot for all the replies. Much appreciated. I am going to remove the sub queries and see how it works. Will also ask the DBA for the execution...
April 25, 2024 at 12:35 am
I am trying commands separately to understand. Will update if I have any questions.
June 15, 2023 at 6:48 pm
So far this solution gives me the result I am looking for. Much appreciated. Will be testing this with live data. Again apologies as the requirement was changed in the...
June 1, 2023 at 2:08 pm
Thanks for the response. Much appreciated. It worked for that sample data because the dates were the same.
When I have different dates, it resets the counter.
My apologies, if I am...
May 31, 2023 at 9:08 pm
Is it possible to make the count start only for non XXX. With the following sample data, column gives me 3 and 4. But I want it to give 1...
May 31, 2023 at 7:33 pm
Thanks a lot for the response. Works great.
May 30, 2023 at 8:35 pm
Unfortunately, there is no sort order. This is a 3rd party database. I don't have control of how they save data. Script should go through the data and take the...
May 3, 2023 at 5:20 pm
Agree 100%. Will do the needful next time. Already got another one about a script that I did. Just putting everything thing (with the code that I already wrote). Appreciate...
April 26, 2023 at 6:36 pm
Thanks for the response. I am a bit newbee when it comes to sql. Still learning.
April 25, 2023 at 8:07 pm
Sorry, my bad. It works. Thanks for all the replies.
March 6, 2023 at 7:51 pm
Thanks for the reply. I am getting Incorrect Syntax near ')'
;WITH CTE AS
(
SELECT DISTINCT [VID],[OrdDate],[Prg1],[Prg2],[Prg3],[Prg4],[Prg5],[Prg6],[RowUpdatDateTime]
FROM #new
),
CTE2 AS
(
...
March 6, 2023 at 7:31 pm
Thanks for all the replies. Much appreciated.
I agree that I don't need to compare data in the new table with the existing one.
I created a temp table to test the...
March 6, 2023 at 4:07 pm
Viewing 15 posts - 1 through 15 (of 32 total)