data abstraction xii_cs for database management cs and ip students .pptx
kvfwteachers
5 views
17 slides
May 06, 2024
Slide 1 of 17
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
About This Presentation
Data abstraction with foreign key and natural join , equi join difference.
Size: 1.1 MB
Language: en
Added: May 06, 2024
Slides: 17 pages
Slide Content
Class :XII CS Total strength: 45 Topic : Data base Concepts TLO: Data abstraction levels
Data abstraction 04/04/2024
Introduction Video games Player plays : not about how scores are stored , what algorithm or steps or codes are there to run this game. How these works on the web.
data abstraction entails shielding end-users from unnecessary data. That means hiding unnecessary background details from the end user to make the accessing of data easy and secure. Ex: fridge : end user uses it without bothering about the microcontrollers inside it Algorithms used to work fridge in different mechanism. Other Examples from students . Source : Youtube https://www.youtube.com/watch?v=GEsVo2fsl0g
We just place the order- ecommerce sites We book the tickets . And many more examples are there.
Levels of Data Abstraction in DBMS The data abstraction in DBMS is implemented in 3 layers: Physical or Internal Level Logical or Conceptual Level View or External Level
Physical : how to store data All these racks contain hard disk drives storing all your secured data! Where the raw data is physically stored as files. This layer contains all the complex data structures and the data accessing methods defined.
Logical level: After taking the raw data from the physical or internal level, the structure of the data is defined at the logical or conceptual level Designing the database /tables . (Schema/structure)
View level: many users on the same d/b He/she does not get the entire database, but depending on the queries made from the front-end the user gets to see the data. I
Three Important Properties of a Relation Attribute rules: Each attribute in a relation has a unique name. Sequence of attributes in a relation is immaterial. 2. Rules on Tuples: Each tuple in a relation is distinct. Sequence of tuples in a relation is immaterial. 3. R ules on the state of a relation. All data values in an attribute must be from the same domain (same data type). Each data value associated with an attribute must be atomic No attribute can have many data values in one tuple. A special value “NULL” is used to represent values that are unknown or non-applicable to certain attributes.
Properties of dbms
Domain: domain is a set of values that can be stored in a column of a database table. A domain is usually defined by a column's data type
Introduction to Domain Domain constraints in DBMS are the set of rules which defines what kind of attributes can be stored in an entity (a table that stores data)
Foreign Key
Sql command CREATE TABLE TRANSACTIONS(TRANSACTION_ID INT PRIMARY KEY , AMOUNT FLOAT(6,2) , CUSTOMER_ID INT , FOREIGN KEY(CUSTOMER_ID) REFERENCES CUSTOMERS(CUSTOMER_ID));