Viewing 15 posts - 2,401 through 2,415 (of 13,852 total)
if I understand right, you want to do an insert into 2 different temp tables from a CTE in a single query? If so, I don't think that is...
September 8, 2020 at 10:01 pm
Try this:
DROP TABLE IF EXISTS #Sales;
DROP TABLE IF EXISTS #FiscalPeriods;
CREATE TABLE #Sales
(
SOPTYPE SMALLINT NOT NULL
,SOPNUMBE CHAR(21) NOT NULL
...
September 7, 2020 at 10:00 pm
I tried =IIf(Round(Fields!Qty1.Value,3) = Round(Fields!Qty2.Value,3),"Red","Black") and it is not working. Could it be because we have some NULL values?
What does "not working" mean?
September 3, 2020 at 9:19 pm
I was hoping for a quick resolution. But i guess tou ar right i need to develop an algo.
Thanks for all the help
Cheers
Had you been able/prepared to accurately describe...
September 1, 2020 at 1:39 pm
I am going to let someone else try to help you. I do not understand.
August 31, 2020 at 6:45 pm
I already tried something similar. But, it does not work.
Cheers
Not very helpful.
It provides the output you requested, so what's the problem?
August 31, 2020 at 5:53 pm
I found one thing, the packages from colleague A (the ones working) have the scripts as "directinput" whereas the packages from colleague B (the ones throwing error path not found)...
August 31, 2020 at 5:47 pm
This provides the desired results (I think), but I'm not convinced it's the best solution.
DROP TABLE IF EXISTS #Custom;
CREATE TABLE #Custom
(
Noseqtrt SMALLINT NULL
...
August 31, 2020 at 5:35 pm
Taking the case where NoSeqTrt = 4, would it be correct to say that there are eight students at that stop, including two sets of siblings?
And your desired ranking logic...
August 31, 2020 at 4:31 pm
What does the Number Address column represent, exactly?
August 31, 2020 at 3:05 pm
Instead of
TRIM(x)
Use
LTRIM(RTRIM(x))
August 28, 2020 at 7:48 pm
This worked:
SELECT t.*
, ca.value
FROM #tblTest t
CROSS APPLY STRING_SPLIT(t.FileData, ';') ca
WHERE LEN(TRIM(ca.Value))>0;
Really?

August 28, 2020 at 7:47 pm
Parsename() works only on strings which have . (full-stop) as their delimiter.
If there are only ever two columns, here is one way:
DROP TABLE IF EXISTS #Test;
CREATE TABLE...
August 28, 2020 at 7:18 pm
You need to declare those variables in sp_executesql as OUTPUT parameters
And map them to package variables, to use them in subsequent tasks.
August 28, 2020 at 3:21 pm
Viewing 15 posts - 2,401 through 2,415 (of 13,852 total)