Viewing 15 posts - 1,681 through 1,695 (of 13,855 total)
Thanks, Jeff. Truly appreciate your help with this!
--snip
I am just curious as to what procedure you will be using. I was digging around a bit and I came across...
December 12, 2021 at 3:48 pm
Can you provide DDL and sample data for dbo.ConvoHrs, rather than asking people to use guesswork?
December 11, 2021 at 7:32 am
As TangoVictor mentions, there are other possibilities.
One is to keep the filename exactly as it is and instead modify your 'subsequent processing' tasks to use a variable file name. This...
December 10, 2021 at 11:09 am
but when I copy and paste them in Excel and calculate the numbers they are identical to when I sum them in SQL.
In Excel, you see the incorrect...
December 9, 2021 at 4:25 pm
SELECT ItemCode from T1 UNION SELECT ItemCode from T2
December 9, 2021 at 3:53 pm
Hi Phil,
Nice to hear from you. I will try this. I hope you have a great holiday and stay safe!
Thank you very much! If you have trouble getting this...
December 9, 2021 at 3:52 pm
Hello,
So basically I have an SSIS package that fails when I use an older version of excel (xls). I cannot change the way the excel file is loaded since...
December 9, 2021 at 2:58 pm
Hi
I have below data in attached file
Thanks
This seems a bit terse. What are you trying to achieve?
Note that many people (including me) choose not to open non-text attachments –...
December 9, 2021 at 2:13 pm
Yup, I was one of the 'most people' crowd, thanks for alerting me to that, Jeff. Always good to be aware of these extra possibilities. It was also only recently...
December 9, 2021 at 12:09 pm
We cannot give you a definitive answer, because we can't see your data or table structures. But the fact that each of the queries works individually, but not when joined,...
December 9, 2021 at 10:07 am
CONCAT_WS() "concat with separator" ignores the nulls
select concat_ws(' | ', t.Col1, t.Col2, t.Col3) [output]
from #t t;
Wow, never even seen that function before, cool stuff, Steve.
December 8, 2021 at 3:31 pm
Here is a quick solution. There will be more elegant ways, I'm sure:
DROP TABLE IF EXISTS #t;
CREATE TABLE #t
(
Col1 CHAR(1) NULL
...
December 8, 2021 at 11:28 am
Are you hoping for some T-SQL, or are the suggestions already provided sufficient?
December 7, 2021 at 4:38 pm
Can you tell us what you would like the answer to be, for your example of 295, 3, 0?
One formula which avoids the problem is to calculate any two of...
December 7, 2021 at 2:55 pm
I created a temp table and inserted your XML doc into it. The following code worked for me
SELECT ChannelId = v.n1.value('(.)[1]', 'INT')
FROM #SomeXML sx
... December 7, 2021 at 10:08 am
Viewing 15 posts - 1,681 through 1,695 (of 13,855 total)