join many to many tables sql code example
Example 1: sql join one to many
SELECT *
FROM Parent P
INNER JOIN Child C
ON C.ParentId = P.ParentId
Example 2: join multiple tables in sql
SELECT Books_Namn, Author_Namn, Author_Age, Store_Namn FROM books
JOIN Author ON Author_Id = Author_Author_Id
JOIN Books_has_Store ON Books_Books_Id = Books_Id
JOIN Store ON Store_Id = Store_Store_Id;