Is there a way to prepend joined tablename in BigQuery Standard SQL? -


i know if possible force standard sql prepend joined tablenames, can fields , b a_ , b_ prepended, without manually naming each field. ie. want select *, don't want generate each fieldname.

i know if switch legacy sql standard sql,

select * first_table join second_table b on a.key = b.key 

won't automatically prepend a_ , b_ each outputted variable, described in question: how remove/avoid prepended tablename in bigquery? want know if behavior can modified.

the option "separate" names using dot, i.e. returning struct columns each side:

select a, b first_table join second_table b on a.key = b.key; 

if want columns each table, can use subselects:

select a, b (select x, y, key first_table) join (select foo, bar, key second_table) b on a.key = b.key; 

Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -