From 3e822085e777ab1063e9c49b10bb9a1631bc88d4 Mon Sep 17 00:00:00 2001 From: Ayush Pandey <59275479+Ayush7-BIT@users.noreply.github.com> Date: Wed, 19 Jul 2023 22:57:07 +0530 Subject: [PATCH] Create Introduction to SQL for BigQuery and Cloud SQL --- Introduction to SQL for BigQuery and Cloud SQL | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Introduction to SQL for BigQuery and Cloud SQL diff --git a/Introduction to SQL for BigQuery and Cloud SQL b/Introduction to SQL for BigQuery and Cloud SQL new file mode 100644 index 0000000..9d938f9 --- /dev/null +++ b/Introduction to SQL for BigQuery and Cloud SQL @@ -0,0 +1,16 @@ +export REGION=#From Task5 + +---------------------------------------------------------- + +gsutil mb gs://$DEVSHELL_PROJECT_ID +curl -O -L https://github.com/CodingWithHardik/Level-2-Data-Deep-Dive/blob/master/files/start_station_data.csv +curl -O -L https://github.com/CodingWithHardik/Level-2-Data-Deep-Dive/blob/master/files/end_station_data.csv +gsutil cp start_station_data.csv gs://$DEVSHELL_PROJECT_ID +gsutil cp end_station_data.csv gs://$DEVSHELL_PROJECT_ID +gcloud sql instances create my-demo --database-version=MYSQL_5_7 --region=$REGION --tier=db-n1-standard-1 --root-password="" +gcloud sql connect my-demo --user=root --quiet + +--------------------------------------------------------------------- + +CREATE DATABASE bike; +