Createorreplacetempview Databricks. createOrReplaceTempView("mytable") After this you can que