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 procedural api?
How much does mysql enterprise cost?
How to convert character strings to dates?
How many triggers are possible in mysql?
at first i'm using datediff('d', a.due_date, current_date); but it takes too long to get the result but how can i subtract the current_date - a.due_date and still get the same result like when i use datediff? thank you
What is 'mysqld'?
How do I export mysql query results to excel?
How many columns can be used for creating Index?
What are the reasons for selecting lamp (linux, apache, mysql, php) instead of combination of other software programs, servers and operating systems?
What are the differences between char and varchar?
How do I free up space in mysql?
How to get data from mysql in php?