| List: | General Discussion | « Previous MessageNext Message » | |
| From: | James Tu | Date: | March 22 2007 3:21pm |
| Subject: | Finding a record in a result set | ||
| View as plain text | |||
Is there some quick way to do the following in MySQL? (I know I can use PHP to search through the result set, but I wanted to see if there's a quick way using some sort of query) Let's say I know that Joe is from Maine. I want to do a query of all employees from Maine, ordered by hiring date, and figure out where Joe falls in that list. (i.e. which record number is he?) -James
