Consider the following situation . We have two tables users and orders. User table has three Columns Id,Name, Order_id . Orders table has two columns Id, and order_item.
SQL query to get all the orders for each user.
select * from users left join orders on users.order_id = orders.id;
SQL Query to get all users for each order
select * from users right join orders on users.order_id = orders.id;
But I'm using Sqlite3 which currently does't not support Right, Full Outer join. So I tried following left join with inversed table names. which kinda solve my problem.
select * from orders righ join users on users.order_id = orders.id;
So my question is if I reversed the tables name in left join will it result in Right join ? Of course Right join has prints table columns in different order my query prints in different.
Please help me with this approach ? comparison with Real Right outer join , disadvantages and other notable things ?