...

/

Working with the String Data Type

Working with the String Data Type

Learn how to make a string-based comparison in an SQL query.

Difference between identifiers and string literals

Let’s try to compile a list of sales attributed to a particular salesperson, for instance, Alice Webster. Does it seem straightforward? Let’s proceed with the task and see the results:

Press + to interact
SELECT SalesPerson, SaleDate, ProductName, SalesAmount
FROM SalesData
WHERE SalesPerson = alice Webster;

What happened? ...