I have a problem finding the source:spls/gsp072/baby-names/yob2014.txt on task 4: Load data into a new table on the part: big query: Qwik Start - Console.
It seems very sample. Does anyone take this course or give any advice on how to pass it?
Hi @hyhy8,
Welcome to Google Cloud Community!
I understand the challenges you’re facing with BigQuery: Qwik Start - Console Google Cloud Skills Boost course. Simply follow the steps below to ingest the source: spls/gsp072/baby-names/yob2014.txt to your babynames
dataset.
In your Create table panel:
#standardSQL
SELECT
name, count
FROM
`babynames.names_2014`
WHERE
gender = 'M'
ORDER BY count DESC LIMIT 5;
Note: Check your progress at the bottom of each action item to validate if you've performed all the necessary actions correctly. Goodluck!
I hope the above information is helpful.
Thank you for your reply.
The problem is that there is no file under spls/gsp072/baby-names/yob2014.txt. but I got the solution from the support team. They provide me a walk around solution and works for me. Here is.
-----------------
We kindly request you to follow the workaround steps provided below for the lab:
bq query --use_legacy_sql=false \
'
SELECT
weight_pounds, state, year, gestation_weeks
FROM
bigquery-public-data.samples.natality
ORDER BY weight_pounds DESC LIMIT 10;
'
bq mk babynames
https://labshell-service-mvrcyiow4a-uc.a.run.app
gsutil cp gs://spls/gsp072/baby-names.zip .
unzip baby-names.zip
bq load --autodetect --source_format=CSV babynames.names_2014 gs://spls/gsp072/baby-names/yob2014.txt name:string,gender:string,count:integer
bq query --use_legacy_sql=false \
'
SELECT
name, count
FROM babynames.names_2014
WHERE
gender = "M"
ORDER BY count DESC LIMIT 5;
------------------
Thank you