Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

i wanted to select among the rows the highest value in mysql

select yt.id, yt.rev, yt.contents
    from YourTable yt
    where rev = 
        (select max(rev) from YourTable st where yt.id=st.id)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #wanted #select #rows #highest #mysql
ADD COMMENT
Topic
Name
1+3 =