Viewing 15 posts - 601 through 615 (of 1,402 total)
The tone of this response has changed significantly since the notification email I got, with its contents. I was going to remind you that sites like this have "points"...
August 13, 2021 at 3:19 pm
Welp, it seems worthwhile mentioning reputation points in an online forum, i.e. Stack Overflow, are a good way to enhance your resume.
August 13, 2021 at 1:42 pm
But before we even think of getting started on this, let's NOT do it here. Let's open a separate thread and have the OP provide some reasonable sample data...
August 11, 2021 at 3:07 pm
There are some caveats which should've been mentioned. The string is declared as NVARCHAR(MAX) because I don't know that that's not appropriate. The ordinal splitter is name '%8K_LEAD' because it's...
August 11, 2021 at 2:42 pm
The issue with parsing is there are 6 different delimiters (including 'Supervisor') when you really only need 1. With 1 delimiter an ordinal splitter (which is based on a tally...
August 11, 2021 at 2:08 pm
It's the same idea with a clock as with a calendar
July 27, 2021 at 12:46 pm
It appears spacing within certain code blocks have been removed. It appears to be retroactive across history too.
In my most recent response the spaces in the results code block appear...
July 27, 2021 at 12:32 pm
"...is it possible to determine the number of years to be able to iterate them and in each turn set the new dates?"
To determine the number of years "to iterate"...
July 27, 2021 at 12:12 pm
Maybe this
SELECT D.DocumentID AS [Document ID], D.Filename AS [Document Filename],
XR.XRefDocument As [Child Document ID], D2.Filename AS [Child Filename],
...
July 27, 2021 at 10:02 am
Maybe it's better to nest PATINDEX functions instead of reversing the string(s)
declare
@srch varchar(100)='%[1-2][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]%';
/*...
July 23, 2021 at 1:30 pm
This can be a bit of a pita. It helps greatly if there is one and only one acceptable date format, like YYYY-MM-DD (padded with zeros). Another issue is what...
July 23, 2021 at 12:05 pm
"How can I insert as zero amount if not exist in my working table?"
It seems maybe you're looking to LEFT JOIN the two tables together. Obviously, you cannot assign attributes...
July 22, 2021 at 10:22 am
Maybe something like this. I added some additional example rows. It's similar to this other post imo.
insert #temp_docs(BegVal, EndVal, Volume, Prefix, Padding, begnum, endnum) values
('ABC000063738', 'ABC000063738',...
July 21, 2021 at 10:22 pm
Similar to Jeffrey's answer
with lead_cte as (
select *, lead(begnum) over (partition by Prefix order by begnum) lead_bn
from #temp_docs)
select concat(lc.Prefix,...
July 20, 2021 at 10:12 pm
You could try it like this
DECLARE @CallDateTime DATETIME = '20190331 00:08:13'
DECLARE @Duration NVARCHAR(25) = '01:18:04'
declare @t datetime=@duration;
select @t+@CallDateTime...
July 16, 2021 at 7:00 pm
Viewing 15 posts - 601 through 615 (of 1,402 total)