SQL can be very simple

Assume you want data from the right where the state is CA or TX

Query 1:

SELECT *

FROM database_table

WHERE ST = ‘CA’ or ST = ‘TX‘

  • The SQL statement above returns data for all States that are in either California or Texas, since we set the ST column to be equal to CA or TX — think of it as filtering data in an Excel workbook.