Skip to content
Advertisement

SQL query to add the state value dynamically

The below query returns value such as – ‘GA’,’CA’,’AL’

Query#1

I want to use the above query in another query such that – query #2

HRX_US_WTH_STATE_GA Should change according to query #1.

i.e. if the query 1 returns ‘CA’ then query #2 should come like –

how can we do that

Advertisement

Answer

Just a simple subquery should do the trick no?

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement