Viewing 15 posts - 1,681 through 1,695 (of 13,849 total)
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
You need to change the role memberships within MSDB. Untick everything except db_owner and try again.
December 7, 2021 at 9:29 am
Where is the DDL, sample data, desired results?
Merely providing a mass of unformatted code is not the way to get results, as you well know.
December 6, 2021 at 6:58 pm
Please try renaming your XML file as .TXT and attaching again. Some file types are blocked.
December 6, 2021 at 6:56 pm
Then I am out of ideas. Anyone else care to help?
December 6, 2021 at 4:28 pm
You really can't see why?
If User X has 10 rows of data, each with a different 'created-at' value, which one of those values would you wish to return in the...
December 6, 2021 at 4:02 pm
Thanks! One thing what if I need to add a field like [Date] (which I may want to do grouping on later)? It wants this added to the 'group...
December 6, 2021 at 3:35 pm
Viewing 15 posts - 1,681 through 1,695 (of 13,849 total)