Name Salary
Abc 50000
Abc 50000
xyz 20000
find the max salary using aggregate function?
Answers were Sorted based on User's Feedback
Answer / guest
select max(sal) from tab_name;
or
select * from tab_name where sal=(select max(sal) from
tab_name) and rownum<=1;
| Is This Answer Correct ? | 20 Yes | 0 No |
Answer / prashant
select max(salary) from
(select distinct(salary) from ABC)
| Is This Answer Correct ? | 0 Yes | 0 No |
If we declare constraints Unique and Not null on a single column then it will act as a Primary key, so what is the use of primary key??
What is the least restrictive isolation level? : Transact sql
what are the advantages of primary key over unique+notnull
7 Answers Consultancy, LGS, Oracle,
Can there be more than one function with a similar name in a pl/sql block?
Can we use pl sql in mysql?
Explain 3 basic parts of a trigger.
What is oracle pl sql developer?
what are the features and advantages of object-oriented programming? : Sql dba
How do sql triggers work?
how i do the database testing of online money transactions between two parties (client and organization). suppose our company makes a website for our client and give a extra feature of online money transaction with there clients then how i test this feature in database testing
what is switch column,colums cost in oracle?
What is trigger with example?
Oracle (3253)
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)