I currently start learning SQL query in SQL Server 2022, I want to get productId
and name with name prefix 'Chain'.
I try this SQL:
SELECT ProductID, Name
FROM Production.Product
WHERE Name LIKE 'Chain%';
And I get this result:
ProductID Name
---------------------------
952 Chain
324 Chain Stays
322 Chainring
320 Chainring Bolts
321 Chainring Nut
But I expected:
ProductID Name
-------------------------
952 Chain
324 Chain Stays
How can I achieve this?