- 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.
Lentsoana Hophney
Wesly
Nonhlanhla Mazibuku
----MySQL is a relational database management system that uses SQL as its query language
Types -----
Hierarchical DBMS :Data is organized in a tree-like structure.
Network DBMS :Data is organized in a graph, allowing multiple parent-child relationships.
columns.
Object-oriented DBMS (OODBMS):Data is represented as objects, similar to object-oriented programming.
a)Inner join: Returns rows that have matching values in both tables.
b)full- outer join: returns all rows when there is a match in one of the tables and NULL values for columns of the table that does not have a match.
c)Left-outer join: Returns all rows from left table and matching rows from the right table.
d)Right- outer join: Returns rows from right table and matching rows from the left table.
e)cross join: Returns all possible rows combinations from the two tables
f)self-join: regular join but the table is joining by itself.
g)Natural join: joins based on
b)Comparison Operators
c)Logical Operators
d)String Operators
One-to-One Relationship, One-to-Many Relationship, Many-to-Many relationship.