How to create a new column in a select query

Martin08 picture Martin08 · Sep 22, 2010 · Viewed 155.8k times · Source

In MS Access, I want to insert a new column into the returned result of a select query. The new column has the same value for every row. For example, my select returns columns A, B and I want C to be the new column created by the select query:

A   B   C
----------
a1  b1  c
a2  b2  c
a3  b3  c

Answer

D'Arcy Rittich picture D'Arcy Rittich · Sep 22, 2010
select A, B, 'c' as C
from MyTable