- What is the difference between SQL and MySQL?
- What do you mean by DBMS? What are its different types?
- What are the types of joins in SQL? Give an example for each one.
- What is a Primary key?
- What are the different operators available in SQL?
- What is the need for group functions in SQL?
- What is a Relationship and what are they?
Please discuss these questions with your partners and post your answers as a comment on this gist when you are finished.
**Room 8
Abdullah Alawad / Hassan AbuGhareeb / hammam AbuShehadeh / Noor Alrai**
(INNER) JOIN : Returns records that have matching values in both tables.
returns a result that includes rows from both left and right tables.
LEFT (OUTER) JOIN: Returns all records from the left table, and the matched records from the right table.
You can imagine it with a Venn diagram with two circles, with the resulting table being the green highlighted part which includes
both the common/overlapping part, and the rest of the left circle.
RIGHT (OUTER) JOIN: Returns all records from the right table, and the matched records from the left table.
The RIGHT OUTER JOIN selects data from the right table (Table B) and matches this data with the rows from the left table
(Table A). The RIGHT JOIN returns a result set that includes all rows in the right table
Self Join: join a table to itself, can be viewed as a join of two copies of the same table.
Cross Join (also known as a cartesian join): returns all combinations of rows from each table.
CROSS JOIN joins every row from the first table with every row from the second table and its result comprises all combinations of records
in two tables.
PK: is a field that uniquely identify each record in a table
Arithmetic / Comparison / Bitwise / Logical / Compound