Jump to content

Recommended Posts

Hi,

 

I've got complicated while trying to write the following mysq query. I hope you can help me to formulate it:

 

I have a table which is called tbl1 and contains m_id, active, name

Also I have another table which is called tbl2 and contains id, m_id

 

I would like to find the rows from tbl2 which their m_id = m_id of the rows in tbl1, and in tbl1 these rows are active='0'. Moreover, I want to get the results with the less appearance, something like order by mysq_num_rows.

 

How can I formulate this query?

 

THANK YOU VERY MUCH

ROEE

Link to comment
https://forums.phpfreaks.com/topic/207847-need-help-with-mysql-query/
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.