SELECT *
FROM StockTrades
WHERE Symbol = 'EBAY';
These lines of code tell Sybase CEP Engine to take all fields from the input stream (StockTrades), but only from rows where the value of the Symbol column is "EBAY". A semi-colon ends the Query statement.
Your Queries tab should look like this:
Notice how Sybase CEP Studio color-codes different parts of the syntax for easy identification: reserved words are blue; column names, stream names, and numeric values are black; string literals enclosed in double quotation marks are red, and string literals enclosed in single quotation marks are magenta.