Question
Combining 2 recordsets in one query possible?
Hello,
I've simplified my 2 queries. Is it possible to combine the 2 queries to get the total?
I use in my query window (in Dreamweaver)
(SELECT COUNT(*) FROM table_1 WHERE field_1="X") + (SELECT COUNT(*) FROM table_2 WHERE field_1="Y") AS TOTAL
When I click 'TEST', I got a message that SQL Syntax is wrong.
Any ideas?
Regards.
I've simplified my 2 queries. Is it possible to combine the 2 queries to get the total?
I use in my query window (in Dreamweaver)
(SELECT COUNT(*) FROM table_1 WHERE field_1="X") + (SELECT COUNT(*) FROM table_2 WHERE field_1="Y") AS TOTAL
When I click 'TEST', I got a message that SQL Syntax is wrong.
Any ideas?
Regards.
