If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > syntax need please

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-11, 05:13
dmac25 dmac25 is offline
Registered User
 
Join Date: Jul 2009
Posts: 28
syntax need please

My table of PCusers logons consists of 6 columns, as follows :

PC address
UserID
Last Logon Day
Last Logon Month
Last Logon Time
Last Logoff Time

Unfortunately, my application can load the same info’ on more than one occasion.

eg
locn1 user1 17 Jan 09:29 09:37
locn1 user1 17 Jan 09:29 09:37

I know I can use the “distinct” command to limit one display per group.

However, it can happen that the 2nd load will return the same
PC address & UserID, but for a later time.

eg
locn1 user1 17 Jan 09:40
locn1 user1 17 Jan 09:29 09:37
locn1 user1 17 Jan 09:29 09:37
or
locn1 user1 17 Jan 09:40 09:42
locn1 user1 17 Jan 09:29 09:37
locn1 user1 17 Jan 09:29 09:37

Can anyone advise the syntax I need so that I only ever get the latest dataset displayed ?
Many thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On