Calendar format

Hi
I have to write a select query for display 2011 year calendar. Same calander format(style).
Please advise...!!!
Regards
Ar

Here is the one by Tom Kyte:
SQL> break on month skip 1
SQL> set linesize 130
SQL> set pagesize 999
SQL> column month format a20
SQL> select lpad( Month, 20-(20-length(month))/2 ) month,
  2             "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"
  3        from (
  4      select to_char(dt,'fmMonthfm YYYY') month,
  5             to_char(dt+1,'iw') week,
  6             max(decode(to_char(dt,'d'),'1',lpad(to_char(dt,'fmdd'),2))) "Su",
  7             max(decode(to_char(dt,'d'),'2',lpad(to_char(dt,'fmdd'),2))) "Mo",
  8             max(decode(to_char(dt,'d'),'3',lpad(to_char(dt,'fmdd'),2))) "Tu",
  9             max(decode(to_char(dt,'d'),'4',lpad(to_char(dt,'fmdd'),2))) "We",
10            max(decode(to_char(dt,'d'),'5',lpad(to_char(dt,'fmdd'),2))) "Th",
11            max(decode(to_char(dt,'d'),'6',lpad(to_char(dt,'fmdd'),2))) "Fr",
12            max(decode(to_char(dt,'d'),'7',lpad(to_char(dt,'fmdd'),2))) "Sa"
13       from ( select trunc(sysdate,'y')-1+rownum dt
14                from all_objects
15               where rownum <= add_months(trunc(sysdate,'y'),12) -
16  trunc(sysdate,'y')
17     )
18      group by to_char(dt,'fmMonthfm YYYY'), to_char( dt+1, 'iw' )
19            )
20      order by to_date( month, 'Month YYYY' ), to_number(week)
21  /
MONTH                Su Mo Tu We Th Fr Sa
    January 2011      2  3  4  5  6  7  8
                      9 10 11 12 13 14 15
                     16 17 18 19 20 21 22
                     23 24 25 26 27 28 29
                     30 31
                                        1
   February 2011            1  2  3  4  5
                      6  7  8  9 10 11 12
                     13 14 15 16 17 18 19
                     20 21 22 23 24 25 26
                     27 28
     March 2011             1  2  3  4  5
                      6  7  8  9 10 11 12
                     13 14 15 16 17 18 19
                     20 21 22 23 24 25 26
                     27 28 29 30 31
     April 2011                      1  2
                      3  4  5  6  7  8  9
                     10 11 12 13 14 15 16
                     17 18 19 20 21 22 23
                     24 25 26 27 28 29 30
      May 2011        1  2  3  4  5  6  7
                      8  9 10 11 12 13 14
                     15 16 17 18 19 20 21
                     22 23 24 25 26 27 28
                     29 30 31
     June 2011                 1  2  3  4
                      5  6  7  8  9 10 11
                     12 13 14 15 16 17 18
                     19 20 21 22 23 24 25
                     26 27 28 29 30
     July 2011                       1  2
                      3  4  5  6  7  8  9
                     10 11 12 13 14 15 16
                     17 18 19 20 21 22 23
                     24 25 26 27 28 29 30
                     31
    August 2011          1  2  3  4  5  6
                      7  8  9 10 11 12 13
                     14 15 16 17 18 19 20
                     21 22 23 24 25 26 27
                     28 29 30 31
   September 2011                 1  2  3
                      4  5  6  7  8  9 10
                     11 12 13 14 15 16 17
                     18 19 20 21 22 23 24
                     25 26 27 28 29 30
    October 2011                        1
                      2  3  4  5  6  7  8
                      9 10 11 12 13 14 15
                     16 17 18 19 20 21 22
                     23 24 25 26 27 28 29
                     30 31
   November 2011            1  2  3  4  5
                      6  7  8  9 10 11 12
                     13 14 15 16 17 18 19
                     20 21 22 23 24 25 26
                     27 28 29 30
   December 2011                  1  2  3
                      4  5  6  7  8  9 10
                     11 12 13 14 15 16 17
                     18 19 20 21 22 23 24
                     25 26 27 28 29 30 31http://asktom.oracle.com/pls/apex/f?p=100:11:0::NO::P11_QUESTION_ID:14741686777707
Edited by: Riaz on Jul 21, 2011 12:20 PM
Added URL to Tom's site.

