MicroStrategy ONE

Customize Your Query While Importing Data from a Database, Hadoop, or Google BigQuery

While you are building a query for importing data, you can customize the query manually.

  1. Build a query in the Query Builder pane of the Import from Tables dialog.
  2. Click Edit SQL.
  3. Click Yes to exit Build Query mode. The query text appears in the Query Builder pane.
  4. Make changes to the query as necessary.
  5. Write the query as a single-pass SELECT statement. Other standard SQL statements, such as CREATE, are not supported by Google BigQuery. See the BigQuery Query Reference for a list of supported SQL clauses, functions, and operators.
  6. If you are aggregating over a column with a large number of distinct values, BigQuery recommends using the GROUP EACH BY clause instead of a GROUP BY clause.
  7. If you are creating a join between tables, the syntax of the JOIN clause that you write depends on the size of the tables that you are joining. See Combine Data in Tables with Joins in Google BigQuery for more information.
  8. Click Execute SQL to run the query. A preview of your query results appears in the Preview pane.
  9. When you are satisfied with the results, you can finish importing your data.

Related Topics

Import Data from a Database, Hadoop, or Google Big Query by Selecting Tables

Combine Data in Tables with Joins in Google BigQuery