Common queries for Canvas data
- Go to BiqQuery Console for scheduled queries and click on
+ Create scheduled query in editor
- Enter your query in the Editor and click
SCHEDULE
button - Add following in the pop-up window
- Details and schedule:
datamart_name__table_name_you_want_to_give
. For example:athletic_department_views__v1_student_current_term_course
- Schedule option:
days
and at18:00
. Don't need to do anything forStart now
andEnd never
elements. - Destination for Query result:
- Check the checkbox
Set a destination table for query results
- Choose the data set name
athletic_department_views
- Give a table name for example:
v1_student_current_term_course
- Check the checkbox
- Details and schedule:
- Destination table write preferance:
Overwrite table
- Do as in Step - 1 in the Create scheduled queries section above and click Edit and modify your query and than select
Schedule -> Update scheduled Query
(if you are owner of the queries, BQ configuration changed so this is possible now) - if you are not owner of the scheduled queries - it's may be always Delete and create a new table. (This needs to be tested)
- Go to the scheduled queiries console as described above and chose a table to do a refresh
- Click on the
SCHEDULE BACKFILL
button choose optionRun one time transfer
and clikeok
. This will start the process. - all 3 tables take about 5 min to run.
Athletic dept provides all the student enrolled to their program in current term via a google sheet. We have an additional step
in making this data available to Tableau dashboard as table called student_athletic_export_csv
. We created this table since Tableau
has some issues connecting to google sheets.
Every term this table (student_athletic_export) need to updated with latest data. This table resides in the context store with user account provisioned for the project
Steps to update the table
- create a CSV File from the current term student roster
- Open the SQL editor from you SQL client and run
delete from student_athlete_export_csv
to delete all the rows - Right click on the
student_athletic_export_csv
table import CSV (from step 1) - Verify it has latest info.
- VS Code support the BigQuery syntax, optional install will be SQL (BigQuery)
- View > Extensions
- Search for SQL (BigQuery)