>
If you are into the millions of rows you should consider using a commercial relational database engine, like SQL Server or Oracle, to process your queries. If you end up with SQL Server I could explain how to do everything you are asking about, but I do not have that level of experience with Oracle.
SQL Server 2016 Express is a free product and very easy to download and install. It should meet your needs. If you go this route hit me up with a message once you've converted the database to SQL Server.