Google BigQuery VS Oracle SQL Comparison [Partitioned table]
Introduction to clustered tables
There are 2 types of creating ways for a table in Google BigQuery.
1. Partitioned table
2. Clustered table
*Clustered? Close group
Clustered tables in BigQuery are tables that have a user-defined column sort order using clustered columns. Clustered tables can improve query performance and reduce query costs.
What is an index?
An index is a database structure that provides a quick lookup of data in a column or columns of a table.
For example, a Flights table in a travel DB database has three indexes:
- An index on the orig_airport column (called OrigIndex)
- An index on the dest_airport column (called DestIndex)
- An index enforcing the primary key constraint on the flight_id and segment_number columns (which have a system-generated name)
Statement to create an index in Oracle
: an index will provide a quick lookup data structure or column of data set.
: Google BigQuery does not provide an index statement in a clustered table
1_) Create index index name on Table name;
2_) Create index Index name_Tablename on Table name(Column name);
Comments
Post a Comment