Jump to content

need help with mysql query


Roee

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

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.