how to get max salary with employee number by using one select
query and max function ??
Answers were Sorted based on User's Feedback
Answer / suresh jp
select emp_no,max(salary) over() from table_employee;
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / nitin sane
select Employee_name,max(Employee_Salary) over() from Employee_test;
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / mithilesh gatole
Answer -
select MAX(Salary) from Employee
WHERE Salary <> (select MAX(Salary) from Employee )
| Is This Answer Correct ? | 0 Yes | 5 No |
How to delete all rows with truncate table statement in ms sql server?
How to defragment table indexes?
Is the primary key column of a table an index in ms sql server?
sql database suspect We have a sql database that is showing as suspect. How can we recover?
Explain having clause and where clause?
what is normalization? : Sql server database administration
How optimize sql query with multiple joins in sql server?
What are the dis_advantages of stored procedures, triggers, indexes?
Where the sql logs gets stored?
what is the diffrence between Snap Shot and Transaction Replication
What is Command line parameters in PLSQL.?
How to generate create procedure script on an existing stored procedure?
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)