I'm struggling as a noob in databases to query a big query database. I have user read-only access. I've set up everything so the connection says
core:
account: markxxx@xxx.com
disable_usage_reporting: 'True'
project: mister-all
Pick configuration to use:
[1] Re-initialize this configuration [default] with new settings
[2] Create a new configuration
Please enter your numeric choice: 1
Your current configuration has been set to: [default]
...
You are logged in as: [markxxx@xxx.com].
Pick a cloud project to use:
[1] mister-all
[2] Enter a project ID
[3] Create a new project
Please enter a numeric choice or text value (must exactly match the list item): 1
Your current project has been set to: [mister-all].
Now basically I want to do a query to select * from mister-all and I have no idea how to export this to a table or to a local CSV file (the ultimate goal). After I enter the query I just get back to the prompt. My command goes only to here:
$query = "SELECT * FROM `mister-all.mister_reporting.areport` WHERE Date = 2023-04-06 LIMIT 100000000"
Can I get help to get the results of this to a CSV file for anyone that knows Powershell and bigquery?
I tried:
$query = "SELECT * FROM `mister-all.mister_reporting.areport` WHERE Date = 2023-04-06 LIMIT 100000000" | Export-Csv c:\test.csv