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.

 

 

Link to comment
Share on other sites

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................................................................!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.