Jump to content

Select


jaymc

Recommended Posts

I have a database which has a mebers table

 

In that table is a field for members location...

 

When a member logs in I want it to display 50 people who are from the same location from them

 

However, a few locations only have 20 members or so from them and I must generate 50 profiles

 

It would be ok to have a list of 20 then 30 random ones..

 

How could I perform this search in 1 query?

 

Basically find the first 50 matches for the location and if cant find 50 match just display any location for the next 30..

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.