Viewing 15 posts - 1,531 through 1,545 (of 13,849 total)
OUTER APPLY is the way to go, but you need to also modify the initial SELECT
SELECT ISNULL(ca1.Extension, a.Extension)
,ISNULL(ca1.Name, a.Name)
...
March 8, 2022 at 9:44 am
When you refer to 'spawning' of packages, is this done via multiple Execute Package tasks, or in some other way?
March 8, 2022 at 9:34 am
--Removed
March 7, 2022 at 4:41 pm
You've been here long enough to know that your sample data should be provided in a consumable format, for us to cut & paste into SSMS.
Where does 'Extension' 1 come...
March 7, 2022 at 4:03 pm
Please try using my modified query and see whether it gives the results you are hoping for:
WITH AffectedVehicles
AS (SELECT DISTINCT
...
March 5, 2022 at 3:07 pm
I should get a chance to look at this again tomorrow regarding the additional engine requirement.
Didn't take long, maybe 30 minutes in total for both solutions.
March 4, 2022 at 11:41 am
Duplicates involves all columns. I would like to add an index column to identify each row.
Here are two duplicate rows: (x,y,z), (x,y,z)
Now tell me what your 'index column' (whatever...
March 3, 2022 at 5:27 pm
I had a quick go at this, see whether it helps.
DECLARE @Mechanic VARCHAR(4) = 'Mike';
DECLARE @MessedUpStart DATETIME = '2000-01-03 14:00:00';
DECLARE @MessedUpEnd DATETIME = '2000-01-03 16:00:00';
DROP TABLE IF...
March 3, 2022 at 2:16 pm
First i would like to able to have an unique identifier. Is the unique index the way to go?
What do you hope to achieve by doing this? You cannot...
March 3, 2022 at 11:23 am
You don't.
First you decide on the desired PK. Then you address any dupes. Then you issue an ALTER to set the PK.
March 2, 2022 at 7:00 pm
No, I only want to make it in OneQuery.
Remember, i only used this first query to get the list of what was changed during a period from a user...
March 2, 2022 at 4:39 pm
So do you want two queries? One showing the situation before mess-up (which is the one already provided) and one showing the mess-up? That is, two separate resultsets?
March 2, 2022 at 4:14 pm
Phil, I am sorry, I spoke too quickly.
I see that you DECLARE a fixed time DECLARE @MessedUpAt DATETIME = '2000-01-03 15:00:00';
But the mechanic can mess up for 2 hours.......
March 2, 2022 at 3:36 pm
Thanks Phil, you did it! Please do you mind, explain high level how this works? You probably see that I do not have your level and I am interested...
March 2, 2022 at 3:32 pm
Please check this out and let me know what you think. I used a temp table and converted your VARCHAR(1) to CHAR(1). If you want to know why VARCHAR(1) is...
March 2, 2022 at 1:54 pm
Viewing 15 posts - 1,531 through 1,545 (of 13,849 total)