Viewing 15 posts - 1,291 through 1,305 (of 13,838 total)
Jonathan AC Roberts wrote:Yes, I wasn't really thinking about performance either as that wasn't mentioned in the question.
There is no question!
I took "I need to update my sql script...
July 5, 2022 at 9:34 am
Yes, I wasn't really thinking about performance either as that wasn't mentioned in the question.
There is no question!
July 5, 2022 at 9:24 am
Your suggested query should use UNION ALL rather than UNION (which applies an unwanted (in this case) 'DISTINCT' to the results returned). Only 'read' access is required for this query.
However,...
July 5, 2022 at 9:23 am
M can do it, but if you have hundreds of thousands of rows of data, it will take a while.
Are you just looking for help with the necessary M syntax?
July 5, 2022 at 8:30 am
Does the data come from a single database? Performance-wise, I'd suggest doing as much of the 'heavy-lifting', in terms of ETL and combining result sets, using the SQL Server database...
July 5, 2022 at 7:33 am
Hi Phil,
I would like to create the same script without using a UNION, but I'm not sure how to do that.
It is impossible. Remove UNION from the script and...
July 4, 2022 at 11:33 am
OK ... but what is your question?
July 4, 2022 at 11:27 am
If you want someone to attempt a coded solution, please provide the sample data in a consumable format. With > 3,000 points, I'm sure you know what that means.
Also, it...
July 4, 2022 at 9:18 am
It really is great when people are polite, enthusiastic and post back with gratitude. Pleade keep on posting and learning.
July 3, 2022 at 8:02 pm
I am Phil, just like you told me so. But i wouldn't like to "repeat" the company name. Is this the only way? Can't i write Company instead of...
July 3, 2022 at 6:08 pm
This, maybe? (Assuming you are using the table aliases I suggested)
CONCAT(cd.Serie, ' - ', 'S&A', ' - ',ld.CCustoCBL) AS JoinCC
July 3, 2022 at 3:34 pm
Ah, please ignore my first answer, which would add a column to a physical table. If all you want to do is add another column to the query, it's as...
July 3, 2022 at 1:07 pm
Here is some code which demonstrates this. Notice that I have changed your constraint name to follow the convention DF_[tablename]_[columnname], because constraint names must be unique (within schema).
July 3, 2022 at 12:22 pm
UPDATE tbl_salesactivity_new sn INNER JOIN arh ar ON sn.shipment = ar.shipment_i AND ar.ardelay > '0' SET sn.delay = 'Yes'
That is almost correct. Just need to shuffle things round a...
July 3, 2022 at 9:16 am
If you provide your sample data in a more accessible form, like this, you will probably get more responses:
DROP TABLE IF EXISTS #Transaction;
CREATE TABLE #Transaction(Transaction_Id INT, Date_Transaction...
July 1, 2022 at 6:50 am
Viewing 15 posts - 1,291 through 1,305 (of 13,838 total)