In Access, I can run the query like:
SELECT username, EXISTS(SELECT * FROM member WHERE username='abc') AS has_record FROM table1
I am trying to do the same in SQL7 database:
SELECT username, "has_record" = EXISTS(SELECT * FROM member WHERE username='abc') FROM table1
But this doesn't work.
Can anyone tell me how to make it work (store testing result as a column)?
SELECT username, EXISTS(SELECT * FROM member WHERE username='abc') AS has_record FROM table1
I am trying to do the same in SQL7 database:
SELECT username, "has_record" = EXISTS(SELECT * FROM member WHERE username='abc') FROM table1
But this doesn't work.
Can anyone tell me how to make it work (store testing result as a column)?