Similar Messages

  • How can I skip to a new year in the new calendar format?

    I am not impressed with the new icloud calendar format. It is too white and it is difficult to see the days. However main complaint is that you cannot skip to the next year quickly. On the previous format you could selected 2014 and immediately select a month. In this new 'improved' format you have to scroll through all the invening moths. Can you fix this Apple or tell us how we can skip forwards 12 months quickly?
    Iain

    I agree about the lack of convenience with regard to skipping years in the near future...I'm okay with the general design, but the new way of skipping years is not a step forward considering how I've used it in the past.However, the new way could be advantageous when skipping a big block of years.

  • Can I export Numbers data into a calendar format?

    I have project names and their deadlines in a table and would like to export/view them in a calendar format so I can see, at a glance, what is due when...does anyone know if this is possible?

    Thanks.
    Can I import Excel data into a PDF form using Acrobat XI on Mac?
    created by GKaiseril <https://forums.adobe.com/people/GKaiseril>  in PDF
    Forms - View the full discussion
    <https://forums.adobe.com/message/7053927#7053927>
    User Interface.
    If the reply above answers your question, please take a moment to mark this
    answer as correct by visiting:
    https://forums.adobe.com/message/7053927#7053927 and clicking ŒCorrect¹
    below the answer Replies to this message go to everyone subscribed to this
    thread, not directly to the person who posted the message. To post a reply,
    either reply to this email or visit the message page:
    Please note that the Adobe
    Forums do not accept email attachments. If you want to embed an image in
    your message please visit the thread in the forum and click the camera icon:
    https://forums.adobe.com/message/7053927#7053927 To unsubscribe from this
    thread, please visit the message page at
    , click "Following" at the
    top right, & "Stop Following" Start a new discussion in PDF Forms by email
    <mailto:[email protected]com
    or at Adobe Community
    <https://forums.adobe.com/choose-container.jspa?contentType=1&containerType=
    14&container=4698>  For more information about maintaining your forum email
    notifications please go to https://forums.adobe.com/thread/1516624.

  • Printing report in calendar format

    I need to print a report in a calendar format with
    monthly view in Reports 9i. I am aware of Portal and APEX
    but its not an option.
    There is a table which consists data for several months,
    and I am trying to use oracle forms as parameter form
    to pass the date range to print the calendar.
    The requirement is one month per page.
    As always, looking forward to great ideas.
    thanks

    Hi All,
    I can't reduce the line size of my report (Client Requirement ) and if i try someother format then it will cut the data from the report.
    Is there no otherway I can get the same in portrait format. What is the maximum size of the line in a report if i want to get it in Portrait format.
    Regards,
    Akhil.

  • I have upgraded from 7 to 11 photoshop and am trying to organize photo in calendar format. How?

    I have upgraded from photoshop 7 to 11 and am trying to format the photos in calendar format as I did in the 7 version and can not figure out how. ?

    A lot of things changed with Elements 11, including the available display views. There is no longer a calendar view like in Elements 10 and before. The closest available is to go to the Events page (click Events in the top bar), and then switch from Events to Smart Events (just below the top bar). This will group all of your images into the day on which they were shot. However, it doesn't separated them on a calendar and leave you the blank spaces where no images were taken.

  • Change calendar format one event at a time?

    How do Change calendar format one event at a time?

    Use iPhoto>Provide iPhoto Feedback in iPhoto or go here to make a feature request of Apple:
    http://apple.com/feedback

  • Reminder app no longer viewable in Calendar format

    If anyone else is bothered by this change with IOS7, please email Apple's feedback website. In IOS6, I got used to my Reminders list being viewable in a Calendar format, allowing me to see which reminders occurred on which day/date etc. Now, in IOS7, my Reminders list is only viewable as one long list, with no apportionment of date or reference to calendar. I think this is a shortcoming of the new IOS. What do you think ?

    This is unrelated to this thread. Your post on the Reader function is gone.
    Reader is now on the left-hand side of the address bar as a series of horizontal lines.

  • Widget for displaying Tasks in a Calendar format ?

    Our application has a requirement of showing the ToDo list in a calendar format, similar to what the Oracle Calendar shows. The user should have the ability to directly adds tasks to a certain date, scroll the calendar dates back and forward etc. Basically, we need the calendaring UI.
    Is there a quick way of enabling this in our product using the Calendar SDK without trying to reinvent the wheel ? The application is web-based but should have the necessary richness.
    If this is not the right forum to ask the question then can you point me to one ?
    Thanks,
    Shailesh

    Hello,
    From above what i would understood that you want to have a field in your dialog which will prepopulate a predefined html structure and same can be used while authoring the content in same attribute fields. If that is correct then i dont think you need to create a new widget because same can be achieved by setting up the property "defaultValue" with your defined HTML format as value on field attribute (let say textarea).
    So it will be like as below
    defaultValue    String        <html>what ever html format you want to place that can be used while authoring</html>
    If you are using any richtext widget instead of textarea the same will apply but as RTE default includes <p> tag you can control it using property "removeSingleParagraphContainer" or "singleParagraphContainerReplacement" for more details plz refer http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ.form.RichText
    Richtext will have more feature compare to textarea like applying css etc... for information on setting up richtext editor plz refer http://dev.day.com/docs/en/cq/current/administering/configuring_rich_text_editor.html
    I hope above will help you to proceed. let me know for more information if you needed.
    Thanks,
    Pawan

  • Printing in calendar format using forms

    I need to print to a file in a calendar format, with
    monthly view using Forms 9i. Oracle Portal and APEX
    is not an option.
    There is a table which consists data for several months,
    and I need to use oracle forms as parameter form
    to pass the date range to print the calendar.
    The requirement is one month per page. I am thinking
    there should be a way to generate an HTML output.
    As always, looking forward to some great ideas.
    thanks

    OK. Here goes:
    Query 1:
    /*Select the months between the from and to dates */
    SELECT months, to_date('01-'||months,'DD-MON-YYYY') order_date
    FROM ( SELECT distinct TO_CHAR(days,'MON-YYYY') months
    FROM (SELECT :p_fr_date + (ROWNUM-1) days
    FROM M191F
    WHERE ROWNUM <= to_number(:p_to_date - :p_fr_date) +1)
    ORDER BY to_date('01-'||months,'DD-MON-YYYY')
    M191F is a dummy table with 1000 rows in it. It has 1 column M191COPY NUMBER(10). We use it just as a driver if things want to bring out a given number of records. We are using a parameter form in the report to get p_to_date and p_fr_date but that would be easy to receive from a Form.
    In the group I see there is a formula column producing the page title, it returns
    return to_char(:order_date,'fmMonth YYYY');
    Query 2
    Now you need to take some headache pills:
    SELECT
    TO_CHAR((TO_DATE('01-'||:months,'DD-MON-YYYY') -
    DECODE(TO_CHAR(TO_DATE('01-'||:months,'DD-MON-YYYY'),'Dy'),
    TO_CHAR(TO_DATE('24-FEB-2003','DD-MON-YYYY'),'Dy'), 0,
    TO_CHAR(TO_DATE('25-FEB-2003','DD-MON-YYYY'),'Dy'), 1,
    TO_CHAR(TO_DATE('26-FEB-2003','DD-MON-YYYY'),'Dy'), 2,
    TO_CHAR(TO_DATE('27-FEB-2003','DD-MON-YYYY'),'Dy'), 3,
    TO_CHAR(TO_DATE('28-FEB-2003','DD-MON-YYYY'),'Dy'), 4,
    TO_CHAR(TO_DATE('01-MAR-2003','DD-MON-YYYY'),'Dy'), 5,
    TO_CHAR(TO_DATE('02-MAR-2003','DD-MON-YYYY'),'Dy'), 6)) + (ROWNUM-1) ,'FMDy dd Mon YYYY') datee,
    '' day, '' tasks, to_date('') the_date
    FROM M191F
    WHERE ROWNUM <= DECODE(TO_CHAR(TO_DATE('01-'||:months,'DD-MON-YYYY'),'Dy'),
    TO_CHAR(TO_DATE('24-FEB-2003','DD-MON-YYYY'),'Dy'), 0,
    TO_CHAR(TO_DATE('25-FEB-2003','DD-MON-YYYY'),'Dy'), 1,
    TO_CHAR(TO_DATE('26-FEB-2003','DD-MON-YYYY'),'Dy'), 2,
    TO_CHAR(TO_DATE('27-FEB-2003','DD-MON-YYYY'),'Dy'), 3,
    TO_CHAR(TO_DATE('28-FEB-2003','DD-MON-YYYY'),'Dy'), 4,
    TO_CHAR(TO_DATE('01-MAR-2003','DD-MON-YYYY'),'Dy'), 5,
    TO_CHAR(TO_DATE('02-MAR-2003','DD-MON-YYYY'),'Dy'), 6)
    UNION ALL
    SELECT TO_CHAR(TO_DATE(ROWNUM||'-'||:months,'DD-MON-YYYY'),'FMDy dd Mon YYYY') datee,
    TO_CHAR(TO_DATE(ROWNUM||'-'||:months,'DD-MON-YYYY'),'dd') day,
    ans_y_util.daily_tasks (:p_owner, TO_DATE(ROWNUM||'-'||:months,'DD-MON-YYYY')) tasks,
    TO_DATE(ROWNUM||'-'||:months,'DD-MON-YYYY') the_date
    FROM M191F
    WHERE ROWNUM <= TO_CHAR(LAST_DAY(TO_DATE('01-'||:months,'DD-MON-YYYY')),'DD')
    The union bit is the call to our function in ans_y_util which I think will return some text to say what's happening on the date provided, for the user. So it calls that once for each date in the range, even if there's nothing happening on that day.
    It looks like the trick is in working out which day of the week you're on about. Putting the hard coded date of reference in Feb 2003 gives it a starting point.
    Then all this is neatly laid out in the Layout Editor... ;-) I guess it's something to do with an Across/Down layout, measured to fit the 7 cells in it across before going down.
    I hope this is relevant. But you did ask!

  • Is there any way to keep the old mail, phone, calendar format and yet switch to IOS7?

    Is there anyway to keep our old mail, calendar, and phone format and yet use IOS7?  I find the new system so plain that it is difficult to see.  I keep missing new emails because the little numbers are so small they barely show up and the plain white screens are so bright they are hard to look at.  I would just go back but I really like some of the new features.

    Man I am with you!
    The new user interface for iOS7 is just dreadful.  I turned down the brightness but the lack of shading or delineation between UI elements makes it difficult to read. 
    It feels like they're chasing Android.

  • How to change a date format to a calendar format

    Date Dateformat= getDateFormat();
    Calendar CalendarFormat= Calendar.getInstance();
    CalendarFormat.setTime(DateFormat);

    A Date object represents a point in time. It doesn't have anything to do with formatting.
    Calculating Java dates: Take the time to learn how to create and use dates
    Formatting a Date Using a Custom Format
    Parsing a Date Using a Custom Format

  • Changing Calendar Format

    Hello,
    Everybody.
    I am beginner to HTMLDB.
    In my project I want to change the format of calendar like as follows,
    Date 1 2 3 4 5 6 7
    Day Sun Mon Tue Wed Thu Fri Sat
    Column x y z a b c d
    Please help me.
    Thanks,
    Sumanth.

    It works for me on Windows 7.
    DateTime widget is based on Windows' Calendar control, I guess.
    Japanese Imperial Calendar is supported from Java6 but it is not related to SWT.
    >Locale localeImperialJapanese = new Locale("ja", "JP", "JP");
    >Locale.setDefault(localeImperialJapanese);
    This has no sense for the DateTime widget.
    attached: settings and the result of Snippet250.

  • Report appointments in month calendar format

    Post Author: darmstro
    CA Forum: Crystal Reports
    I'd like to display patient appointment information in a month calendar grid format similar to this
                                                AUGUST
    Monday         |  Tuesday      |           ...
    6
    7
    |  Dr Jones     |  Take red pill  |          ...
    2:00
    13
    14
    |                     |                     |          ...
    Are there features in any version of Crystal Reports that allow this? (We currently have version 8)  Has anybody done this before?  I'd expect doing it manually with lines and calculating dates of each box for a given month would be rather challenging.
    Thanks.
    Daryl

    Post Author: Cees Cappelle
    CA Forum: Crystal Reports
    SKodidine:Check out this KBase article, but it is for CR XI.
    How to create a calendar style report in Crystal Reports XII'm also interested, but the link doesn't work (for me). Cees Cappelle

  • Wall calendar format??

    I'm trying to create a family wall calendar in iCal. It would have 6 vertical columns: weekday, date, and 4 names along with 31 horizontal rows for events to be written in for each family member.
    How can I format this? Is iCal the wrong tool for the job? Recommendations?
    Thanks!

    bump*
    I'd really appreciate any help or guidance.
    Thanks!

  • New calendar format

    I have changed region to India and selected Tamil as language. I noticed near clock, calendar & numbers are not in tamil numerals and months are translated from English which is not the case with Tamil. Is there a way to change the formats in Mac OS X. If not, which programming language should I have to learn to create a new format.

    Have you set your Region to Tamil (India)?

Maybe you are looking for