8. Your Apps
Pros
Readable Code
Didn’t fail any test case
Simple interface
Cons
Non matching colors
Some parts in the layout are not responsive
Score 6.5 / 10
14. Your Apps
Pros
Readable Code
Failed a test case ( Only one )
Elegant interface
Developed more functionalities
Cons
One of his extra functionalities produces wrong output
His design is not creative
Over handling to exception that will never happen (Long code)
Score 8 / 10
16. Your Apps
Pros
Readable Code
All test cases passed
Creative interface
Cons
Some components are responsive and some are not
Score 8 / 10
17. What is Database
A structured set of data held in a computer, especially one that is
accessible in various ways.
19. Database Management System
A database management system (DBMS) is system software for creating and
managing databases.
The DBMS provides users and programmers with a systematic way to
Create
Read
Update
Manage data
21. Structured Query Language
Structured Query Language (SQL) is a standard
computer language for relational database management and data
manipulation.
SQL is used to query, insert, update and modify data.
30. Aggregate Functions
Reference : https://www.w3schools.com/sql/sql_functions.asp
AVG() Returns the average value
COUNT() Returns the number of rows
FIRST() Returns the first value
LAST() Returns the last value
MAX() Returns the largest value
MIN() Returns the smallest value
ROUND() Rounds a numeric field to the number
of decimals specified
SUM() Returns the sum
31. Examples
SELECT COUNT(*) FROM table_name;
The COUNT(*) function returns the number of records in a table:
SELECT COUNT(column_name) FROM table_name;
The COUNT(column_name) function returns the number of values
(NULL values will not be counted) of the specified column
SELECT AVG(column) AS averageOfCol FROM Products;
Return the average of col and name it averageOfCol
32. Foreign Key
A FOREIGN KEY is a key used to link two tables together.
A FOREIGN KEY in a table points to a PRIMARY KEY in another table.
PersonID LastName FirstName Age
1 Hansen Ola 20
2 Svendson Tove 23
3 Pettersen Kari 21
OrderID OrderNumber PersonID
1 1321312 3
2 2131222 3
3 2311313 1
4 3311233 2
33. Foreign key
CREATE TABLE Orders (
OrderID int NOT NULL PRIMARY KEY,
OrderNumber int NOT NULL,
PersonID int,
FOREIGN KEY (PersonID) REFERENCES Persons(PersonID)
);
34. Dependent Table
Table with no primary key
Any record belong to another record in another table
PersonID Last Name First Name Age
1 Mohey Sandra 20
2 Samir Mohamed 23
3 Zakryia Noha 21
PersonID Children Name
1 Hamda Mohey
1 Tamer Mohey
2 Magdy Samir
2 Kenzy Samir