- 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.
Ahmed Isam, Ibrahim muhaned, Helin tayeb, Didam Goran.
Q0-What is the difference between SQL and MySQL?
A-SQL is a language used for managing relational databases, while MySQL is a database management system.
Q1-What do you mean by DBMS? What are its different types?
A- DBMS, or Database Management System, is software facilitating data management tasks. Types include Relational (RDBMS), NoSQL, Object-Oriented, Hierarchical, Network, and Graph databases.
Q2-What are the types of joins in SQL? Give an example for each one.
(INNER) JOIN, LEFT (OUTER) JOIN, RIGHT (OUTER) JOIN, FULL (OUTER) JOIN:
Q3- What is a Primary key?
A- Primary Key: A primary key is a column or a set of columns that uniquely identifies each row in a table. It must contain unique values and cannot contain NULL values. By defining a primary key, you ensure data integrity and provide a way to reference individual rows in the table
Q4-What are the different operators available in SQL?
A-
Q5- What is the need for group functions in SQL?
A-
The GROUP BY statement groups rows that have the same values into summary rows, like "find the number of customers in each country".
The GROUP BY statement is often used with aggregate functions (COUNT(), MAX(), MIN(), SUM(), AVG()) to group the result-set by one or more columns.
Q6- What is a Relationship and what are they?
A- A relationship in a relational database defines how data in one table is related to data in another table. There are three main types of relationships: