M
M K
I have an XML database I load into a typed dataset. I have
2 tables in this dataset. One has Orders, One has
customers. I want to do a query or computation that counts
orders based on Fields in the Orders and Customers table.
In a sql query I would do this:
SELECT Count(Orders.recNum) FROM Orders JOIN Customers
WHERE Orders.Field1 <> 'x' AND Customers.Type NOT 'Basic'
Something like that (I know the Join isn't correct). But I
want to do it on the dataset. How could I do that? I
already have a Relation between the two tables. (Tho I may
not have it set up correctly.)
Can somebody help me?
2 tables in this dataset. One has Orders, One has
customers. I want to do a query or computation that counts
orders based on Fields in the Orders and Customers table.
In a sql query I would do this:
SELECT Count(Orders.recNum) FROM Orders JOIN Customers
WHERE Orders.Field1 <> 'x' AND Customers.Type NOT 'Basic'
Something like that (I know the Join isn't correct). But I
want to do it on the dataset. How could I do that? I
already have a Relation between the two tables. (Tho I may
not have it set up correctly.)
Can somebody help me?