I am trying to use the result of one SQL query as a variable in a SELECT statement in another query.
Below is what I have at the moment;
select {{custSitesOverviewTable.selectedRow.data.cust_loc_util}} from dev_types where dev_type = 'Firewall' and devs = 'Palo Alto Firewall';`
However, the data contained in custSitesOverviewTable.selectedRow.data.cust_loc_util is returned as "low" which does not work, the query just returns the word low. The reason for this is that the word low is between quote marks.
Is there a way to transform the data or parse the variable custSitesOverviewTable.selectedRow.data.cust_loc_util in order to remove the quote marks?
To be clear, the raw query that is run against the DB now is:
SELECT "low" from dev_types where dev_type = 'Firewall' and devs = 'Palo Alto Firewall';
What I need is:
SELECT low from dev_types where dev_type = 'Firewall' and devs = 'Palo Alto Firewall';