MrSandman666
Programmer
Hello again!
I have another problem that I urgently need your help with.
I have an SQL Query which contains aliased fields from a table ( e.g. "SELECT txtLstName as LastName". I hand this string to another program where a user can build a filter for this query, based on the aliases of the original query. I wanted to solve the problem like this:
SELECT * FROM (SELECT txtLstName as LastName) WHERE LastName = 'Johnson';
For some reason this doesn't work. What do I do wrong? How can I do it right?
Thanks in advance!
I have another problem that I urgently need your help with.
I have an SQL Query which contains aliased fields from a table ( e.g. "SELECT txtLstName as LastName". I hand this string to another program where a user can build a filter for this query, based on the aliases of the original query. I wanted to solve the problem like this:
SELECT * FROM (SELECT txtLstName as LastName) WHERE LastName = 'Johnson';
For some reason this doesn't work. What do I do wrong? How can I do it right?
Thanks in advance!