Topic awaiting preservation: Simple MySQL query help. |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 10-31-2001 21:19
I have the following table: |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 11-01-2001 02:33
hmm.. I'm a little unclear on the issue here. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-01-2001 02:53
jiblet: I'll have another look when I've slept (I've been out all night trick and treating - oddly noone mch wanted to give a large man in a mask any sweets/candy!!). It might need something complex but it is also possible that if you did a descending (or is it ascending? I'd go with DESC off the top of my head) order by time it might spit out the results you want. No guarantees though. |
Paranoid (IV) Inmate From: Lebanon |
posted 11-01-2001 08:01
jiblet, try SELECT * FROM tablename ORDER BY fieldname [DESC |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-01-2001 14:08
jiblet: I'm not sure if it is completely relevant but I found this pretty useful when wandering into territory away from the 'standard' MySQL statements: |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 11-01-2001 17:42
Yes, that is a good article. I read it when it came out, but it might be a good re-read now that I've got more SQL experience. Okay. To clarify my question even further (I did find a solution btw, but if I can figure this out I can write a much quicker solution). To review, the standard query: |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 11-01-2001 18:07
jiblte: Save it as a .txt file and post the link here. |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 11-01-2001 19:08
http://www.coffman.umn.edu/earth/emboard.txt |
Nervous Wreck (II) Inmate From: Toronto, ON, Canada |
posted 11-02-2001 20:16
> I want to select the MAX(time) for each thread_id. In other words, what query should |