Chapter 01-Database 3CS
Chapter 01-Database 3CS
Level #3
Chapter #1
Database
2020
Q1. Briefly state difference between Data, Information, and Knowledge?
Note:
1 DataBase 2020
Q3. Define Flat file. Give an example.
A File system that contains only one table for all data separated by comma.
E.g. CSV (Comma Separated Values) data stored as (ASCII) separated by comma.
(ASCII: American Standard Code for Information Interchange.)
2 DataBase 2020
Q7. Describe the Three-Tier (DBMS Schema) levels Of ANSISPARC.
External Level Schema.
User view of database.
Represents data as a set of relations.
Some users should not see portions of the stored data.
Example: Student should not see faculty salaries.
Conceptual (Logical) Level Schema:
Describing data stored in database and its relationships.
Does not specify how data is physically stored.
DBA (Database Administrator) works at this level.
Only DBA can define this level.
Internal Level Schema:
Describe how data is actually stored in database.
Involves how the database physically represented on the computer.
3 DataBase 2020
Database Platform:
1) MySQL
2) Microsoft ACCESS
3) SQLLite
4) PostgreSQL
Database models (determine the logical structure of database):
1) Hierarchical database.
2) Network Database.
3) Flat-file Database.
4) Relational Database.
5) Object-oriented Database.
4 DataBase 2020
Disadvantage:
1) Supports only one to many relationships.
2) Searching for data require DBMS to run through entire model from top to
bottom until required information is found.
3) Data stored in many different entities.
Disadvantages:
1) All records maintained using pointers (structure very complex).
2) Insert, delete, update require large number of pointer adjustments.
3) Change structure of database is very difficult.
5 DataBase 2020
Disadvantages:
1) Data redundancy.
2) More cost when add new data.
6 DataBase 2020
Advantages:
1) Handle different type of data while relational handle a single data.
2) Handle different type of data like pictures, voice, video, text, and numbers.
3) Provide reusability and flexibility.
4) Low cost.
----------------------------------- We Use Relational Database Model ----------------------------
Remember:
Relational Database =====>
1) Data stored in Relations (Tables).
2) Data represented by Tuples (rows, records).
3) Each tuple represent a set of related data.
4) Attributes (columns) contains domain of data.
Q14. What is the difference between Super Key, candidate key, primary
key and foreign key?
عبارة عن مجموعة األعمدة (عمود واحد او اثنين او اكثر( والتي من الممكنSuper Key
.ان تعرف أي صف فريد داخل الجدول
يتم اختياره كمفتاحSuper Key األقل في عدد األعمدة داخل الCandidate key
.مرشح
Candidate Key هو العمود الذى يتم اختياره من الـPrimary Key
PK ⊂ CK ⊂ SK
عباره عن عمود ال بد ان يكون مفتاح أساسي في جدول اخر ويكونForeign key
.من نفس النوع ويستخدم ف العالقة بين الجدولين
7 DataBase 2020
Q16. State several data types of fields in database.
Text Non-numeric 256 character (Char, Varchar).
Paragraph
Text longer than 256.
Text
Number Numbers, there are different type can selected (int, float, numeric).
Yes/No 1 or o (bit).
Date/ Time (Date, time).
Currency Special case of number for currency (money).
object Data cannot entered through keyboard (image, music, videos).
8 DataBase 2020
Q17. Define each of the following:
1) NOSQL:
NotOnly SQL.
Solve problem of large-scale database over several server.
Unstructured data work with data in looser way, allowing unstructured
environment, communication changes to data over the time over the server.
2) Enterprise Database:
Database sometimes installed on a single computer (or several servers
worldwide) to be accessed by a group of people at a single location.
3) Big data
Large volume of data (structured and unstructured)
Doug Laney define Big Data as three Vs:
[1] Volume: collect data from verity sources.
[2] Velocity: Data Stream in unprecedented speed.
[3] Variety: Data comes in all types of formats.
There are two dimension when come big:
[1] Variability: highly inconsistent. [2] Complexity: difficult to link.
4) Metadata:
Data about data (Stored in data dictionary).
E.g. birthday of student is 1993 >> filed name of year of birth.
E.g. Artist, album, and file size of an mp3 file.
5) Data Warehouse:
Extract data from one or more organization database and load into data
warehouse (which is itself another database) for storage and analysis, this
improved take decisions.
Constraints:
[1] Uses non-operational data. (Copy of active data).
[2] Time – variants. (time –stamp)
[3] Standardized (because come from different source).
Note Standardization achieved by ETL: Extraction Transformation Load.
6) Data mining:
Is a process for analyzing data to find previously unknown patterns in order
to make decision.
7) Privacy concerns:
Because increasing power of data mining caused concerned in privacy.
9 DataBase 2020