Loading Quick SQL Sample Models
Learn about Quick SQL shorthand syntax by loading Quick SQL sample models.
About Quick SQL Sample Models
Learn about available Quick SQL sample models.
Quick SQL includes the following Quick SQL sample models:
-
Departments and Employees - Creates a
DEPARTMENTSandEMPLOYEEStables with an additionalEMP_Vjoin view. Random data is also generated using/INSERTsyntax. The/NNadds aNOT NULL SQLcolumn constraint. Indented lists are used to define tables, columns and child tables. Primary and foreign key columns are automatically added. You do not need to supply any primary or foreign key columns. -
Employee Skills - Creates a
DEPARTMENTS,EMPLOYEES, andSKILLStable using indentation to identify parent and child tables. Shorthand syntaxVC255specifies the SQL datatype. The/INSERTsyntax is used to generate ten rows of random data and provides example values (/VALUES). Defines legal values with a check constraint (/CHECK). Illustrates adding a column comment in square brackets. -
Product Sales - Creates a star schema with
PRODUCTS,CUSTOMERS,CHANNELS,PROMOTIONS, andSALEStables. TheSALEStable contains foreign key references to the other tables. ASQL VIEWis also created which joins all five tables. Random sample data is also generated. Numeric column are identified withNUMsyntax. -
Project Management - Defines project management schema with a
PROJECTSparent table and four child tables:MILESTONES,LINKS,ATTACHMENTS, andACTION_ITEMS. Adds the viewPROJECT_MSjoiningPROJECTSandMILESTONESandPROJECT_AIcombiningPROJECTSandACTION_ITEMS. Specifies legal values (/CHECK), example values (/VALUES), and generates sample rows (/INSERT). Adds audit columns in SQL syntax directives after#-sign (auditcols: true). -
ToDos - Creates
ASSIGNEESandTODOStables. Defines NOT NULL constraints (/NN). Specifies legal values (/CHECK). Generates sample data (/INSERT). Adds audit columns (#auditcols: true). This sample is designed as a starting point to enable the creation of a customized ToDo system within minutes.
Loading a Quick SQL Sample Model
Access Quick SQL sample models by selecting the Load action from the Quick SQL Actions menu, or by clicking Help and selecting Samples.
To load the Quick SQL samples:
-
Navigate to the Quick SQL page:
-
On the Workspace home page, click the SQL Workshop icon.
-
Click Utilities.
-
Click Quick SQL.
The Quick SQL page appears. You can load Quick SQL samples in two ways:
-
From Help.
-
From the Quick SQL Actions menu.
-
-
To load samples from Help:
-
In the left pane, click Help and then select the Samples tab.
-
Choose a sample and click Load Model.
-
-
To load samples from the Quick SQL Actions menu:
-
In the left pane, click the Quick SQL Actions menu (three vertical dots) and select Load.
The Load dialog appears with the Samples tab selected.
-
Choose a sample and click Load Model.
-
The sample loads. Quick SQL shorthand syntax displays in the left pane and the corresponding generated SQL displays in the right pane.