Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Mickael

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Sql max search

Question: I'm trying to retrieve some info from an Oracle database. I've got a table named Scoring with two fields - Name and Score. What I want to get is the highest score from the table and the name of the player.

    SELECT Name, Score
    FROM Scoring
    WHERE Score = (select Max(Score) from Scoring);

<http://www.techonthenet.com/sql/max.php>
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS