- 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.
Team : Mohammad,Diala,Yassin,malak,feda
Q0: SQL is a programming language you can use to store and process information in a relational database. MySQL is the most widely adopted open-source relational database. Both technologies work together so that you can store and process data in structured tables with rows and columns. MySQL is the underlying technology that stores the data, while SQL is the language you use to read, modify, and delete that data.
Q1- DBMS : Database Management Systems is a collection of programs used for managing data and simultaneously it supports different types of users to create, manage, retrieve, update and store information.
Relational database:is a system where data is organized in two-dimensional tables using rows and columns.
Object Oriented Database: It is a system where information or data is represented in the form of objects which is used in object-oriented programming.
Hierarchical Database: It is a system where the data elements have a one to many relationship (1: N). Here data is organized like a tree which is similar to a folder structure in your computer system.
Network database is a system where the data elements maintain one to one relationship (1: 1) or many to many relationship (N: N).It also has a hierarchical structure, but the data is organized like a graph and it is allowed to have more than one parent for one child record.
Q2:(INNER) JOIN: Returns records that have matching values in both tables
LEFT (OUTER) JOIN: Returns all records from the left table, and the matched records from the right table
RIGHT (OUTER) JOIN: Returns all records from the right table, and the matched records from the left table
FULL (OUTER) JOIN: Returns all records when there is a match in either left or right table
Q3: the column or columns that contain values that uniquely identify each row in a table.
Q4:1- SQL Arithmetic Operators 2-SQL Bitwise Operators 3-SQL Comparison Operators 4- SQL Compound Operators 5- SQL Logical Operators
Q5: they are built-in SQL functions that operate on groups of rows and return one value for the entire group.COUNT, MAX, MIN, AVG, SUM, DISTINCT
Q6:an association between tables. Those associations create using join statements to retrieve data. It is a condition that exists between two database tables in which one table contains a foreign key that references the primary key of the other tables.
one-to-one.
one-to-many.
many-to-many.