14. Display the item_cost and then round it to the nearest
hundred, ten, unit, tenth and hundredth
Answer Posted / anuradha
Select Item_Name,
Item_Cost,
Round(Item_Cost, -2) Hundred_Round,
Round(Item_Cost, -1) Ten_Round,
Round(Item_Cost, 0) Unit_Round,
Round(Item_Cost, 1) Tenth_Round,
Round(Item_Cost, 2) Hundredth_Round
From Items;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the varoius components of physical database structure of oracle database?
How index is implemented in oracle database?
How to convert characters to dates in oracle?
What are the logical operations?
> CREATE OR REPLACE FUNCTION FACTORIAL_1(factstr varchar2 ) 2 RETURN NUMBER AS 3 new_str VARCHAR2(4000) := factstr||'*' ; 4 fact number := 1 ; 5 BEGIN 6 7 WHILE new_str IS NOT NULL 8 LOOP 9 fact := fact * TO_NUMBER(SUBSTR(new_str,1,INSTR(new_str,'*')-1)); 10 new_str := substr( new_str,INSTR(new_str,'*')+1); 11 END LOOP; 12 13 RETURN fact; 14 15 END; explanation Above program?
How to start a new transaction in oracle?
Are truncate and delete commands same? If so why?
What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?
What is an oracle recycle bin?
State some uses of redo log files?
Explain the use of ignore option in imp command.
What privilege is needed for a user to create tables in oracle?
List out the types of joins.
Explain the use of rows option in imp command.
How do I limit the number of rows returned by an oracle query after ordering?