You are on page 1of 1

1.

Đưa ra tên, địa chỉ, số bằng lái xe, số điện thoại của tất cả khách hàng:

Select cus.name, cus.address, cus.lisence, cus.phone

From Customer as cus

2. Đưa ra tên, số điện thoại của khách hàng có sự chi trả vào ngày 31/12/2022

Select cus.name, cus.phone

From Customer as cus

Join Pay as p on p.id_customer = cus.id_customer

Where p.pay_date like “31/12/2022”

3.Phụ thuộc hàm:

3.1 Với một id, ta xác định được duy nhất một bộ {name, address, lisence, phone }

Do đó, id ->name, id -> address, id -> lisence, id -> phone

3.2 license -> {vin, model}

You might also like