Apr 11, 2007 #1 Stevennn Programmer Apr 4, 2007 52 US I'm trying to pull a column name Month_Year the value is Jan-2005. How can i make my extract look likt this: "JAN"? thank-you
I'm trying to pull a column name Month_Year the value is Jan-2005. How can i make my extract look likt this: "JAN"? thank-you
Apr 11, 2007 #2 SantaMufasa Technical User Jul 17, 2003 12,588 US If "Month_Year" is a character column (e.g. VARCHAR2), then you can extract an uppercase month abbreviation with: Code: SELECT upper(substr(Month_Year,1,3))... Let us know if this resolves your need. Mufasa (aka Dave of Sandy, Utah, USA) [I provide low-cost, remote Database Administration services: www.dasages.com] Upvote 0 Downvote
If "Month_Year" is a character column (e.g. VARCHAR2), then you can extract an uppercase month abbreviation with: Code: SELECT upper(substr(Month_Year,1,3))... Let us know if this resolves your need. Mufasa (aka Dave of Sandy, Utah, USA) [I provide low-cost, remote Database Administration services: www.dasages.com]