| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Slackli User | Date: | September 10 2009 9:43am |
| Subject: | how to query this | ||
| View as plain text | |||
Hello, sorry I'm not good at SQL statement. I have a table, whose stru is like: id value 1 33 2 987 3 10 4 22 ... I want to get the max value and the corresponding id, using this sql: select max(value),id from table; but it won't work. so what's the correct syntax? Thanks.
| Thread | ||
|---|---|---|
| • how to query this | Slackli User | 10 Sep |
| • RE: how to query this | John Daisley | 10 Sep |
| • Re: how to query this | Wolfgang Schaefer | 10 Sep |
| • Re: how to query this | Slackli User | 10 Sep |
| • Re: how to query this | Claudio Nanni | 10 Sep |
