Q&A

Q&A

AStrato Use of Variables in SQL Queries

Member Posts: 3 Type 0

I want to ask for some help.

I want to select a value from a SQL table, and save the selected value as it is shown in the 1st line in the Snowflake Code Sample image below. And I want to use that variable as a table in a simple select query with some where filters (Snowflake Code Sample image).

The code works in SQL, however how do I save a variable from AStrato to apply it the 1st line of the image and then execute the 3rd line of the image.

Image. Snowflake Code Sample

Thanks!

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.
Astratonaut of the Quarter
Melissa has been using Astrato since Beta, and has been doing amazing work in the healthcare industry with it. Check out why we think she's so awesome and is this month's Astratonaut of the month. https://tinyurl.com/ym8fbk8y