General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Hi John,
The only thing I can see, is you need to group both halves of the select statement.
select Field1, sum(Field2) from Table;
where Field3 ! = "XXX";
group by Field1;
union select Field1, sum(Field2) from Table2;
where Field3 ! = "XXX";
group by Field1
Try this.
HTH
Mike
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only