Icon

Prepare the Northwind Database

Prepare the Northwind database into a consistant H2 db to provide a database environment to play with<br /><br />These tables are included in the local database<br />knime://knime.workflow/../data/Northwind_small.h2<br /><br />(they all have a unique ID "<tablename>id")<br /><br />shipper<br />product<br />customerdemographic<br />employee<br />customercustomerdemo<br />supplier<br />orders<br />category<br />region<br />employeeterritory<br />customer<br />orderdetail<br />territory<br /><br />one VIEW with a combination of informations<br />productdetails_v

URL: Northwind-SQLite3 https://github.com/jpwhite3/northwind-SQLite3
URL: SQL H2 - more examples https://hub.knime.com/search?tag=H2&type=Workflow

Annotations and comments
  • These tables are included in the local database<br />knime://knime.workflow/../data/Northwind_small.h2<br /><br />(they all have a unique ID "<tablename>id")<br /><br />shipper<br />product<br />customerdemographic<br />employee<br />customercustomerdemo<br />supplier<br />orders<br />category<br />region<br />employeeterritory<br />customer<br />orderdetail<br />territory<br /><br />one VIEW with a combination of informations<br />productdetails_v
  • context.workflow.parent-path
  • path.separator.system length_parent_path= length(column("context.workflow.parent-path")) substr(column("context.workflow.parent-path"), length_parent_path-1, 1)
  • => paths
  • create /data/ folder if it does not exist
  • context.workflow.absolute-path context.workflow.path context.workflow.name
  • context.workflow.data-path
  • data-path
  • path variables
  • no lists
  • List all Tables
  • List all Columns of "PUBLIC"
  • List all Views
  • get data from productdetails_v VIEW
  • select all Tables
  • set some PRIMARY KEYs
  • remove H2 table
  • CREATE VIEW productdetails_v
  • remove H2 VIEW productdetails_v
  • SHUTDOWN COMPACT;
  • create table notes in long character
  • transfer to table
  • $name_lower$ = "order" => "orders" TRUE => $name_lower$
  • Northwind_small.sqlite
  • v_big_data_schema PUBLIC
  • name_lower
  • loop databases
  • END
  • var_table_name_qualified
  • var_new_id_name_qualified
  • var_new_id_name
  • $Column Header$ = "id" => $${Svar_new_id_name}$$ TRUE => $Column Header$
  • lowerCase($Column Header$)

Nodes

Extensions

Links