100+ câu trắc nghiệm Lập trình Quản trị cơ sở dữ liệu nâng cao có đáp án - Phần 2

Trong CSDL QLDIEM, cho 2 bảng LOP(MALOP, TENLOP), HOCSINH(MASV, HOTEN, MALOP). Bảng HOCSINH liên kết với bảng LOP qua cấu trúc nào?

12/40

Trong CSDL QLDIEM, cho 2 bảng LOP(MALOP, TENLOP), HOCSINH(MASV, HOTEN, MALOP). Bảng HOCSINH liên kết với bảng LOP qua cấu trúc nào?

Constraint HOCSINH_LOP foreign key LOP(MALOP) references HOCSINH(MALOP)

Constraint LOP_HOCSINH foreign key LOP(MALOP) references HOCSINH(MALOP)

Constraint HOCSINH_LOP foreign key (MALOP) references LOP(MALOP)

Constraint LOP_HOCSINH foreign key (MALOP) references LOP(MALOP)

Giải thích

Chọn đáp án C