I have two tables Student and Marks.
I have created a view on Student applying a filter let say Student id.
Now I have created another view Marks, where the query is like:
derived_table: {
sql:
SELECT
name,
sub1,
sub2,
total
FROM marks
where name in (SELECT distinct name from ${student_extract.SQL_TABLE_NAME});;
}
The issue I am facing is when I am adding this in dashboard and applyting a filter on student id, the Student View gets displayed correctly, however the marks view displays all name. Why the derived table student_extract is not holding values only related to the student id?