MySQL Forums
Forum List  »  PHP

Re: SQL Query
Posted by: Vishal Kumar
Date: December 12, 2024 07:23AM

Yes, you can extract the data by using SQL JOIN operations to link the tables based on their relationships. For example:

SQL:

SELECT A.bin_name, REF.ref_number
FROM A
JOIN B ON A.id = B.a_id
JOIN C ON A.id = C.a_id
JOIN D ON A.id = D.a_id
JOIN E ON A.id = E.a_id
WHERE A.id = '12345678';

This query will return all related REF records for the specified A.

Options: ReplyQuote


Subject
Written By
Posted
June 21, 2024 06:10AM
Re: SQL Query
December 12, 2024 07:23AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.