Tuesday, September 23, 2025

How to update column Based on joins in sql

 How to update column Based on joins in sql :-


UPDATE GeneralJournalAccountEntry

SET IS_ConsolidationMainAccount = '',

 IS_ConsolidateAccountName = ''

FROM GeneralJournalAccountEntry AS GJAE

 JOIN GeneralJournalEntry AS GJE

    ON GJE.RecId = GJAE.GeneralJournalEntry

WHERE GJE.SubledgerVoucherDataAreaId = 'VN06'

and GJE.ACCOUNTINGDATE > '2025-01-01'

No comments:

Post a Comment

How to handle DB restore error.

 ERROR;- The transaction log for database 'AXDB_NewCON' is full due to 'ACTIVE_TRANSACTION'. If this error occurs, it means ...