Pages
Home
GP
AX
SQL Server
Downloads
Partners
Apr 8, 2011
SQL Script to find missing or deleted Journal No in Microsoft GP
Posted by
Venugopal G A
@
11:23 AM
Script
------------------------------------------------------------------------- -- Find Missing or deleted Journal Entry No in Microsoft GP -- Code by Venugopal G A -- mail me if you need query for other type of transactions or for any -- queries venuasg@gmail.com ------------------------------------------------------------------------- If Object_Id('tempdb..#tempJV') is Not Null Drop table #tempJV create table #tempJV ( JVno int, MJV int identity(1,1) ) insert into #tempJV (JVno) (select distinct JRNENTRY from GL20000 ) select wg.MJV as id_is_missing from #tempJV wg left join #tempJV ti on wg.MJV = ti.JVno where ti.JVno is null order by wg.MJV
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment