Day name, month name from a datetime field

From: "Deepa K" <kdeepa(at)midascomm(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Day name, month name from a datetime field
Date: 2005-01-04 12:13:34
Message-ID: 2097.192.168.13.85.1104840814.squirrel@192.168.13.85
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,
I have a table which will have two datetime fields (logintime and
logouttime).

logintime : time at which the user is logged in
logouttime : time at which the user is logged out.

Is it possible to get the rows from table where the day is sunday.

And also is it possible to map the days in all rows to day name and similarly
is it possible to map the month in all rows to month name.

--
regards,
Deepa K

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Keith Worthington 2005-01-04 12:15:56 Re: Creating a clean database
Previous Message Sean Davis 2005-01-04 11:58:09 Re: perl DBI and SQL COPY