Query two tables, combine results and get distinct results. But I do not want to join the two very large tables. Both tables have multiple entries for the field I am looking to get.
Basically I query first table, spit out DISTINCT field.
then query the second table, spit out DISTINCT field.
Now I want distinct of the two combined results for the field value.
This will give my a unique COUNT of field from either table one or table two, based on the filter applied to each of course.
What specifically do you want? A separate count total for each table -- so that if a value appears in both columns, you get both totals -- or just a list of the DISTINCT values, perhaps with a single count even if in both tables?
But if a given field value is in both tables, what do you want to list?
For example, table1 has "value1" with count of 7, and table2 has "value1" with a count of 3, what "distinct" result do you want to see in your results?
Keep in mind, we know NOTHING about your data. If your data follows certain patterns, tell us about those, because we do not know and cannot know that on our own.