Viewing 15 posts - 3,376 through 3,390 (of 13,855 total)
Hi
The 2nd table will only have 1 entry for the person employment status from the first table whether it would be "Manager", "Fired" or "Enjoy Life". It will not...
August 16, 2019 at 2:39 pm
Don't use OLEDB Command for updates ... unless your number of updates is tiny. It's dog slow.
Instead, direct all of your update rows to (yet) another staging table (as INSERTs),...
August 16, 2019 at 12:58 am
Well it's still not clear to me.
Really?
How is COALESCE ever going to take ('Manager', 'Fired', 'Enjoying Life') as its arguments and return 'Manager Fired Enjoying Life'?
August 15, 2019 at 11:59 pm
It would be interesting to know more about the process which is taking all the time.
August 15, 2019 at 11:54 pm
Do you want concatenation or coalescence of the 3 columns? Can be 1 and only 1 value per row in these 3 columns? Could all 3 columns have values...
August 15, 2019 at 9:39 pm
Data Rat wrote:Thanks for your comment. But why would you use an inner join instead of a left join?
WHERE us.UserId = @userid
Because you've effectively turned the LEFT...
August 15, 2019 at 8:50 pm
I would not recommend that approach - combining discrete data elements into a single column will make it much harder to work with that data.
What is the purpose of...
August 15, 2019 at 8:45 pm
If the values are, as you suggest:
Employed (String) - "Manager"
Non-Employed (String) - "Fired"
Retired (String) - "Enjoying Life"
what would you set Employed Status to?
August 15, 2019 at 7:51 pm
Looks to me as though you can simplify your WHERE clause to
WHERE j.Code <> 'L3'
and do the whole thing as a single INSERT.
August 15, 2019 at 7:48 pm
What are the possible values in the three source columns and how do they map to the target column?
August 15, 2019 at 5:41 pm
It's a subquery within a subquery (a subsubquery??) – it's much easier to read with some formatting applied:
BEGIN
SELECT COUNT(*)
FROM...
August 14, 2019 at 7:50 pm
Since I'm using SSIS to map the data from the flat file to my staging table I prefer to get all the data in the staging table, then try...
August 14, 2019 at 6:58 pm
Do you receive any error messages?
August 14, 2019 at 1:50 pm
Use something like this to get your start and end dates:
DECLARE @StartDate DATE = DATEADD(mm, DATEDIFF(mm, 0, GETDATE()), 0);
DECLARE @DayNo TINYINT = DAY(GETDATE());
IF @DayNo > 15
...
August 13, 2019 at 6:46 pm
this is not possible with the Remove-DbaAgentJobStep command
Is that a statement or a question?
August 13, 2019 at 4:21 pm
Viewing 15 posts - 3,376 through 3,390 (of 13,855 total)