Viewing 11 posts - 1 through 11 (of 11 total)
I added a distinct but it is still taking so long. Did i put the distinct in the wrong places?
left join ( select distinct(shipment_id) from custom_cs.apj where apdelay > 0
union...
July 8, 2022 at 12:31 pm
I will give it a try and let you know.
July 7, 2022 at 8:14 pm
I added to the group by and it is really taking to long it is at 3000 seconds and this is just a select statement. ARH table has 4000 approximate...
July 7, 2022 at 7:25 pm
The case statement is running now. I appreciate it alot.
July 7, 2022 at 6:22 pm
IF elseif is in green don't know why it isn't red as was the joins. The joins in red are what is referenced to in the green if else if.
The...
July 7, 2022 at 6:04 pm
I have one more issue just brought to my attention. If the apdelay = 0 then No needs to be put into the delay field.
UPDATE tbl_salesactivity sn
INNER JOIN apj aj
ON...
July 6, 2022 at 2:51 pm
UPDATE tbl_salesactivity_new sn
INNER JOIN arh ar
ON sn.shipment = ar.shipment_i
AND ar.ardelay > '0'
SET sn.delay = 'Yes'
July 1, 2022 at 6:49 pm
I get an error From is not valid at this position expecting eof
July 1, 2022 at 6:28 pm
Thank you and i appreciate you letting me know about attaching a doc. My apologies and i will remember in the future.
Did you mean like the below?
update sn
set
sn.delay = 'Yes'
FROM
arh...
July 1, 2022 at 5:54 pm
I tried the below but syntax is not correct.
update tbl_salesactivity_new
set
tbl_salesactivity_new.delay = 'Yes'
FROM
arh ar
inner join
tbl_salesactivity_new sn
on sn.shipment = ar.shipment_id
where arh.ardelay > 0
July 1, 2022 at 4:28 pm
Viewing 11 posts - 1 through 11 (of 11 total)