I have a table (umt_date) which generates dates and I need to use this date in the second query to get all data greater than equal to the date in umt_date table
umt_date
----------------------------
|processdate||processname|
----------------------------
| 2020-06-01 | A |
----------------------------
| 2020-06-01 | B |
when I perform the sql
select * from main_table
where processdate >= (select processdate from umt_date where processname='A')
I get the following error
SQL Error [40000] [42000]: Error while compiling statement: FAILED: SemanticException Line 0:-1 Unsupported SubQuery Expression 'processdate': Only SubQuery expressions that are top level conjuncts are allowed
Since we do not have any common columns we cannot perform a join as well. Whats the alternative for this ?