T
TerryPin
Hi Folks
A little bit of help would be much appreciated. I'm an access novice and an SQL
newbi but I'd really like to know how to combine a couple of SQL routines
If I generate an SQL query called Test1 with the the following script, I can
join 2 access tables with identical structure and this works fine:
SELECT * from Table1
UNION select * from Table2;
If I then run a second query "Test2" with the following script I can filter the
results of the joined tables and this works fine
SELECT Test1.Field1, Test1.Field2, Test1.Field3, Test1.Field4, Test1.Field5,
Test1.Field6, Test1.Field7
FROM Test1
WHERE (((Test1.Field1) Like "aa") AND ((Test1.Field7) Not Like "t"));
So simple question is how do I combine both requirements so I can run it from a
single query
OK I'm sure it's simple but I admit it I'm stuck
Any help much appreciated
Terry
A little bit of help would be much appreciated. I'm an access novice and an SQL
newbi but I'd really like to know how to combine a couple of SQL routines
If I generate an SQL query called Test1 with the the following script, I can
join 2 access tables with identical structure and this works fine:
SELECT * from Table1
UNION select * from Table2;
If I then run a second query "Test2" with the following script I can filter the
results of the joined tables and this works fine
SELECT Test1.Field1, Test1.Field2, Test1.Field3, Test1.Field4, Test1.Field5,
Test1.Field6, Test1.Field7
FROM Test1
WHERE (((Test1.Field1) Like "aa") AND ((Test1.Field7) Not Like "t"));
So simple question is how do I combine both requirements so I can run it from a
single query
OK I'm sure it's simple but I admit it I'm stuck
Any help much appreciated
Terry