Viewing 15 posts - 1,306 through 1,320 (of 4,087 total)
Since you're on SQL 2012, you can use TRY_CAST() instead of just CAST().
Drew
January 29, 2018 at 1:21 pm
January 29, 2018 at 7:56 am
Here is one option. I initially tried an approach similar to Kevin's, but this seems to require fewer scans.
SELECT df.LineNumber, df.MFN, MAX(CASE WHEN df.MFN = t.MFN...
January 26, 2018 at 2:20 pm
January 25, 2018 at 2:35 pm
January 25, 2018 at 2:29 pm
You're filtering out any rows where tbl3.Col3 <> 1234, including those rows where there is no match and tbl3.Col3 is null. Move the condition to the join clause.
January 25, 2018 at 2:17 pm
if object_id('tempdb..#rx') IS NOT NULl DROP TABLE #rx
GO
create table #rx( MemN VARCHAR(15), ClaimNumber...
January 25, 2018 at 12:53 pm
This will do most of what you ask. You don't have a field that supports a sort consistent with your expected output, so I've used the one that comes...
January 25, 2018 at 10:35 am
January 25, 2018 at 9:33 am
This is the same problem as here. Don't start a new thread just because you don't like the answers that you are getting on your original thread.
Drew
January 25, 2018 at 9:24 am
If you want the dates as the header, you will need to either use dynamic SQL or use...
January 24, 2018 at 2:45 pm
January 24, 2018 at 9:57 am
You're overcomplicating your formula. There is no reason to cast to float. Just use integer division.
UPDATE t1
SET set_no = t2.set_no
FROM #sample t1
INNER JOIN...
January 24, 2018 at 8:56 am
Viewing 15 posts - 1,306 through 1,320 (of 4,087 total)