Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 About sql query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-04-25 : 08:15:24
jhony writes "There is an table called monthlysalary. Having a column name mmonthlysalary. I want maximum value in mmonthlysalary but with all the records(means with all column)"

JimL
SQL Slinging Yak Ranger

1537 Posts

Posted - 2005-04-25 : 08:26:42
Select Yourcolumn1,yourcolumn2.......ext

From monthlysalary

Where mmonthlysalary = (Select Max(mmonthlysalary) as maxmonthlysalary from monthlysalary)

Jim
Users <> Logic
Go to Top of Page
   

- Advertisement -