Data Resource - SQL Select Query

Undraw Environment

Data Resource - SQL Select Query

About

A SQL Select data resource is a SQL DML Request that contains a SELECT statement.

Howto

Execution

A SQL file containing a select statement can be executed if it's represented as an sql request (ie SQL runtime data resource uri)

For instance,

The runtime data resource data uri would be:

(top-5-clients.sql@cd)@sqlite

Attribute

Name Default Description
select-metadata-detections describe, temporary-view, false-equality Define a list of detection methods used to capture the structure if not defined via a data-definition

All common data-definition attributes are also allowed (columns, …)

Support

Prepared Statement

We support configurable select statement with prepared statements

How to execute multiple SELECT statements in one script

We support as of today, only one select statement by SQL Fetch.

Why? Because a request returns only one resource.

If you want to execute multiple SELECT statements in one script, you need to use the split operator in a pipeline.




Related HowTo
Undraw Environment
Database HowTo - How to load JSON documents in a database

This howto will show you how to load json document (files) into your relational database.
Undraw Environment
Database HowTo - How to load your database with the TPCDS benchmark

This howto will show you how to load a relational database schema in order to create a benchmark with the data query command
Undraw Environment
How to create a SQL View with a SELECT query

This howto shows you how to create sql views with select query stored in SQL file We are going to use the tpcds query_11.sql to create this view. With the tabul create command, to create view...
Undraw Environment
How to generate data with a data set?

This howto will show you how to generate data with an data set generator. In these examples, we use a predefined csv entity file but you could any data resource such as : a sql table a sql query...
Undraw Environment
How to load and analyze YAML documents in a database?

This howto will show you how to load and analyze yaml document (files) into a relational database. sqlite howto databaserelational database At its core a YAML file is just a JSON file styled in...
Undraw Environment
How to return a result set from a stored function in Postgres?

This howto shows you how to return a result set from a SQL function in Postgres. You can therefore create dynamically a SQL Query statement This example has been adapted from the official...
Undraw Environment
How to send to a mailing list

This howto shows you how to send multiple email with the sendmail operation. Start the howto smtp server Check that you can ping it In this pipeline, we define a inline data resource but you...
Undraw Environment
HowTo - How to load XML files into a Postgres with Tabulify

This database howto will show you how to load Xml file and document into a database.
Undraw Environment
HowTo - How to load XML files into a database with Tabulify

This database howto will show you how to load Xml file and document into a database.
Undraw Environment
Learning Tabulify - Step 10 - Data Diff, a step by step

Data Diff is the cornerstone of every development because it validates the processing of data. Tabulify ships with a Data diff operation that allows you to compare: the data content and the data...

Task Runner