If I create a query in Design View, I’m given the option to “Add Table or Query”. I’m not finding any tutorials that describe using a query there instead of a table. Can anyone point me to a good example?
What I’m actually trying to do is query one table with a given set of its columns, adding those columns to a sum of a one-to-many related table’s values that may or may not return NULL. What I’m finding is that if that sum from the related table is NULL, the sum returned by the expression is NULL instead of just the sum of the other fields.
I’m using a MariaDB database connection in Base, but maybe I’m wrong in assuming that the SQL in that Base DB will use MariaDB syntax. I’ve found the MariaDB syntax that will let me do what I need, but it’s using user defined variables … something I’ve definitely not been able to do in Base. So I’m trying to find out if I can use the result of a query as a field in another query … or something like that.