Viewing 15 posts - 406 through 420 (of 3,482 total)
LEFT(SourceString,4) & FORMAT(RIGHT(SourceString,2),"000")
?
January 9, 2022 at 2:43 am
Thanks for the update. It's pretty much what I expected to have to do... use something (PowerBI, Excel) to generate the PowerQuery and then copy and paste.
January 7, 2022 at 7:09 pm
What was the solution? I'd be interested to know, because I haven't used PowerQuery inside SSIS yet.
(Do you still have to write the PowerQuery in Excel or PowerBI and then...
January 6, 2022 at 3:14 pm
Are you in SSRS or in ReportBuilder?
As far as I know, they should show if you're in SSRS. I haven't used ReportBuilder in so long I honestly don't remember anymore...
January 4, 2022 at 5:31 am
I want so say you create a function that generates the page(s) you need to go to. I saw Reza Rad do it in a class I took. It was...
January 4, 2022 at 12:22 am
It looks like you can now use PowerQuery as a source in SSIS. The nice thing is that Excel can write PowerQuery for you - all you have to do...
January 3, 2022 at 3:26 am
Please help us to help you. Read Jeff Moden's article "Forum Etiquette: How to post data/code on a forum to get the best help", and follow the instructions outlined...
January 1, 2022 at 1:57 am
Each location with at least 3 different start dates.
SELECT loc
FROM (VALUES ('SAMSCLUB.COM','2021-12-05',42110)
,('SAMSCLUB.COM','2021-12-12',11731)
,('SAMSCLUB.COM','2021-12-19',9886)) d(loc,StartDate,Forecast)
GROUP BY loc
HAVING COUNT(DISTINCT(d.StartDate)) >= 3;
loc column will contain all values for which the predicate...
December 31, 2021 at 5:47 am
You'd evaluate "3 in a row" rule with something like
ThreeInARow = CASE WHEN columName = LAG([columnName],1) AND columName = LAG([columnName],2) THEN 1 ELSE 0 END
December 31, 2021 at 1:38 am
CREATE TABLE scripts are the scripts to create the tables that you have in your database. If you right-click on the table in the SQL Browser window, one of the...
December 30, 2021 at 7:48 pm
You need to post CREATE TABLE and INSERT scripts so people who are trying to help you can work on your question and not guess about your table structures etc....
December 29, 2021 at 5:03 pm
Look up STRING_AGG() function in Books Online. It was added in SQL Server 2017.
So you're stuck with STUFF. Sorry.
December 28, 2021 at 2:29 am
You would have to use two separate queries to accomplish it if you replace the LEFT JOIN.
UPDATE r
SET r.HasChemical=CASE WHEN cm.partid IS NOT NULL THEN 'HasChemical' ELSE...
December 28, 2021 at 2:19 am
You would have to filter those out in the WHERE clause in the inner query.
SELECT FIRSTVALUE(…)
FROM (Select…WHERE elementID !=‘C’)
December 24, 2021 at 11:49 pm
Disassemble the CTE into single queries and run them one at a time?
insert the intermediate results into a temporary table once you fix them and then query tempdb?
December 24, 2021 at 1:12 am
Viewing 15 posts - 406 through 420 (of 3,482 total)