I would like to create this except
query in supabase, but with parameters in the day
column. For example:
CREATE VIEW employees_without_registering AS
SELECT employees.id
FROM employees
EXCEPT
SELECT "idEmployee" FROM registers WHERE "day"='2021-07-25'
What I tried was to create a view in the query editor and then try to access the results with something like this:
await supabase.from('employees_without_registering')
.select('*');
but the results are fixed to that query only. I would like to change the day according to whatever I choose.
Maybe my approach is bad and this is solved with another way with the supabase api, but I would to hear suggestions on how to solve this problem.