Hi Spiceheads,
Can anyone of you please help me to rewrite the logic or give an idea on how to approach the below situation
We have database called SCH_PROG and three tables.
1.Schooldetailstable
2.tblStatCousedetails
3.tblTopSchoolGroup
****I have attached both the queries to create the Database and the Query to be tuned ***********
We have a table called Schooldetailstable with schools as records, some schools are part of one group called GSG some are not part of this group.
Each schools have different programs entered in the table called tblstatcoursedetails
Scenario
When a teacher enter a program(record) in one of the schools in the tblstatcoursedetails.
If the school belongs to the GSG group
When we execute the attached query each school in the GSG group will get the program(record) updated.
Issue
The records will get updated only if the...