Câu 46: 70-761: Querying Data with Transact-SQL
You have a project management application. The application uses a Microsoft SQL Server database to store data. You are developing a software bug tracking add-on for the application. The add-on must meet the following requirements: ✑ Allow case sensitive searches for product. ✑ Filter search results based on exact text…
Nội dung câu hỏi
You have a project management application. The application uses a Microsoft SQL Server database to store data. You are developing a software bug tracking add-on for the application. The add-on must meet the following requirements: ✑ Allow case sensitive searches for product. ✑ Filter search results based on exact text in the description. ✑ Support multibyte Unicode characters. You run the following Transact-SQL statement: Users connect to an instance of the bug tracking application that is hosted in New York City. Users in Seattle must be able to display the local date and time for any bugs that they create. You need to ensure that the DateCreated column displays correctly. Which Transact-SQL statement should you run?
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.
- A. SELECT Id,Product, DateCreated AT TIME ZONE 'Pacific Standard Time' FROM Bug
- B. SELECT Id,Product, DATEADD(hh, -8, DateCreated) FROM Bug
- C. SELECT Id,Product, TODATETIMEOFFSET(DateCreated, -8) FROM Bug — đáp án hiện tại
- D. SELECT Id,Product, CAST(DateCreated AS DATETIMEOFFSET) FROM Bug
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.