If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > [help] how to CREATE FUNCTION to FIND MAXIMUM VALUE WITHOUT TABLE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-19-12, 05:41
widiarifki widiarifki is offline
Registered User
 
Join Date: Jan 2012
Posts: 6
[help] how to CREATE FUNCTION to FIND MAXIMUM VALUE WITHOUT TABLE

Hello everybody, I'm newbie in oracle and still getting started with it..

I need ur help for answering my curiosity..

How can I CREATE FUNCTION to FIND MAXIMUM VALUE FROM SOME NUMBERS I ENTERED AS PARAMETER? WITHOUT USING TABLE?

E.G: I ENTERED AS PARAMETER (10,20,30) AND RESULT FROM THE FUNCTION CREATED IS "30"?

HOW CAN I?

Please clarify my doubt.

Many Thanks.
Reply With Quote
  #2 (permalink)  
Old 01-19-12, 07:55
tonkuma tonkuma is offline
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,205
Why not use GREATEST SQL function?

Quote:
About SQL Functions

SQL functions are built into Oracle Database and are available for use in various
appropriate SQL statements. Do not confuse SQL functions with user-defined
functions written in PL/SQL.
Reply With Quote
  #3 (permalink)  
Old 01-19-12, 23:37
widiarifki widiarifki is offline
Registered User
 
Join Date: Jan 2012
Posts: 6
Quote:
Originally Posted by tonkuma View Post
Why not use GREATEST SQL function?
Yep, use greatest.
its work. btw, i've never heard and knew this function before.

Many Thanks.
Regards
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On