Viewing 15 posts - 16 through 30 (of 179 total)
... Double quotes are used.
Where? There are some pairs of single quotes that are needed in the dynamic SQL (which as others point out, might be changed). But...
March 2, 2021 at 1:03 pm
I don't know how to fix your problem, but maybe this could be a work-around.
Maybe you can split up the SSIS into more packages, then have the job call each...
March 2, 2021 at 12:52 pm
I suspect the 3rd parameter solution was what was being suggested in the first option - with the error of "NULL" instead of "LAG" in the answer. Of course your...
March 2, 2021 at 12:09 pm
I had to look it up - I don't use LAG very often, and whenever I would use it, I'd have to look it up anyway. I don't know the...
February 23, 2021 at 12:11 pm
Given that CAST only has one parameter, I chose the CONVERT solution, even though once I tried it I found it doesn't give the desired result.
As others stated, the first...
February 22, 2021 at 12:15 pm
I agree. I should have figured "min" wasn't the correct answer, because MIN is the minimum function. But if I hadn't had that brain-fart, I'd have selected "m" instead and...
February 4, 2021 at 12:15 pm
Joe, do you never stop to think that maybe what these people are posting are minimal examples to show where they have a question? Not the full data set in...
February 2, 2021 at 12:17 pm
"Nothing" is not what really happens. Something happens - a variable is declared.
If it was really "nothing", then that variable could be declared again. I doubt that would work.
So having...
January 25, 2021 at 12:27 pm
Your LEFT JOIN works correctly:
Get everything from Employee table
And then match it to records in cteHours
If anything in Employee doesn't match the cte, return NULL for AllHours
If that's not what...
January 13, 2021 at 12:16 pm
Why is emp_id defined as an int, and then in the WHERE clause it looks for character strings?
January 11, 2021 at 12:37 pm
What is the data type of "value"?
It appears from your results that it might be numeric. But in your first attempt you use
value ELSE ''
in the CASE.
It appears that you...
January 4, 2021 at 12:33 pm
True. But given the business specs, it doesn't hardly seem important. The business should also consider the latency between the time the job runs and the time the text is...
November 23, 2020 at 6:02 pm
The code given with the /15 and *15 integer math is to figure out the 15-minute time period that contains the current time. As I write this, it is 7:36,...
November 23, 2020 at 12:42 pm
I had no idea what the answer would be, as I don't use ADF (yet?)
But I made an optimistic choice, hoping it would be the same syntax as T-SQL. No...
November 23, 2020 at 12:27 pm
These schemes will fall apart if the data is too skewed. For example, if for some reason 80% of the card numbers were divisible by 4, one session would be doing...
October 30, 2020 at 11:36 am
Viewing 15 posts - 16 through 30 (of 179 total)