hw1 110590049

tags db database

2023 database-systems HW1.pdf

1.

install steps

commands

2. main characteristies

  • Self-describing:
    A DBMS catalog stores the description of a particular database (e.g. data structures, types, and constraints)
  • Insulation between programs and data:
    program-data independence

3.a data model

Set of concepts to describe the structure of a database, the operations for manipulating these structures, and certain constraints that the database should obey.

3.b database schema

The description of a database. Includes descriptions of the database structure, data types, and the constraints on the database.

4.Three-Schema Architecture

  • Internal schema: at the internal level to describe physical storage structures and access paths
  • Conceptual schema: at the conceptual level to describe the structure and constraints for the whole database for a community of users.

5.For the binary relationships below,suggest cardinality ratios based on common-sense meaning of the entity types. Clearly state any assumptions you make

Entity1Cardinality RatioEntity2Reason
Student1:NBookA book can only be own by one person at the same time.
StudentN:1AdvisorOne advisor can have multiple students, but a student can only be connected to one advisor at a time.
ClassRoomN:MWallWalls can be shared by multiple classrooms, and a class can have multiple walls.
StudentN:MCourseReason: Students can be enrolled in multiple courses, and a course can have multiple students at the same time.
Car1:1EngineOne car should only have one engine at a time.

6.a

Entity1Cardinality RatioEntity2Reason
Student ID No.1:1ID No.one person only have one ID number
Student ID No.1:1Nameone student only have one name
Student ID No.1:1Cellphoneone student only have one phone
Student ID No.1:1Signatureone student only have one signature
Student ID No.1:NNo.one student can have multiple suspension
No.1:1Classonly suspension one class at time
No.1:1Date of applicationone form only have one application time
No.1:1Date of Resumptionone form only have one resumption time
No.1:1Applicationone form can only have one type of application
No.1:1Department/Graduate Instituteone form can only have one Department or Graduate Institues
No.1:1Reason for Suspensionone form only have one reason of suspension
No.1:1Suspensionone form only have one status of suspenstion
No.1:1Sigend by Parentone form only have one signed
No.1:1Addressone form only have one address

6.b