Cho cơ sở dữ liệu của một thư viện trường học với 3 bảng có cấu trúc như sau:
- NGUOIDOC (MATHE, HOVATEN, LOP) lưu thông tin: mã thẻ, họ và tên, lớp
- SACH (MASACH, TENSACH, SOTRANG, TACGIA) lưu thông tin: mã sách, tên sách, số trang, tác giả
- MUONTRA (MATHE, MASACH, NGAYMUON, NGAYTRA) lưu thông tin: mã thẻ, mã sách, ngày mượn, ngày trả
a) TENSACH là một bản ghi tương ứng với một hàng của bảng SACH. (S, B)
b) Trường MATHE là khóa chính của bảng NGUOIDOC. (Đ, B)
c) Cơ sở dữ liệu trên là một cơ sở dữ dữ liệu tập trung vì thư viện này chỉ trong một trường học.
(Đ, H)
d) Câu lệnh SQL sau đây liệt kê họ và tên, lớp của những người đọc sách có mã 001: (Đ, V)
SELECT [NGUOIDOC].[HOVATEN], [NGUOIDOC].[LOP]
FROM [NGUOIDOC] INNER JOIN [MUONTRA] ON [NGUOIDOC].[MATHE]= [MUONTRA]. [MATHE]
WHERE [MASACH] = “001”
Cho cơ sở dữ liệu của một thư viện trường học với 3 bảng có cấu trúc như sau:
- NGUOIDOC (MATHE, HOVATEN, LOP) lưu thông tin: mã thẻ, họ và tên, lớp
- SACH (MASACH, TENSACH, SOTRANG, TACGIA) lưu thông tin: mã sách, tên sách, số trang, tác giả
- MUONTRA (MATHE, MASACH, NGAYMUON, NGAYTRA) lưu thông tin: mã thẻ, mã sách, ngày mượn, ngày trả
a) TENSACH là một bản ghi tương ứng với một hàng của bảng SACH. (S, B)
b) Trường MATHE là khóa chính của bảng NGUOIDOC. (Đ, B)
c) Cơ sở dữ liệu trên là một cơ sở dữ dữ liệu tập trung vì thư viện này chỉ trong một trường học.
(Đ, H)
d) Câu lệnh SQL sau đây liệt kê họ và tên, lớp của những người đọc sách có mã 001: (Đ, V)
SELECT [NGUOIDOC].[HOVATEN], [NGUOIDOC].[LOP]
FROM [NGUOIDOC] INNER JOIN [MUONTRA] ON [NGUOIDOC].[MATHE]= [MUONTRA]. [MATHE]
WHERE [MASACH] = “001”
Hãy suy nghĩ và trả lời câu hỏi trước khi xem đáp án
- a) Sai. TENSACH là một thuộc tính (cột), không phải một bản ghi (hàng).
- b) Đúng. MATHE là khóa chính của bảng NGUOIDOC.
- c) Sai. Tính tập trung hay phân tán của CSDL không phụ thuộc vào phạm vi sử dụng của thư viện. Nó phụ thuộc vào việc dữ liệu được lưu trữ và quản lý ở một nơi duy nhất hay phân tán trên nhiều hệ thống.
- d) Đúng. Câu lệnh SQL truy vấn đúng những người đọc có mã sách '001', lấy ra họ và tên và lớp của họ.
Vậy đáp án đúng là: a) Sai, b) Đúng, c) Sai, d) Đúng
Câu hỏi liên quan
Read the following passage about Generations Z and Alpha: Born Multicultural Citizens and mark the letter A, B, C or D on your answer sheet to indicate the option that best fits each of the numbered blanks from 18 to 22.
Generation Z, born between 1997 and 2012, has grown up in a world (18)_________. These young people use smartphones and computers every day to talk with friends from different parts of the world. If they had been born 30 years earlier, they would not have had these opportunities to experience global connections. They are learning about different cultures, languages, and traditions not just from books but through real online friendships.
Generation Alpha, which includes children born after 2013, is even more connected. The toys that Generation Alpha plays with often teach them about global issues while they have fun. Many schools (19)_________. These young students, who come from diverse backgrounds, are creating a new kind of society where differences are celebrated.
(20)_________. Generation Z students participate in exchange programs and travel more than previous generations did. (21)_________, sharing their daily lives and learning from each other.
The world that these generations are creating will be more inclusive and understanding. Traditional borders are becoming less important while cultural exchange is valued more highly. Generation Z and Alpha children, (22)_________, will likely become adults who solve problems together across cultural lines. The future looks promising with these multicultural citizens leading the way.
Để cung cấp điện cho ổ cắm của bếp hồng ngoại dùng trong gia đình có công suất 2000 W (hệ số cosφ = 1), điện áp 220 V. Với dây dẫn đồng (mật độ dòng J = 6 A/mm2) thì cần lựa chọn dây dẫn có tiết diện hợp lí nhất là
- Thành phần nào sau đây của biểu mẫu chỉ cho phép chọn một giá trị trong số nhiều lựa chọn?
Kinh doanh là việc thực hiện liên tục một, một số hoặc tất cả công đoạn của quá trình từ đầu tư, sản xuất, tiêu thụ sản phẩm hoặc cung ứng dịch vụ trên thị trường nhằm mục đích nào sau đây?
Vì sao nói Sử học và di sản có quan hệ mật thiết với nhau?
Một máy tạo rung được sử dụng để tạo ra sóng trên dây.
Tần số của máy tạo rung là 60Hz. Khi đó, vận tốc sóng truyền truyên dây là:
Một thùng đựng 20,0 lít nước ở nhiệt độ .. Cho khối lượng riêng của nước là \(1,{0.10^3}\;{\rm{kg}}/{{\rm{m}}^3};\)nhiệt dung riêng của nước là \(4200\;{\rm{J}}/({\rm{kg}}.\)K). Tính thời gian truyền nhiệt lượng cần thiết nếu dùng một thiết bị điện có công suất 25,0 kW để đun lượng nước trên đến Biết chỉ có 80,0% năng lượng điện tiêu thụ được dùng để làm nóng nước.
Read the following leaflet and mark the letter A, B, C or D on your answer sheet to indicate the option that best fits each of the numbered blanks from 7 to 12.
Eat Well, Live Well: Simple Steps for Better Health
Learn how small changes in your diet can make a big difference.
Common issues we face:
We tend to ___(7)___ too much sugar and processed food today, which can lead to health problems. Another challenge is finding time to prepare meals at home, causing a reliance on fast food. Over time, this habit increases the risk of obesity and ___(8)___ diseases.
What we can do:
● ___(9)___ on sugary drinks and replace them with water or herbal tea. This helps reduce excess calories.
● Prepare meals at home ___(10)___ buying pre-made options, giving you control over ___(11)___ and portion sizes.
● When shopping, look for fresh fruits and vegetables rather than processed foods. They provide a(n) ___(12)___ of nutrients essential for good health.
Cho giới hạn \(\underset{x\to -2}{\mathop{\lim }}\,\frac{4{{x}^{3}}-1}{3{{x}^{2}}+x+2}=-\frac{a}{b}\) với \(a\), \(b\in \mathbb{Z}\) và \(\frac{a}{b}\) là phân số tối giản. Chọn kết quả đúng trong các kết quả sau:
Một con lắc lò xo có khối lượng vật nhỏ là m dao động điều hòa theo phương ngang với phương trình x=Acosωt. Mốc tính thế năng ở vị trí cân bằng. Động năng của con lắc ở vị trí x=±2A là
Trong cuộc kháng chiến chống Pháp xâm lược, Chỉ thị nào sau đây được Ban Thường vụ Trung ương Đảng đưa ra vào ngày 12-12-1946?
Thành phần kinh tế Nhà nước có vai trò
Chỉ ra câu sai trong các câu sau?
Đại lượng nào dưới đây là đại lượng vectơ?
Hô hấp tế bào (hô hấp hiếu khí) bao gồm mấy giai đoạn?
Một nhà thi đấu có 15 hàng ghế dành cho khán giả. Hàng thứ nhất có 20 ghế, hàng thứ hai có 21 ghế, hàng thứ ba có 22 ghế, …Cứ như thế, số ghế ở hàng sau nhiều hơn số ghế ở hàng trước là 1 ghế. Trong một giải thi đấu, ban tổ chức đã bán được hết số vé phát ra và số tiền thu được từ bán vé là 52 650 000 đồng. Biết rằng, biết số vé bán ra bằng số ghế dành cho khán giả của nhà thi đấu và các vé là đồng giá. Khi đó, giá tiền của mỗi vé là?
Nội dung nào sau đây là bối cảnh lịch sử dẫn đến sự thành lập Hiệp hội các quốc gia Đông Nam Á (ASEAN)?
Humans now have to suffer the effects of global warming due to having treat the environment irresponsibly.
Read the following passage about the impact of tweeting on everybody and mark the letter A, B, C or D on your answer sheet to indicate the option that best fits each of the numbered blanks from 18 to 22
EVERYBODY’S TWEETING
Twitter (18) ________________ for a podcasting website, but then people realized that it offered them the power to connect with millions of people instantly. Suddenly, everyone had a voice, as long as it wasn’t longer than 140 characters. But what are we using it for, and just how is Twitter changing the way we do things?
Perhaps the greatest impact Twitter has had is on breaking news. Before Twitter, (19) _____________ before finally broadcasting it on the radio or TV. These days, anyone who happens to be in the right place at the right time with a Twitter account can post news the second it happens. For example, Janis Krums posted a photo and a tweet when he witnessed a US flight making an emergency landing in the Hudson River. He must never have imagined that he would break the story to the world.
Following Pop Idols
Young people have always loved to follow their pop idols, and Twitter has made it a whole lot easier. Before the Internet, teenagers used to join the fan clubs of their favorite bands and write letters to their heroes,
(20) _________________ to get a reply written by the club secretary. Today’s teenagers don’t need to wait. By following their idols on Twitter, they get all the news the minute it happens: their meals, activities, or even thoughts. And all the news comes directly from the bands themselves.
Creating Movements
Twitter allows people who think the same way to get together and (21) ______________. These problems may be cyberbullying, sexism, or racism. They can share information, organize campaigns, and put pressure on related departments. Twitter has given the man and woman on the street the power to make a difference.
Identifying the source of a piece of news
It’s good to get an idea of the background of a person who says or writes something. Are they an impartial expert or someone who wants to change your opinion to suit their own agenda? For example, this statement about a flu epidemic, “Patients can already spread the virus a day before they’ve even fallen sick themselves”, is more likely to come from a doctor than a politician. On the other hand, “We have to stop people who are carrying the virus from getting into the country” is more likely to come from a politician. (22) _____________, you’re better able to decide how much importance to give it and whether you can really trust what they say.
Cổng nào sau đây được sử dụng để kết nối máy tính với màn hình và truyền đồng thời âm thanh và hình ảnh?
a) Cổng VGA
b) Cổng HDMI
c) Cổng USB
d) Cổng mạng