Một cái gì đó là "sai" với mệnh đề WHERE trong câu truy vấn sau đây.
Chúng tôi không muốn bất kỳ sản phẩm đỏ hoặc đen từ bất kỳ Agriculture hơn so với các giá trị của 1 trong cột ProductSubCategoryID, trừ khi họ chi phí giữa 1000 và 2000. CHỌN ProductSubCategoryID , LEFT ( [Tên], 35) AS [Tên] , Color, ListPrice TỪ Production.Product đÂU Màu iN ( 'Red', 'Đen') OR ListPrice GIỮA 1000 vÀ 2000 vÀ ProductSubCategoryID = 1 ORDER BY ProductID Viết truy vấn trong trình soạn thảo và thực hiện nó. Hãy nhìn vào những kết quả thiết lập và sau đó điều chỉnh các truy vấn như vậy nó mang lại kết quả thiết lập sau. Mẹo: điều hành ưu tiên thường là một nguồn gây nhầm lẫn.
đang được dịch, vui lòng đợi..