I want to return extra dynamic column based on some query. Suppose i have a table named as Table_A having columns A,B,C
If i want to return extra column i will do as below
SELECT A,B,C,D=1
FROM Table_A
D is the extra column with 1 value. Is there any way to put query on D like:
Select SELECT A,B,C,D = (//i want to put query which will return 1 or 0) FROM Table_A
Can i do this?