Welcome to Dream.In.Code
Getting Help is Easy!

Join 131,580 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,961 people online right now. Registration is fast and FREE... Join Now!




nesting functions in oracle

 
Reply to this topicStart new topic

nesting functions in oracle

raeNet
post 8 Oct, 2008 - 11:37 AM
Post #1


D.I.C Head

**
Joined: 1 Nov, 2007
Posts: 98


My Contributions


QUOTE
I got the following code to work. It's main purpose was to replace current pricing for a particular book category (COMPUTER) with an increase of 10%.

However, I also need to increase two other book categories, as well. One for 15% and the other for 25%.

Can anyone help me with these other increases? I can only get one category to increase successfully. THX!


CODE

SELECT title, category, TO_CHAR(retail, ‘999.99’) "CURRENT PRICE", REPLACE(retail*1.1, '', '')"REVISED PRICE"
FROM BOOKS
WHERE CATEGORY = 'COMPUTER';


This post has been edited by raeNet: 8 Oct, 2008 - 11:37 AM
User is offlineProfile CardPM

Go to the top of the page


raeNet
post 8 Oct, 2008 - 03:55 PM
Post #2


D.I.C Head

**
Joined: 1 Nov, 2007
Posts: 98


My Contributions


QUOTE
Never mind. I was able to accomplish the task by using another function. Thanks anyway.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 03:27AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month