I am new to magento 2, And want to join 4 tables.
TABLE 1) market_p_userdata (columns -> seller_id, image)
TABLE 2) market_product (columns -> seller_id, magepro_id)
TABLE 3) catalog_category_product (columns -> product_id)
TABLE 4) customer_entity (columns-> entity_id)
TABLE 3) product_id (primary key) which is as a foriegn key in TABLE 2) named as magepro_id,
TABLE 4) enity_id(primary key) which is foreign key in TABLE 3) AND 2) named as seller_id,
TABLE 2) seller_id(primary key) which is foreign key in TABLE 1) named as seller_id,
I want to get Image of seller and name of seller, I have searched many links, But still I am not getting how to create join.
Best Answer
Here is the simple example how you can join multiple tables in Magento