Hi @cwalker7 ,
Welcome to Google Cloud Community.
You can use a JOIN operation in BigQuery to construct a new table that only delivers the data rows from your Mail table that match a code in your Sales table. This example search should help you find what you're looking for:
SELECT *
FROM Mail
JOIN Sales
ON Mail.response_code = Sales.response_code
Only the rows of data from Mail that have a matching code in Sales will be returned by this query, which joins the Mail and Sales columns on the response_code field.
You can use the BigQuery Data Transfer Service or the Cloud Storage Transfer Service to automatically upload your new data to a specific location in Cloud Storage, and then create a scheduled query or use a Dataflow job to load the new data into your existing Mail table in BigQuery to append your Mail data each week without creating new tables. To manually upload and append new data to your current table, you can use use the BigQuery online UI or the bq command-line tool.
For instance, you might append a fresh CSV file containing information from your weekly mail to your current Mail table using the command-line command as follows:
bq load --source_format=CSV --skip_leading_rows=1 mydataset.Mail gs://my-bucket/weekly_mail_data.csv
This command will add the data from the Cloud Storage CSV file to any already present data in the Mail table in your BigQuery dataset. Please take note that you must substitute mydataset for your BigQuery dataset, "Mail" for your Mail table name, and "my-bucket/weekly_mail_data.csv" for the location of your new CSV file in Cloud Storage.
I was told to do an Exists as well. Here is my formula but I am getting this "Syntax error: Expected end of input but got identifier "Week" at [2:45]"