Working with the String Data Type
Learn how to make a string-based comparison in an SQL query.
We'll cover the following...
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, SalesAmountFROM SalesDataWHERE SalesPerson = alice Webster;
What happened? ...