Skip to content
Browse files

Better query.

  • Loading branch information...
1 parent 3d010c5 commit a4c6e86df29e2364cdb31b93c26b635cc80f89c9 @gonzalop gonzalop committed Apr 6, 2011
Showing with 1 addition and 3 deletions.
  1. +0 −2 web/moma/moma.sln
  2. +1 −1 web/moma/moma/DB/ApiData.cs
View
2 web/moma/moma.sln
@@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Moma.Web", "moma\Moma.Web.csproj", "{F7DD71D8-F1A6-46C6-BCC7-DE40494F9D9E}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Moma.Web.Tests", "moma.Tests\Moma.Web.Tests.csproj", "{D4884CA3-6D67-4AAE-B592-8918C2BD1CE7}"
-EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
View
2 web/moma/moma/DB/ApiData.cs
@@ -82,7 +82,7 @@ public MomaDataSet GetApiData (string apiname)
" rc.totaltodo, rc.totalmissing, rc.totalniex, rc.totalpinvoke " +
"FROM reports_master r " +
"INNER JOIN reports_counts rc ON rc.report_id = r.report_id " +
- "WHERE r.report_id IN (SELECT report_id FROM reports_members WHERE member_id = @memberid) " +
+ "INNER JOIN reports_members rm ON r.report_id = rm.report_id AND rm.member_id = @member_id " +
"ORDER BY submitdate DESC";
AddParameter (cmd, "memberid", row.MemberId);
adapter = GetDataAdapter(cmd);

0 comments on commit a4c6e86

Please sign in to comment.
Something went wrong with that request. Please try again.