0% found this document useful (0 votes)
53 views

CSDL

The document describes the tables needed to create a database to store information about student projects and soccer games. It defines 5 tables - GiaoVien, DeTai, SinhVien, HuongDan to store information about teachers, projects, students, and student project guidance. It also defines 4 tables - CauThu, GiaiDau, TranDau, NhaTaiTro, ThamGia to store information about players, tournaments, matches, sponsors, and player participation. Primary keys are specified for each table to uniquely identify records.

Uploaded by

Thịi Ánhh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

CSDL

The document describes the tables needed to create a database to store information about student projects and soccer games. It defines 5 tables - GiaoVien, DeTai, SinhVien, HuongDan to store information about teachers, projects, students, and student project guidance. It also defines 4 tables - CauThu, GiaiDau, TranDau, NhaTaiTro, ThamGia to store information about players, tournaments, matches, sponsors, and player participation. Primary keys are specified for each table to uniquely identify records.

Uploaded by

Thịi Ánhh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Hướng Dẫn
GiaoVien(GV#, HoTen, NamSinh, DiaChi)
DeTai(DT#, TenDT, TheLoai)
SinhVien(SV#, TenSV, NgaySinh, QueQuan, Lop)
HuongDan(SV#, GV#, DT#, NamThucHien, KetQua)

CREAT TABLE GiaoVien(


MaGV int identity(1,1) PRIMARY KEY,
HoTen varchar(30) NOT NULL,
NamSinh int,
DiaChi varchar(50)
);
CREAT TABLE DeTai(
MaDT int identity(1,1) PRIMARY KEY,
TenDT varchar(50) NOT NULL,
TheLoai varchar 20
);
CREAT TABLE SinhVien(
MaSV int identity(1,1) PRIMARY KEY,
TenSV varchar 30 NOT NULL,
NgaySinh int,
QueQuan varchar(20),
Lop varchar(20)
);
CREAT TABLE HuongDan(
MaGV int identity(1,1),
MaDT int identity(1,1),
MaSV int identity(1,1),
NamThucHien int,
KetQua int
);
PRIMARY KEY(MaGV, MaDT, MaSV, NamThucHien)

2. Bóng Đá
CauThu(MaCT, TenCT, NgaySinh, SoAo, GiaiThuong)
GiaiDau(MaGD, TenGD, Nam, ChiTiet)
TranDau(MaTD, NgayGio, DoiThu, San, SoBanThang, SoBanThua, DoiTruong,
MaGD)
NhaTaiTro(Ten, SoTien)
ThamGia(MaTD, MaCT, ViTri, SoTheVang, SoTheDo)
TaiTro(Ten, MaGD, SoTien)

You might also like