I want to make filtration on a column after selecting a specific value of another column in the same table, I tried to use @... special character followed by the column’s name to get the address of this value.
My SQL statement is like the following :
SELECT ATTRIBUTE FROM TABLE WHERE FIELD = '@FIELDNAME';
If I used a specific value instead of @FIELDNAME, it will work properly but it will be static but I need it to be dynamic based on the selected value.
Create another table which will have the list of values that are in the FIELDNAME and give each record a unique id ,then retrieve the value depending on what you have selected by the name of the new table’s field preceded by ‘@…’
I don’t know if that what are you looking for, please let me know.