Jump to content

How to find 5 numbers from 100 records? using PHP & MySQL?


coder9

Recommended Posts

ok

 

I'm not sure if this is possible using single mysql query only.

 

Let say i have 5 numbers.

 

9, 30, 40, 23 and 88

 

I want to search for these numbers from a table and show me who is the employee who own this number on each equivalent number.

 

let say joseph = 9, john = 30, karen = 40, warren = 23 and george = 88.

 

A BIG Thank you in advance.

 

 

SELECT id, name FROM employee WHERE id IN (9, 30, 40, 23, 88)

 

Thank you very much BARAND!

 

I now understand why you hate immature people.

 

practice, practice, practice, practice, practice, practice................................................................!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.