DBI202_-_PE_-_SU_2024_-_Block_10_2176.webp
K

DBI202_-_PE_-_SU_2024_-_Block_10_2176.webp

  • Media owner Kasumi86
  • Ngày thêm
3 of 3
Paper No: 1
Question 1:
[2 marks] Create one database and then write SQL statements to create, in this database, all tables derived from the ERD given in the following picture with appropriate attributes,primary keys and foreign keys.
NOTE that when creating the SQL commands as request, you MUST keep the name of tables, relationship, attributes and data type of attributes as SAME as given in the given ERD. DO NOT add more any attributes to entities
Attributes with underline belong to the Primary Key of each entity.
Attributes which reference to the primary key of another table must have the same name as the attributes in the primary key of the referencing table.
When submitting the responses for this question, submit only SQL statements for creating tables with corresponding keys and foreign keys. Do not use "create database", "Alterdatabase", "use database_name" or any statements using database's name in your submission.
DeptID:varchar(20)
name:nvarchar(200)
1
EmpCode:varchar(20)
N
Name:nvarchar(50)
Departments
Belongs To
Employees
office:nvarchar(100)
+ 100%
Close
Birth Date:date
has
Zoom
Chưa có bình luận nào.

Thông tin

Category
DBI202
Thêm bởi
Kasumi86
Ngày thêm
Lượt xem
746
Lượt bình luận
0
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
DBI202_-_PE_-_SU_2024_-_Block_10_2176.webp
File size
292.6 KB
Dimensions
1920px x 991px

Share this media

Back
Bên trên Bottom