CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 60: 70-761: Querying Data with Transact-SQL

You have a table named Table1 that contains 200 million rows. Table1 contains a column named SaleDate that has a data type of DateTime2(3). Users report that the following query runs slowly. You need to reduce the amount of time it takes to run the query. What should you use to replace the WHERE statement?

Nội dung câu hỏi

You have a table named Table1 that contains 200 million rows. Table1 contains a column named SaleDate that has a data type of DateTime2(3). Users report that the following query runs slowly. You need to reduce the amount of time it takes to run the query. What should you use to replace the WHERE statement?

Minh họa câu hỏi

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. WHERE SaleDate >= '2017-01-01' AND SaleDate < '2018-01-01'
  2. B. WHERE cast(SaleDate as varchar(10)) BETWEEN '2017-01-01' AND '2017-12-31'
  3. C. WHERE cast(SaleDate as date) BETWEEN '2017-01-01' AND '2017-12-31' — đáp án hiện tại
  4. D. WHERE 2017 = year(SaleDate)

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề