how to find max salary from the database
Answers were Sorted based on User's Feedback
Answer / premanshu
if we have any table of employees and their salary
then the statement will be
select MAX(column_name) AS maxsalary
FROM table name
Is This Answer Correct ? | 19 Yes | 1 No |
Answer / thakor ranvir
say for example one table employees
then issue below query .using agreegate function
select max(salary) from emlpoyees;
Is This Answer Correct ? | 16 Yes | 1 No |
Answer / sk wazid hussain
select field_name from table_name order by field_name desc
limit 0,1
Is This Answer Correct ? | 3 Yes | 1 No |
What is foreign key in mysql?
How to get current MySQL version?
Can not connect to mysql server 10060?
What is the difference between primary and unique key
What is the difference between CHAR and VARCHAR data types?
how to display nth highest salary from a table in a mysql query? : Mysql dba
Is mysql free software?
How can we know the number of days between two given dates using MySQL?
2 Answers Base2 Infotech, Webworks,
How many TRIGGERS are allowed in MySql table?
Which one of the following is the correct way to select all columns and all rows from "vtable"? Choice 1 SELECT FROM vtable SELF JOIN vtable Choice 2 SELECT ALL COLUMNS FROM vtable WHERE ALL ROWS = * Choice 3 SELECT EVERYTHING FROM vtable Choice 4 SELECT vtable.* WHERE vtable = vtable Choice 5 SELECT * FROM vtable WHERE 1 = 1
Is mysql better than oracle?
What is difference between Sql server and MySql database? It may be silly question but i really dont know.