I'm using MS Access to query a Pervasive ODBC DSN. Because Pervasive cannot handle nested query what I did was to create two queries, one to extract the data (unions are involved) and the other to group/sum the results. When I run the first query to extract the data, it took barely 2 minutes. But when I run the group/sum query, it takes a long time for the results to be returned (about 10 mins). Any idea how to improve the query performance?
Thanks!