Its not ignoring the where clause. However, you didn't specify a
relationship (join) between the two tables, so SQL Server gives
you the cartesian product of the two tables (ie, a record for every
entry
in invoices with every entry in subaccounts).
What you are trying to do isn't as simple as above. Take a look at
the service revenue report, as it should do what you want:
ftp://ftp.iea-software.com/Emerald/reports/cr60/serv_rev.rpt
--Dale E. Reed Jr. Emerald and RadiusNT/X__________________________________________IEA Software, Inc. www.iea-software.com
For more information about this list (including removal) go to:http://www.iea-software.com/support/maillists/liststart