Answer Posted / glibwaresoftsolutions
• Inner Join: Returns matching rows from both tables.
• Left Join (Left Outer Join): Returns all rows from the left table and matching rows from the right table.
• Right Join (Right Outer Join): Returns all rows from the right table and matching rows from the left table.
• Full Join (Full Outer Join): Returns all rows when there’s a match in one of the tables.
• Cross Join: Returns the Cartesian product of both tables.
• Self Join: A table joins itself.
Example Query:
SELECT e1.name, e2.name AS manager_name
FROM employees e1
JOIN employees e2 ON e1.manager_id = e2.id;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we insert data into view?
how to create a new view in mysql? : Sql dba
What is the difference between cluster and non-cluster index?
What are the different ways to optimize a sql query?
what is the difference between sql and t-sql? : Transact sql
Why do we use partitions in sql?
what is bcp? When is it used?
What makes a good primary key?
Lookups are a key component in sql server integration services (ssis). Explain its purpose?
What does subquery mean in sql?
How can we avoid duplicating records in a query?
Which join is like an inner join?
How do I write a cron which will run a sql query and mail the results to agroup?
What are sql ddl commands?
Why we use joins in sql?