Jump to content

Recommended Posts

I'm not very well taught on MySQL so i have this problem coming in. I have three tables, lets say, parent and child.

 

PARENT

parentid

parentname

 

CHILD

childid

parentid

childname

 

CHILDINFO

childid

bigbiohere

anothercolumnhereformisc_info_and_so_on

 

My Problem:

I want to select one random parent and then list its child at least 5 child with the bio description. Is this possible?

Please help me out.

 

THANKS!

Link to comment
https://forums.phpfreaks.com/topic/2507-fixed-records-from-random-category/
Share on other sites

Hmmm, that was just an example but the actual database design can't be made into what you have suggested. No question about the actual design, it's correctly implemented.

 

How to do the subqueries for that one? Two queries must not be done due to the kind of software I'm modifying.

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.