The database console is found in the Tools menu.

You can use the database console to directly access your hand history database. This database stores all your played hands, all data on opponents and tournament results.

You should only perform SELECT queries. If you perform updates, inserts, or deletes, you’ll most likely make SharkScope Desktop unstable.

You must be fluent in the SQL language to use the database console.

SharkScope Desktop uses the H2 embedded database engine. You can find more information on using H2 at these links:
H2 SQL Grammar.
H2 built-in functions