Return-Path: <root@fatcity.cts.com>
Received: from ensim.rackshack.net (root@localhost)
 by orafaq.net (8.11.6/8.11.6) with ESMTP id h0EMTeL07656
 for <oracle-l@orafaq.net>; Tue, 14 Jan 2003 16:29:40 -0600
X-ClientAddr: 209.68.248.164
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by ensim.rackshack.net (8.11.6/8.11.6) with ESMTP id h0EMTdp07651
 for <oracle-l@orafaq.net>; Tue, 14 Jan 2003 16:29:39 -0600
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id GAA49441;
 Tue, 14 Jan 2003 06:49:33 -0800 (PST)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 0052F05E; Tue, 14 Jan 2003 06:09:35 -0800
Message-ID: <F001.0052F05E.20030114060935@fatcity.com>
Date: Tue, 14 Jan 2003 06:09:35 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Jamadagni, Rajendra" <Rajendra.Jamadagni@espn.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Jamadagni, Rajendra" <Rajendra.Jamadagni@espn.com>
Subject: RE: dates
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: multipart/mixed;	boundary="----=_NextPartTM-000-bf00d20f-3c67-47aa-b371-23e338247d5f"
------=_NextPartTM-000-bf00d20f-3c67-47aa-b371-23e338247d5f
Content-Type: multipart/alternative;
 boundary="----_=_NextPart_001_01C2BBD6.BA04AFE0"
------_=_NextPart_001_01C2BBD6.BA04AFE0
Content-Type: text/plain;
 charset="iso-8859-1"

SELECT NEXT_DAY(SYSDATE + 7*(rnum-1),'Friday') FROM (SELECT ROWNUM rnum FROM
DBA_OBJECTS)
/

Feel free to add a where clause
Raj
______________________________________________________
Rajendra Jamadagni		MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!


-----Original Message-----
Sent: Tuesday, January 14, 2003 8:19 AM
To: Multiple recipients of list ORACLE-L


I have a table with 1 column. I want to populate it
with the dates of all the fridays for the last 2 years
and the next 2 years from sysdate.

so..

today is 14-JAN-2003

My column will have..

10-jan-2003
03-jan-2003
...
..
17-jan-2003
24-jan-2003

Any ideas?

Cheers


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Imran Ashraf
  INET: imran9a@yahoo.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

------_=_NextPart_001_01C2BBD6.BA04AFE0
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.19">
<TITLE>RE: dates</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>SELECT NEXT_DAY(SYSDATE + 7*(rnum-1),'Friday') FROM =
(SELECT ROWNUM rnum FROM DBA_OBJECTS)</FONT>
<BR><FONT SIZE=3D2>/</FONT>
</P>

<P><FONT SIZE=3D2>Feel free to add a where clause</FONT>
<BR><FONT SIZE=3D2>Raj</FONT>
<BR><FONT =
SIZE=3D2>______________________________________________________</FONT>
<BR><FONT SIZE=3D2>Rajendra Jamadagni&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MIS, ESPN Inc.</FONT>
<BR><FONT SIZE=3D2>Rajendra dot Jamadagni at ESPN dot com</FONT>
<BR><FONT SIZE=3D2>Any opinion expressed here is personal and doesn't =
reflect that of ESPN Inc. </FONT>
<BR><FONT SIZE=3D2>QOTD: Any clod can have facts, but having an opinion =
is an art!</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Imran Ashraf [<A =
HREF=3D"mailto:imran9a@yahoo.com">mailto:imran9a@yahoo.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, January 14, 2003 8:19 AM</FONT>
<BR><FONT SIZE=3D2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=3D2>Subject: dates</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>I have a table with 1 column. I want to populate =
it</FONT>
<BR><FONT SIZE=3D2>with the dates of all the fridays for the last 2 =
years</FONT>
<BR><FONT SIZE=3D2>and the next 2 years from sysdate.</FONT>
</P>

<P><FONT SIZE=3D2>so..</FONT>
</P>

<P><FONT SIZE=3D2>today is 14-JAN-2003</FONT>
</P>

<P><FONT SIZE=3D2>My column will have..</FONT>
</P>

<P><FONT SIZE=3D2>10-jan-2003</FONT>
<BR><FONT SIZE=3D2>03-jan-2003</FONT>
<BR><FONT SIZE=3D2>...</FONT>
<BR><FONT SIZE=3D2>..</FONT>
<BR><FONT SIZE=3D2>17-jan-2003</FONT>
<BR><FONT SIZE=3D2>24-jan-2003</FONT>
</P>

<P><FONT SIZE=3D2>Any ideas?</FONT>
</P>

<P><FONT SIZE=3D2>Cheers</FONT>
</P>
<BR>

<P><FONT =
SIZE=3D2>__________________________________________________</FONT>
<BR><FONT SIZE=3D2>Do you Yahoo!?</FONT>
<BR><FONT SIZE=3D2>Yahoo! Mail Plus - Powerful. Affordable. Sign up =
now.</FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://mailplus.yahoo.com" =
TARGET=3D"_blank">http://mailplus.yahoo.com</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Please see the official ORACLE-L FAQ: <A =
HREF=3D"http://www.orafaq.net" =
TARGET=3D"_blank">http://www.orafaq.net</A></FONT>
<BR><FONT SIZE=3D2>-- </FONT>
<BR><FONT SIZE=3D2>Author: Imran Ashraf</FONT>
<BR><FONT SIZE=3D2>&nbsp; INET: imran9a@yahoo.com</FONT>
</P>

<P><FONT SIZE=3D2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- =
858-538-5051 <A HREF=3D"http://www.fatcity.com" =
TARGET=3D"_blank">http://www.fatcity.com</A></FONT>
<BR><FONT SIZE=3D2>San Diego, =
California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list =
and web hosting services</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------------=
------</FONT>
<BR><FONT SIZE=3D2>To REMOVE yourself from this mailing list, send an =
E-Mail message</FONT>
<BR><FONT SIZE=3D2>to: ListGuru@fatcity.com (note EXACT spelling of =
'ListGuru') and in</FONT>
<BR><FONT SIZE=3D2>the message BODY, include a line containing: UNSUB =
ORACLE-L</FONT>
<BR><FONT SIZE=3D2>(or the name of mailing list you want to be removed =
from).&nbsp; You may</FONT>
<BR><FONT SIZE=3D2>also send the HELP command for other information =
(like subscribing).</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2BBD6.BA04AFE0--


------=_NextPartTM-000-bf00d20f-3c67-47aa-b371-23e338247d5f
Content-Type: text/plain;
 name="ESPN_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="ESPN_Disclaimer.txt"

*********************************************************************This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.*********************************************************************1

------=_NextPartTM-000-bf00d20f-3c67-47aa-b371-23e338247d5f--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni@espn.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

