MySQL joint Query

Source: Internet
Author: User
Select. real_name, B. * From (account_profile A) Inner join (select T. real_name, T2. * from (account_profile t) Inner join (select ID as err_id, catalog_id, type, status, content, add_user_id, phone_number, add_date, manage_user_id from catalog_error where status = 1 or status = 2) T2 on t2.add _ user_id = T. user_id order by add_date DESC) B on B. manage_user_id =. user_id # Lite version: Select t2.real _ name as add_name, t3.real _ name as manage_name, T. * From catalog_error t join account_profile T2 on T. add_user_id = t2.user _ id join account_profile T3 on t. manage_user_id = t3.user _ id

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.