On Wed, Jan 21, 2004 at 09:18:18 -0800,
  Ron St-Pierre <[EMAIL PROTECTED]> wrote:
> 
> My question is in regards to steps 2 and 3 above. Is there some way that 
> I can combine both steps into one to save some time?
 
TIP 4: Don't 'kill -9' the postmaster
SELECT SS.* FROM
(SELECT DISTINCT ON (nonUniqField)
 first, second, third, cost, payDate, nonUniqField
 FROM histdata
 WHERE userID = 19048 AND cost IS NOT NULL 
 ORDER BY nonUniqField, payDate DESC LIMIT 200
)
SS  
ORDER BY payDate;

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to