Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

convert into acres

user9093700Dec 27 2010 — edited Dec 28 2010
Hi, iam having two tables
TITLE , 

id_title                    Code_Uom           Area                                         
050540HSD003206S3             M               2424.33
050540HSD003206S2             KM              3434.33
050540HSD00320623             H               3438.44
050540HSD00320654             MP              488.88
050540HSD00320656             KP              3434.88
CODE_UOM

Code           Name
M              Meter
KM             Kilometer
H              Hectare
MP             Cubic meters
JK             foot
KP             square feet
i need a function or package to convert area field into acres by checking the Code_Uom accordingly.

ie.,

in TITLE table if Code_Uom column is M then it should check in CODE_UOM table for code column and the name for it.
if it is meter then the meter should be converted into acres. so here 2424.33 meters should be converted into acres
which is nothing but
Answer: 2424.33 m² = 0.599064 acre
3434.33 km² = 848641.424 acre

Edited by: user9093689 on Dec 27, 2010 8:11 PM
This post has been answered by Ora on Dec 28 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 25 2011
Added on Dec 27 2010
24 comments
277 views