wt is the diff b/w greast and max ,least and min?
wt is the diff b/w case and decod?
Answers were Sorted based on User's Feedback
Answer / satya
simply greatest,least are rowlevel functions
max,min are the column level functions
| Is This Answer Correct ? | 10 Yes | 2 No |
Answer / shivaindu
greatest/Least: we can pass any no. of exp
Max/Min: we can pass one exp that may a column
Case: is a statement function, cannot process null
Decode: is a function, can process null, we can use in
update statement.
| Is This Answer Correct ? | 10 Yes | 3 No |
Answer / jyothi
greatest gives largest value from the list of values passed
where as max gives maximum value in that column.similarly
least and min too.
decode performs only equality conditions and it doesn't work
in plsql.process null.
case compares all the cases.null cannot processed. case
performs all the actions of decode and it works in pl/sql.
| Is This Answer Correct ? | 4 Yes | 0 No |
What are the qualities of 2nf?
i need department wise top 2 employees salary.which logic i will use
Difference between IN and EXISTS
select top 3 sal from each dept?
17 Answers IBM, TCS,
What is set transaction?
what are date and time data types in mysql? : Sql dba
What are different categories of sql commands?
what is an extent ? : Sql dba
How delete all data from table in sql?
What will you get by the cursor attribute sql%rowcount?
What does plvtab enables you to do when you showthe contents of pl/sql tables?
What are actual parameters and formal parameters?
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)