Viewing 15 posts - 1,126 through 1,140 (of 4,087 total)
July 23, 2018 at 11:30 am
You've been around long enough to know that's not the way to post sample data and expected results. If you need a refresher, look in my signature.
Drew
July 23, 2018 at 11:21 am
July 23, 2018 at 7:20 am
000I notice you sidestepped the question about the two temp tables. Here is a method. The first CTE is simply to combine your two temp tables into one.
July 20, 2018 at 7:36 am
You can't group by an XML column. The best that you can do is convert it to a (N)(VAR)CHAR column, which you can group by.
Drew
July 19, 2018 at 3:16 pm
July 19, 2018 at 12:18 pm
I think that the problem is that you are expecting NULL = NULL to be true when it's actually UNKNOWN. I think what you want for the final join is...
July 18, 2018 at 12:22 pm
July 18, 2018 at 7:28 am
July 17, 2018 at 9:38 am
July 16, 2018 at 8:19 am
July 16, 2018 at 7:45 am
select top 3 count(UUT_SN) as Total_Fail,Fail_Description,Station_No from Test_tableJuly 16, 2018 at 7:29 am
I think you're looking for something like this.
WITH data_compare AS
(
SELECT *
, LAG(merchantname) OVER(PARTITION BY merchantnumber ORDER BY rec_start_date) AS prev_merchant_name
, LAG(activeflag) OVER(PARTITION BY merchantnumber...
July 13, 2018 at 2:03 pm
July 13, 2018 at 12:49 pm
Viewing 15 posts - 1,126 through 1,140 (of 4,087 total)