function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Elizabeth Gilbert 17Elizabeth Gilbert 17 

Trailhead project: Query Github data, Invalid table Name Error

Hi, 
I am trying to complete the "Query GitHub Data Using Big Query" project and on the thrid step am encountering the error "Invalid Table" regarding the script that I am cutting and pasting directly from the exercies. I bolded it below. Does anyone know how old the exercise is, and if the table name has been changed? Thank you.


#standardSQL
SELECT subject, COUNT(*) AS num_duplicates
FROM `bigquery-public-data.github_repos.commits`
GROUP BY subject
ORDER BY num_duplicates
DESC LIMIT 100
SandhyaSandhya (Salesforce Developers) 
Hi,
Try below code as i guess quotes to be single quotes
 
SELECT subject, COUNT(*) AS num_duplicates
FROM 'bigquery-public-data.github_repos.commits'
GROUP BY subject
ORDER BY num_duplicates
DESC LIMIT 100

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya

 
Lisa StephensonLisa Stephenson
I tried replacing with single quotes as follows: 

#standardSQL 
SELECT subject, COUNT(*) AS num_duplicates
FROM 'bigquery-public-data.github_repos.commits'
GROUP BY subject
ORDER BY num_duplicates
DESC LIMIT 100

Getting error:
Error: Encountered " "FROM" "FROM "" at line 3, column 1. Was expecting: <EOF>
Jetha RamJetha Ram
#standardSQL 
SELECT subject, COUNT(*) AS num_duplicates 
FROM [bigquery-public-data:github_repos.commits] 
GROUP BY subject 
ORDER BY num_duplicates DESC 
LIMIT 100

Working code !!
Andre LittleAndre Little
Thanks @jetha rame the code worked