Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: How do you remember the number of days in each month?

by chacham (Prior)
on Sep 16, 2014 at 16:08 UTC ( #1100790=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    SQL> SELECT
      2     LEVEL Month,
    ...
            12 31
    
    12 rows selected.
    
  2. or download this
    SELECT
        TO_CHAR(ADD_MONTHS(TO_DATE('1', 'DDD'), LEVEL) - 1, 'DD')
    ...
        Dual
    CONNECT BY
        LEVEL < 13;
    
  3. or download this
    SELECT
        TO_CHAR(ADD_MONTHS(DATE '2014-1-1', LEVEL) - 1, 'DD')
    ...
        Dual
    CONNECT BY
        LEVEL < 13;
    
  4. or download this
    SELECT TO_CHAR(LAST_DAY(TO_DATE(LEVEL,'MM')),'DD')FROM Dual CONNECT BY
    + LEVEL<13;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1100790]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2022-01-22 17:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?