I want to create a view in which I select something like the following:
select id, name, 1 as active
from users
However, I want the active field, which I am creating in the select statement (it doesn't exist in the table), to be a bit field. Is there a way to do this?