Need some SQL help

From: "Brian Ward" <brian0(at)verizon(dot)net>
To: pgsql-sql(at)postgresql(dot)org
Subject: Need some SQL help
Date: 2002-10-06 15:41:46
Message-ID: anplc4$3ci$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Aasmund Midttun Godal 2002-10-06 15:57:47 Suggestion: md5/crypt functions in sql
Previous Message Brian Ward 2002-10-06 15:38:46 Re: timestamp