diff --git a/web/app/models/ComboOptions.java b/web/app/models/ComboOptions.java index 0714d72d8d12484b2ad8b00a076f4c8cc667209e..30e7febe99dda7299175dd8c32114205483d619a 100644 --- a/web/app/models/ComboOptions.java +++ b/web/app/models/ComboOptions.java @@ -43,7 +43,7 @@ public class ComboOptions implements java.io.Serializable { try { PreparedStatement st = conn.prepareStatement( - "SELECT DISTINCT(cit.region) FROM search s, dim_school sch, dim_city cit " + + "SELECT DISTINCT(cit.region) FROM search_school s, dim_school sch, dim_city cit " + " WHERE s.contacted_once='true' " + " AND sch.id = s.sch_id AND cit.id = sch.cit_id ORDER BY cit.region ASC;" ); @@ -77,7 +77,7 @@ public class ComboOptions implements java.io.Serializable { try { PreparedStatement st = conn.prepareStatement( - "SELECT DISTINCT(cit.state) FROM search s, dim_school sch, dim_city cit " + + "SELECT DISTINCT(cit.state) FROM search_school s, dim_school sch, dim_city cit " + " WHERE s.contacted_once='true' AND cit.region=? " + " AND sch.id = s.sch_id AND cit.id = sch.cit_id ORDER BY cit.state ASC;" ); @@ -112,7 +112,7 @@ public class ComboOptions implements java.io.Serializable { try { PreparedStatement st = conn.prepareStatement( - "SELECT DISTINCT(cit.id),cit.name FROM search s, dim_school sch, dim_city cit " + + "SELECT DISTINCT(cit.id),cit.name FROM search_school s, dim_school sch, dim_city cit " + " WHERE s.contacted_once='true' AND cit.state=? " + " AND sch.id = s.sch_id AND cit.id = sch.cit_id ORDER BY cit.name ASC;" );