btamulis 12/5/2024 11:46:55 AM

SQL Syntax for Comparing two dates from a single row that would expose different posting periods

In GP we are always looking for subledger transactions that posted in different periods than the GL Journal entry.

Example - I have a complex SQL view that combines sub-ledger cash transactions and the Journal Entry that was created. In theory all cash receipts posted in a certain month should have corresponding Journal Entries in the same month.

I need to compare DepositGLPostingDate to ReceiptGLPostingDate - just for different periods (months). Example below. 

If the dates are different but in same month - I don't want to see them - make sense? 

Version: All
Section: SQL Scripts


Table Definition Quick Links
All Tables
SOP Tables
RM Tables
GL Tables
POP Tables
HR Tables
PM Tables
UPR Tables
IV Tables
Olympic Tables
3