Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Last record Post Reply Post New Topic
Author Message
kristal
Newbie
Newbie
Avatar

Joined: 23 Jul 2008
Location: United Arab Emirates
Online Status: Offline
Posts: 6
Quote kristal Replybullet Topic: Last record
     Posted: 30 Aug 2009 at 10:03pm
Hi,
 
I am attempting to generate a report  for all Items whose quantity on hand is not equal to zero and whose last inventory transactions in the database was on or before 31/12/2004. Inventory transactions in the database are identified by transaction types "pur-stk", "pur-mtl", "stk-mtl".physical count transaction type "adj-cnt" is to be excluded from the search criteria
 
what query would be suitable for the above. i am basically stuck with the syntax to be adopted for the "last transaction" search in the table. table to be searched is the Part transaction History table, which as we know is one of the larger tables in an ERP db. 
 
thanks in advance.
kris
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 31 Aug 2009 at 6:43am
where max(transdate) <= '31/12/2004' and tranType <> 'adj-cnt'
 
that is my guess, or at least my first try.
 
HTH
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum