Over a million developers have joined DZone.

Sql Max Search

DZone's Guide to

Sql Max Search

Free Resource
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);


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}