- 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 4
[ Nada -Omar - Payam - Abdulrahman Muayid ]
0. What is the difference between SQL and MySQL?
SQL:
MySQL:
In summary, SQL is a language used to interact with databases, while MySQL is a specific type of database management system that uses SQL as its language.
1. What do you mean by DBMS? What are its different types?
DBMS (Database Management System):
Different Types of DBMS:
2. What are the types of joins in SQL? Give an example for each one.
a. Inner Join:
- Example:
b. Left Join (or Left Outer Join):
- Example:
c. Right Join (or Right Outer Join):
- Example:
d. Full Join (or Full Outer Join):
- Example:
These joins are used to combine data from different tables based on specified conditions.
3. What is a Primary key?
Every row in a table must have a primary key which is a unique value that is used to reference the specific row. If a table is related to another table, it will have a foreign key which is used to reference the related record on the related table.
4. What are the different operators available in SQL?
SQL has several types of operators:
5. What is the need for group functions in SQL?
Group functions in SQL are needed to perform calculations across multiple rows or groups of rows, such as finding averages, sums, counts, maximums, or minimums within a dataset.
6. What is a Relationship and what are they?
A relationship in databases defines how data is related or connected between different tables. The main types of relationships are: