pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jackson, DeJuan <djackson@cpsgroup.com>
To: vikrant@chemquick.com
Cc: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] Mail for error in tuples
Date: Fri, 11 Jun 1999 14:08:32 -0500
Message-ID: <D05EF808F2DFD211AE4A00105AA1B5D2221BFF@cpsmail> (raw)

It might be best if you gave us an actual example or two in stead of trying
to describe the situation (I couldn't follow it, I have no idea what a
radius log is either).  So, show us what you're after.
	-DEJ

> -----Original Message-----
> From:	Vikrant Rathore [SMTP:vikrant@chemquick.com]
> Sent:	Friday, June 11, 1999 1:45 PM
> To:	pgsql-sql@postgreSQL.org
> Subject:	[SQL] Mail for error in tuples
> 
> Dear friend,
> 
>     I have a table named radius with structure
> 
> Table    = radius
> +----------------------------------+----------------------------------+---
> ----+
> 
> |              Field               |              Type                |
> Length|
> +----------------------------------+----------------------------------+---
> ----+
> 
> | uname                            | char()
> |   256 |
> | logdate                          | date
> |     4 |
> | logtime                          | time
> |     8 |
> | duration                         | timespan
> |    12 |
> | status                           | char()
> |    20 |
> | nasadd                           | char()
> |    20 |
> | port                             | int4
> |     4 |
> | bytesin                          | int4
> |     4 |
> | bytesout                         | int4
> |     4 |
> | packin                           | int4
> |     4 |
> | packout                          | int4
> |     4 |
> | misc                             | int4
> |     4 |
> +----------------------------------+----------------------------------+---
> ----+
> 
> I keep my radius log in this table.
> 
> Now in this logdate and logtime are the last logout date and time for
> the particular user.
> 
> But sometimes the logdate and logtime and duration are wrong so inorder
> to correct i have to do following can anyone help me how to do it.
> 
> I want to select the tuples of particular user and test the first
> logdate and logtime with the next tuples logdate and logtime and the
> duration in the second tuple should not be greater than the difference
> of this two tuples if its greater than the difference then it needs to
> be set to the difference of the two logdate and logtime. I have to test
> it till the last tuple.
> So can anyone suggest me query for this job.
> 
> Thanks in advance.
> 
> Regards,
> Vicky
> 
> 



view thread (4+ messages)  latest in thread

Message-ID: <D05EF808F2DFD211AE4A00105AA1B5D2221BFF@cpsmail>
Permalink:  ../D05EF808F2DFD211AE4A00105AA1B5D2221BFF@cpsmail/
Also on:    postgresql.org/message-id/D05EF808F2DFD211AE4A00105AA1B5D2221BFF@cpsmail

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: djackson@cpsgroup.com, vikrant@chemquick.com
  Subject: Re: [SQL] Mail for error in tuples
  In-Reply-To: <D05EF808F2DFD211AE4A00105AA1B5D2221BFF@cpsmail>
  References: <D05EF808F2DFD211AE4A00105AA1B5D2221BFF@cpsmail>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox