Yes. In MySQL you can join a table to itself. You must use different alias name for each instance.
using aliases: SELECT a.some_fields, b.other_fields FROM table a, table b WHERE a.foreign_key=b.primary_key;
Joins refer to the combination of related records to form a relation . There are six types of joins in database . Types of joins are cross join, natural join , right join , left join ,Inner join, Outer join.INNER JOINOUTER JOINLEFT JOINRIGHT JOINNATURAL JOINCROSS JOINIn special cases a table can join to itself (SELF JOIN)
join by itself
All three join operations work in a similar manner, with the difference being the rows that are returned. A left join and right join are also commonly called "semi-joins." Both operate in the same manner, with the difference being which table is the primary table. In a left join, all rows on the left-hand table that meet the criteria are returned, even if there is no matching right-hand table data for that row. A right join is the complementary version of a left join; all rows on the right-hand table are returned, even if there is no left-hand table data. A full join returns all matching rows, even if there is no data on either the left-hand table or the right-hand table.
A left join gets all records from the left linked table. If you have selected columns from the right linked table withouth related records, the columns will be NULL. The normal join gets all records from one table that have related records in a second table.
join combine the two table to gv a resultant set
self join
just go to the table and type /join table
Glucose and fructose are the two monosaccharides that join to form table sugar, also known as sucrose.
A semi-join returns rows from one table that would join with another table without performing a complete join. It doesn't have explicit syntax. Eg : semi join to evaluate an exists sub query select * from Customers C where exists ( select * from Sales S where S.Cust_Id = C.Cust_Id ) Cust_Id Cust_Name ----------- ---------- 2 John Doe 3 Jane Doe
Zinc was officially added to the periodic table when Dmitri Mendeleev published his first periodic table in 1869. However, zinc itself was known long before that, having been recognized as a distinct element in the 18th century. It was first isolated by the chemist Andreas Marggraf in 1746.
just go to table type /join table meet me