Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: MySQL question

by shadox (Priest)
on Mar 28, 2002 at 21:51 UTC ( #155126=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    +-------+---------+---------+
    | title | doc_num | version |
    ...
    | foo   |    1234 |       7 |
    | other |    2121 |       7 |
    +-------+---------+---------+
    
  2. or download this
    SELECT title, doc_num, MAX(version) AS version from test GROUP BY titl
    +e;
    # For this example "test" is the table name
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://155126]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-11-22 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?