<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<div>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>B</span><span style='font-size:11.0pt;
color:#1F497D'>abase already says his matured date is 1997-05-01&#8230;?&nbsp; How
did this even throw an error about MCE&#8217;s when BOZ doesn&#8217;t have a rnkdate?&nbsp;
Shouldn&#8217;t it ignore males where there is no rnkdate??&nbsp; And females and
juveniles for that matter since they don&#8217;t have rnkdates&#8230;&nbsp; Karl does this
SQL update statement do if there&#8217;s no rnkdate?&nbsp;</span><o:p></o:p></p>

</div>

</div>

<div>

<p class=MsoNormal>I started by rolling back the maturedates table, and just
did everyone. I didn't restrict to animals who had anything BUT the first. So
it caught him by chance. This update had nothing to do with rnkdate, i was just
using a function that rolls back the dates that happens to be called rnkdate,
on the maturedates table.&nbsp;<o:p></o:p></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:red'>Oh, right.&nbsp; I see.&nbsp; Sorry &#8211; my bad.&nbsp; Male and females are in the
same table though. &nbsp;And we&#8217;re only rolling back male maturedates, yes?&nbsp; I don&#8217;t
see anything in the SQL provided to account for that.&nbsp; Is there something else
not pasted in here?<o:p></o:p></span></p>

</div>

<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;
margin-left:4.8pt;margin-right:0in'>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>&nbsp;So two mounts in March 1996.&nbsp;
Males are not supposed to get mounts recorded until they are mature either,
right? </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>As for how it got in&#8230;wouldn&#8217;t this data
have been entered in FoxPro and converted to Babase, presumably without full
Babase controls in place?&nbsp; Maybe there wasn&#8217;t a rule to keep it from being
entered into FoxPro?&nbsp; If that&#8217;s the case then maybe we just need to delete
the erroneous mounts, yes?&nbsp; And fix the error message&#8230;&nbsp; ha ha ha.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:11.0pt;color:#1F497D'>&nbsp;</span><o:p></o:p></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span
style='font-size:10.0pt'>From:</span></b><span style='font-size:10.0pt'> <a
href="mailto:babase-bounces@eeblistserv.Princeton.EDU" target="_blank">babase-bounces@eeblistserv.Princeton.EDU</a>
[mailto:<a href="mailto:babase-bounces@eeblistserv.Princeton.EDU"
target="_blank">babase-bounces@eeblistserv.Princeton.EDU</a>] <b>On Behalf Of </b>Lacey
Maryott Roerish<br>
<b>Sent:</b> Monday, March 22, 2010 3:39 PM</span><o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><br>
<b>To:</b> The Baboon Database Project<br>
<b>Subject:</b> Re: [Babase] Rankdate Changes in Babase<o:p></o:p></p>

</div>

</div>

</div>

<div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I
have now run into an even stranger error, which I think we should try to
integrate into a conference call. It looks like babase has a rule that MCE's
cannot occur before a male has reached testicular enlargment. &nbsp;So, when I
tried to move the dates, BOZ threw an error.<o:p></o:p></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;color:black'>update maturedates<br>
set matured = rnkdate(matured);</span><o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 style='background:#E6E6CC'>
 <tr>
  <td style='padding:0in 0in 0in 0in'>
  <p class=MsoNormal style='mso-margin-top-alt:auto;margin-right:3.0pt;
  mso-margin-bottom-alt:auto;margin-left:3.0pt'><b><span style='font-size:10.0pt'>SQL
  error:</span></b><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;margin-right:3.0pt;
  margin-left:3.0pt'><span style='font-size:8.5pt'>ERROR:&nbsp; BOZ:
  1997-05-01: Female's mounts, consortships, and ejaculations must not come
  before the maturity date</span><o:p></o:p></p>
  <p class=MsoNormal style='mso-margin-top-alt:auto;margin-right:3.0pt;
  mso-margin-bottom-alt:auto;margin-left:3.0pt'><b><span style='font-size:10.0pt'>In
  statement:</span></b><span style='font-size:10.0pt'><br>
  update maturedates<br>
  set matured = rnkdate(matured);</span><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;color:black'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
background:#E6E6CC'><span style='font-size:10.0pt;color:black'>Lines 1-2: ERROR:
BOZ: 1997-05-01: Female's mounts, consortships, and ejaculations must not come
before the maturity date</span><o:p></o:p></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>At
first I thought this was an issue with the function, since the function is
named rnkdate and we are messing with maturedates table. However, BOZ doesn't
even have a rankdate. &nbsp;He matured in May 1997, has NO MCE in 1997. I
looked back and he does have some M records in 1996. So, it seems like what we
are really catching here is the fact that someone data was forced into babase
and this particular error was missed later on.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I'm
also not sure why the error message is alerting us to a problem with females
havng these lines when BOZ is a male.<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Anyway,
I think we did uncover another error and I think it&nbsp;merits&nbsp;some
discussion. I Am going to proceed to work on the update until we can all talk
about this.&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>It
looks like we already need to reschedule Thursday's as Susan's schedule has a
conflict...<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Let
me know what you think<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Lacey<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
margin-left:11.55pt'>&nbsp;<o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

</div>

</blockquote>

</div>

<p class=MsoNormal><br clear=all>
<br>
-- <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><o:p></o:p></p>

</div>

</body>

</html>