I’m trying to execute a SELECT statement that includes a column of a static string value. I’ve done this in Access, but never with raw SQL. Is this possible?
Example:
Name | Status
------+--------
John | Unpaid
Terry | Unpaid
Joe | Unpaid
In the above example, the “Status” column doesn’t exist in the database.
You may want to use:
The
SELECTclause syntax, as defined in MSDN: SELECT Clause (Transact-SQL), is as follows:Where the
expressioncan be a constant, function, any combination of column names, constants, and functions connected by an operator or operators, or a subquery.