Kevin Wolfe
05/15/2024, 5:34 PMSELECT * FROM "table-"+"1234"
SELECT * FROM CONCAT("table-","1234")
SELECT * FROM BASE64_DECODE("dGFibGUxMjM0")
b) referencing the table without using the table name itself, something like
SELECT * FROM TABLE.ID[4]
SELECT * FROM (SELECT name FROM osquery_registry WHERE registry='table' AND name LIKE "%%-1234")
Thanks!Kevin Wolfe
05/15/2024, 5:56 PMFG
05/15/2024, 5:56 PMFG
05/15/2024, 5:57 PMKevin Wolfe
05/15/2024, 6:01 PMFG
05/15/2024, 6:02 PMKevin Wolfe
05/15/2024, 6:09 PMKevin Wolfe
05/15/2024, 6:09 PMFG
05/15/2024, 6:10 PMseph
seph
WITH _agg AS (
select *, 't1' as _t FROM table1
UNION
select *, 't2' as _t FROM table2
)
select * from _agg where _t = 't1'
But I see a lot of issues with that approachfritz
05/20/2024, 6:25 PMapps
only if the device is a mac, call programs
only if the device is windows, etc.)Kevin Wolfe
05/21/2024, 9:03 PM