Viewing 15 posts - 796 through 810 (of 6,678 total)
Not much we can go on - would help if you showed the code that is causing the issue.
August 24, 2021 at 8:19 pm
I am not sure I understand the request - what are you trying to accomplish? Can you be more specific?
There is the option of filtering the dataset, which you can...
August 23, 2021 at 6:40 pm
You where correct with the " It's the ol' "data mart"... It's kind of a hybrid table.
Will that effect the Delta output? THanks.
No - but I ask again. Have...
August 21, 2021 at 3:35 pm
If the user owns a schema - then they will be able to create objects in that schema unless explicitly denied (and I am not sure if that can be...
August 20, 2021 at 9:09 pm
One of the reasons you would not want to loop over a list of tables is the fact that you have now serialized the extract and load process. Using separate...
August 19, 2021 at 8:38 pm
If you run your alternate function without a where clause or group by - does it return any data? If it does return data - does it return data where...
August 18, 2021 at 4:37 pm
It's still a falsehood. The docs say it is the "false_value", but the result is not "false". ELSE is accurate, because that simply means the WHEN condition was not...
August 18, 2021 at 4:32 pm
The rule for SQL expressions and functions is that if a NULL value goes in, a NULL value comes back, unless you explicitly do something to change that.
IIF violates,...
August 18, 2021 at 3:58 pm
I assume you replace any functions where CASE can be used - or is it only IIF that you don't use?
Like a COALESCE with 10 arguments, for...
August 18, 2021 at 3:56 pm
That is one way - but I probably wouldn't set the function up to return the totals. Instead I would do this:
USE [a2hr]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE...
August 18, 2021 at 3:33 pm
CLR functions for performing Regular Expression searches aren't SQL either, but they're useful. Where do you draw the line?
IIF is part of T-SQL and is more succinct than...
August 18, 2021 at 3:24 pm
Like I said - you could use a function. But you could also do this:
WITH prDates
AS (
SELECT dt.PRStartDate
...
August 17, 2021 at 9:44 pm
Not sure I follow - what CTE are you referring to? The only CTE in the above statement is prDates - which just returns the date range. I would create...
August 17, 2021 at 9:17 pm
Yeah... sorry. I looked at the original problem the wrong way. I also didn't realize that 01/04 was in the (I believe) dd/mm format although that should have been...
August 17, 2021 at 9:11 pm
Here is what I think you are looking for - if I am understanding the code you provided.
WITH prDates
AS (
SELECT dt.PRStartDate
...
August 17, 2021 at 7:38 pm
Viewing 15 posts - 796 through 810 (of 6,678 total)