How to Store and Access SQL Queries in Databricks π±
- Create the SQL query and define
table_name
as the name where you store the queried table. ` %sql CREATE OR REPLACE TEMPORARY VIEWAS
β'βSQL query hereβββ
SELECT * FROM
2. Create a spark dataframe for the queried table
spark_dataframe_of_table = spark.table(βtable_nameβ) `
Notes mentioning this note
There are no notes linking to this note.