Defining Databricks Views

The following properties are applicable to a Databricks View object.

Tab

Property

Description

Additional Information

  Name Specifies the name of the view  
  Database Specifies the database to which the view belongs  
  Temporary Specifies whether the scope of the view is temporary A view with the temporary scope is available in the current session.
  If Not Exists Specifies that if the table already exists, no exception is thrown, and no action happens  
  Global Specifies whether the view is global Databricks attaches GLOBAL TEMPORARY views to a preserved temporary database global_temp.
  Use Replace Syntax Specifies whether the REPLACE syntax is used for the view Selecting this option replaces the syntax with the new DDL that is generated during Forward Engineering.
  Generate Specifies whether a DDL statement is generated for the view during forward engineering  
General Table Properties Specifies a list of metadata key-value pairs  
Select Available Tables and Views Specifies a list of available tables and views Under Available Tables and Views, select the columns that you want to define as view column. Then, click .
Columns Specifies the columns selected from the available tables and views
Select Type Specifies the expression type to indicate whether duplicate rows are returned

All: Indicates that the statement returns all rows, including duplicate rows

Distinct: Indicates that the statement discards duplicate rows and returns only the remaining rows

Alias Specifies a temporary name given to a table, column, or expression present in a query based on the selected column  
Expression Specifies the expression for a selected column Available only when the selected column is a user-defined function expression
From Available Tables and Views Specifies a list of available tables and views Under Available Tables and Views, select the tables or views from which you want to select view columns. Then, click .
From Specifies the selected tables and views
Alias Specifies an alternate name for the selected table or view  
Where Where Specifies the boolean expression of the Where clause  
Group By Specifies the grouping expression that defines how the rows are grouped together  
Having Specifies the boolean expression of the Having clause  
Order Specifies the expression of the Order By clause