Hey All,<div><br></div><div>    Since we got the MPI data all uploaded into test, I have been trying out some queries to ensure that the structure we came up with is conducive to data extraction.  Using a couple of queries that I came up with as well as some provided by susan, it seems like using the MPI_events view, we are able to get everything we want the way the data is currently structured!</div>
<div><br></div><div>For example... I asked the db how many requests for help failed...</div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 13px; "><pre style="font-size: 12px; ">
<i>select count(mpidid) from mpi_events where helped is FALSE;</i></pre><pre style="font-size: 12px; ">of those, I Asked how many were failed due to the fact that the actee was unknown</pre><pre style="font-size: 12px; ">
<span class="Apple-style-span" style="font-family: arial, tahoma, verdana, helvetica, sans-serif, serif; font-size: 13px; white-space: normal; "><pre style="font-size: 12px; "><i>select count(mpidid) from mpi_events where helped is FALSE and actee is null;</i></pre>
</span></pre></span>(I could have also worded the query in the following way to get the same result)</div><div><br></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; "><i>select count(mpidid) from mpi_events where helped is FALSE and unkactee is not null;</i></span></div>
<div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;"><i><br></i></span></font></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; white-space: pre; ">I also asked things like how many of our MPI&#39;s are in the context of a consort (228 is the answer)</span></div>
<div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;">and there are currently a total of 2409 MPI&#39;s in the DB!</span></font></div>
<div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;">At any rate, it seems like we can use the data like we hoped we could! yay!</span></font></div>
<div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;">Karl, shall we initiate migration of the data structure over to babase, and I will re-upload the data (should only take me about 5 min)?</span></font></div>
<div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;"><br></span></font></div><div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;">Cheers!</span></font></div>
<div><font class="Apple-style-span" face="monospace" size="3"><span class="Apple-style-span" style="font-size: 12px; white-space: pre;">Lacey</span></font></div><div>-- <br>- -<br>Lacey K. Maryott Roerish<br>Alberts Lab<br>
Department of Biology<br>Duke University<br>ph: 919-660-7306<br>fax: 919-660-7293<br><a href="mailto:Lacey.Maryott@duke.edu">Lacey.Maryott@duke.edu</a><br>
</div>