pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Ward <brian0@verizon.net>
To: pgsql-sql@postgresql.org
Subject: Need some SQL help
Date: Sun, 6 Oct 2002 11:41:46 -0400
Message-ID: <anplc4$3ci$1@news.hub.org> (raw)

I have a table
id         int
status    int
create_dt datetime

When users log in and out I insert a row into this table throughout the day.
I'm trying though to come up with a querie to tell me and ordering of users
as they report in in the morning so i'm trying to say
select each user and the earliest time the logged in in a give day, then
order that by the create_dt column.

Having trouble writing the SQL though





view thread (2+ messages)  latest in thread

Message-ID: <anplc4$3ci$1@news.hub.org>
Permalink:  ../anplc4$3ci$1@news.hub.org/
Also on:    postgresql.org/message-id/anplc4$3ci$1@news.hub.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: brian0@verizon.net
  Subject: Re: Need some SQL help
  In-Reply-To: <anplc4$3ci$1@news.hub.org>

* 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