Big Query Interview Q&A
Big Query Interview Q&A
Big Query Interview Q&A
1. Web UI:
Go to the BigQuery web UI.
Navigate to your dataset and table.
Click on "Write Data" and select "Cloud Storage" as the source.
2. Command Line:
Use the bq command-line tool.
Run the bq load command with your dataset and table information,
specifying the GCS path.
Choose the method that best fits your workflow and preferences.
2. Query Flexibility:
1. Query Performance:
2. Limited Indexing:
4. Data Consistency:
1. Schema Matching:
Ensure that the schemas of Table A and Table B match to avoid data
type conflicts or missing fields.
2. Permissions:
Verify that you have the necessary permissions to read from Table A and
write to Table B.
3. Data Volume:
5. Transformation Needs:
If needed, apply any transformations during the copy process, like data
type conversions or filtering rows.
6. Data Validation:
After copying, perform data validation to ensure the integrity of the data
in Table B.
7. Scheduled Jobs:
8. Error Handling:
Q. Will table constraints, modes etc also get copied along with
data?
When copying a table in BigQuery, only the data gets copied, not the table's
constraints or modes. You'll need to set up any constraints or configuration
settings separately on the destination table (Table B) if they are required. The
copying process primarily focuses on replicating the data from the source
(Table A) to the destination.
Q. What are Joins and explain its types.
1. Inner Join:
2. Left Join:
Picture it like a primary list with additional info. All rows from the left
(first) table are included, and matching rows from the right (second)
table are added.
3. Right Join:
Similar to a left join, but the focus is on the right (second) table. All rows
from the right table are included, and matching rows from the left table
are added.
It's like combining both left and right joins. All rows from both tables are
included, and where there's a match, the information is merged.
5. Cross Join:
Clustered Index:
Unclustered Index:
Bitmap Index:
B-tree Index:
Bitmap Index:
B-tree Index: