Technology Software

How to Calculate the Week of the Year in Oracle

    • 1). Create a variable for your date and the resulting week number. The following code creates a string and number variable:

      myDate varchar(20);
      week number;

    • 2). Assign a date to your Oracle variable. The following code shows you how to assign a variable in Oracle:

      myDate := '1/1/2010'

    • 3). Retrieve the week number using the "to_date" function. The following code shows you how to retrieve the week of the year:

      result := to_date(myDate, IW)

      The "IW" parameter tells the function to return the week number.

Related posts "Technology : Software"

How to Capture Analog Audio on My Computer

Software

Effective Photoshop Training Course to Enhance Your Photos

Software

How To Use Softphone Software For Your Business

Software

How to Access a String Array in JSP

Software

How Do I Get a Reversible Reaction Arrow in Microsoft Word 2007?

Software

How to Get AVCHD (MTS) Files to My PC

Software

Beat Detective Region Conform Tips

Software

MS BKF Repair Tool to Fix Corruption Owing to FAT File System

Software

Making an ASM Comparison

Software

Leave a Comment