dbTalk Databases Forums  

Single row Function Question

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Single row Function Question in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rosh157
 
Posts: n/a

Default Single row Function Question - 11-14-2007 , 01:22 AM






Hello:
i'm kind of new in Oracle and now learning how to use the Sql*Plus. i
have question about
Single functions and i hope that somebody can help me.
my question is:
I using Sql*Plus on oracle 10g, and I want to use the "Single row
function" to create a list of books, I have to increase a price of
each books based on books category. For example for computer books
10%, for fitness books 7%, and for cooking books 25%. And price
should
be display with 3 decimal places. (we have a price, title, category,
and retail price column).what function should be use and if I have to
use the nesting function how can I apply that.
Thanks


Reply With Quote
  #2  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Single row Function Question - 11-14-2007 , 05:57 AM






On 14 nov, 08:22, Rosh157 <kouroshs... (AT) gmail (DOT) com> wrote:
Quote:
Hello:
i'm kind of new in Oracle and now learning how to use the Sql*Plus. i
have question about
Single functions and i hope that somebody can help me.
my question is:
I using Sql*Plus on oracle 10g, and I want to use the "Single row
function" to create a list of books, I have to increase a price of
each books based on books category. For example for computer books
10%, for fitness books 7%, and for cooking books 25%. And price
should
be display with 3 decimal places. (we have a price, title, category,
and retail price column).what function should be use and if I have to
use the nesting function how can I apply that.
Thanks
Not sure what you mean by "Single Functions", I will read
as "Single Row Function".

I suggest you look up the case statement for your books/category
problem.
As for the "should display..." lookup formatting.
All documenation can be found at http://tahiti.oracle.com

Single Row functions can be found in the SQL Reference Manual:
http://download.oracle.com/docs/cd/B....htm#sthref912

Formatting of output in in the very same manual, take a look here:
http://download.oracle.com/docs/cd/B...181.htm#i79330

The Case Expression is -yet again- in the same manual:
http://download.oracle.com/docs/cd/B...4.htm#i1033392



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.