25.67,-1
Trunc = 20
Round= 30
HOW????
Answers were Sorted based on User's Feedback
Answer / chandu
select trunc(25.67,-1),round(30) from dual;
TRUNC(25.67,-1) ROUND(30)
--------------- ----------
20 30
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / gaurav
The TRUNC (n1, n2) function returns n1 truncated to n2 decimal places. If n2 is omitted, then n1 is truncated to 0 places. n2 can be negative to truncate (make zero) n2 digits left of the decimal point.
if you do it -2. answer will be zero in this case.
similar thing goes for round.It will become zero.
| Is This Answer Correct ? | 0 Yes | 1 No |
how to decrement dates by 1 in mysql? : Sql dba
Why we use joins in sql?
What is the difference between an inner and outer join?
What is pls integer?
what is the bond code in materialized view?
How many types of functions are there in sql?
What is the difference between numeric and autonumber?
Is merge a dml statement?
how to get help information from the server? : Sql dba
What is the difference between local and global temporary table?
How is a process of pl/sql compiled?
What is normalization and types of normalization?
22 Answers Etisbew, F-TEC, Microsoft, TechProcess,
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)