Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> SQL Puzzle
Hi I have the table with the following records
SQLWKS> SELECT TO_CHAR(price, '$99,999,999') , TO_CHAR(when_closed, 'MM/DD')
2> FROM player_close 3> WHERE player_id = 1002 4> AND when_closed >= SYSDATE - 14 5>
$12,190,000 11/18
$12,270,000 11/19
$12,310,000 11/22
$12,290,000 11/23
$12,230,000 11/24
$12,310,000 11/25
$12,380,000 11/26
$12,530,000 11/29
$12,590,000 11/30
10 rows selected.
but the output I would like is
$12,080,000 11/18
$12,190,000 11/19
$12,270,000 11/22
$12,310,000 11/23
$12,290,000 11/24
$12,230,000 11/25
$12,310,000 11/26
$12,380,000 11/29
$12,530,000 11/30
$12,590,000 sysdate
basically moving up the date.
Any suggestions?
Andrey Dmitriev eFax: (978) 383-5892 Daytime: (917) 373-5417 AOL: NetComrade ICQ: 11340726 remove NSPAM to emailReceived on Tue Nov 30 1999 - 10:20:37 CST