|
Hello Vinay,
Am 27.10.2024 um 16:20 schrieb Vinay Gavankar <vinaygav@xxxxxxxxx>:
Hi All,sure what the following SQL is doing and how to convert it. I THINK it is
I have been asked to convert some SQL server SQLs to DB2 SQLs. I am not
getting the date for the Monday of this week. Even if it is true, I don't
know how to do it in DB2 SQL.
If you don't know what it's meant to do, how should anyone know how to
"convert" it? This isn't an IBM i question, strictly.
UPDATE DIVTOPRCSS SET EAS_START_DT = CONVERT(VARCHAR (10),DATEADD(DAY,
DATEDIFF(DAY, 6, GETDATE())/7* 7, 0), 126) WHERE ISSUEID IN ('109452',
'1099999', '1100000')
Any help will be greatly appreciated
Search documentation on the internet and lookup the statements. Use an
existing SQL server, play a bit with the parameters and learn further what
it's meant to do.
Then we might be able to help with translating to DB2/UDB SQL.
:wq! PoC
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.