I'm not an expert on SQL so I'm having a little bit of a hard time trying to implement or modify what I've seen online for my case.
Trying to build a query from a Schema I'm not familiar with. The Schema has 50+ tables each with varying amounts of columns.
I have a couple of values but can't find the field or table those values are in.
Was trying to find these values with something like this (see code below) which would help but I can't figure out a way to:
- Include all columns without having to type them all out inside the IN operator.
- Not sure if there is a way to modify the code so I wouldn't have to run it for each table in the Schema.
SELECT
*
FROM
XX_PROD.XXX_MART.FACT_SALES_ORDER AS FSO
WHERE 'AVP' IN (FSO.COLUMNS)
LIMIT
10000