So what is the verdict. Am I uploading the numbers into a character field? :) Thanks<div>Lacey<br><br><div class="gmail_quote">On Thu, Jul 22, 2010 at 3:15 PM, Karl O. Pinc <span dir="ltr">&lt;<a href="mailto:kop@meme.com">kop@meme.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 07/22/2010 01:52:51 PM, Jeanne Altmann wrote:<br>
</div><div class="im">&gt; Although it would work in this instance, particularly as zero is not<br>
&gt; one<br>
&gt; of the codes we&#39;re using here, unless I&#39;m missing something it feels<br>
&gt; cleaner to have it as integer if that&#39;s easy.<br>
<br>
</div><div class="im">It is easy, but you should not be able to tell the difference either<br>
way.  (Except that one way you would be precluded from ever using<br>
letters as codes.)<br>
<br>
Because it really does not matter I&#39;m not sure why the issue was<br>
even brought up.<br>
<br>
</div><div><div></div><div class="h5">&gt; jeanne<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:babase-bounces@eeblistserv.princeton.edu">babase-bounces@eeblistserv.princeton.edu</a><br>
&gt; [mailto:<a href="mailto:babase-bounces@eeblistserv.princeton.edu">babase-bounces@eeblistserv.princeton.edu</a>] On Behalf Of Karl<br>
&gt; O.<br>
&gt; Pinc<br>
&gt; Sent: Thursday, July 22, 2010 11:58 AM<br>
&gt; To: The Baboon Database Project<br>
&gt; Subject: Re: [Babase] lymphstates<br>
&gt;<br>
&gt; On 07/22/2010 10:20:00 AM, Susan Alberts wrote:<br>
&gt; &gt; Thanks Karl,Are you saying that if it is designated as a character<br>
&gt; &gt; but<br>
&gt; &gt;<br>
&gt; &gt; we query it as if it was numeric we will not get an error?<br>
&gt;<br>
&gt; That&#39;s right.  The db will automatically convert between the<br>
&gt; 2 datatypes; when it sees an integer being compared with<br>
&gt; a character it converts the integer to characters and then<br>
&gt; does the comparison.<br>
&gt;<br>
&gt;<br>
&gt;  In that<br>
&gt; &gt; case I have no problem with it. I just wasn&#39;t sure what you meant<br>
&gt; by<br>
&gt;<br>
&gt; &gt; that database will automatically convert.<br>
&gt; &gt; Susan<br>
&gt; &gt; On Jul 21, 2010, at 4:46 PM, Karl O. Pinc wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; You know what?  This change does not make any sense.<br>
&gt; &gt; &gt; The database will automatically convert &#39;1&#39; into<br>
&gt; &gt; &gt; 1, and vice versa, as needed.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On 07/21/2010 11:21:07 AM, Karl O. Pinc wrote:<br>
&gt; &gt; &gt;&gt; On 07/21/2010 08:32:56 AM, Susan Alberts wrote:<br>
&gt; &gt; &gt;&gt;&gt; My only comment on this is that if the column is numeric but<br>
&gt; &gt; coded<br>
&gt; &gt; &gt;&gt; as<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; a character it can be very confusing to query because it won&#39;t<br>
&gt; be<br>
&gt; &gt; &gt;&gt;&gt; natural or obvious that you need to query as a character, so I<br>
&gt; at<br>
&gt; &gt; &gt;&gt; any<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; rate would often end up writing a query with this statement<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; Select * from lymphstates<br>
&gt; &gt; &gt;&gt;&gt; where state = 1<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; Instead of<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; where state = &#39;1&#39;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; For<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; this reason,  if it&#39;s numeric it should be coded as  numeric<br>
&gt; and<br>
&gt; &gt; if<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; it&#39;s a character it would be better to have it as a letter.<br>
&gt; Does<br>
&gt; &gt; &gt;&gt; this<br>
&gt; &gt; &gt;&gt;&gt;<br>
&gt; &gt; &gt;&gt;&gt; make sense?  I&#39;m okay with either.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Ok.  Makes sense.  I&#39;ll make it numeric.<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; Karl &lt;<a href="mailto:kop@meme.com">kop@meme.com</a>&gt;<br>
&gt; &gt; &gt;&gt; Free Software:  &quot;You don&#39;t pay back, you pay forward.&quot;<br>
&gt; &gt; &gt;&gt;                 -- Robert A. Heinlein<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt; _______________________________________________<br>
&gt; &gt; &gt;&gt; Babase mailing list<br>
&gt; &gt; &gt;&gt; <a href="mailto:Babase@www.eco.princeton.edu">Babase@www.eco.princeton.edu</a><br>
&gt; &gt; &gt;&gt; <a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;&gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Karl &lt;<a href="mailto:kop@meme.com">kop@meme.com</a>&gt;<br>
&gt; &gt; &gt; Free Software:  &quot;You don&#39;t pay back, you pay forward.&quot;<br>
&gt; &gt; &gt;                 -- Robert A. Heinlein<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; _______________________________________________<br>
&gt; &gt; &gt; Babase mailing list<br>
&gt; &gt; &gt; <a href="mailto:Babase@www.eco.princeton.edu">Babase@www.eco.princeton.edu</a><br>
&gt; &gt; &gt; <a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
&gt; &gt;<br>
&gt; &gt; --------------------------------------------------------<br>
&gt; &gt; Susan Alberts, Dept of Biology, Duke University, Box 90338, Durham<br>
&gt; NC<br>
&gt; &gt;<br>
&gt; &gt; 27708, 919-660-7272 (Ph), 919-660-7293 (Fax)<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Babase mailing list<br>
&gt; &gt; <a href="mailto:Babase@www.eco.princeton.edu">Babase@www.eco.princeton.edu</a><br>
&gt; &gt; <a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Karl &lt;<a href="mailto:kop@meme.com">kop@meme.com</a>&gt;<br>
&gt; Free Software:  &quot;You don&#39;t pay back, you pay forward.&quot;<br>
&gt;                  -- Robert A. Heinlein<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Babase mailing list<br>
&gt; <a href="mailto:Babase@www.eco.princeton.edu">Babase@www.eco.princeton.edu</a><br>
&gt; <a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Babase mailing list<br>
&gt; <a href="mailto:Babase@www.eco.princeton.edu">Babase@www.eco.princeton.edu</a><br>
&gt; <a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
<br>
Karl &lt;<a href="mailto:kop@meme.com">kop@meme.com</a>&gt;<br>
Free Software:  &quot;You don&#39;t pay back, you pay forward.&quot;<br>
                 -- Robert A. Heinlein<br>
<br>
<br>
_______________________________________________<br>
Babase mailing list<br>
<a href="mailto:Babase@www.eco.princeton.edu">Babase@www.eco.princeton.edu</a><br>
<a href="http://www.eco.princeton.edu/mailman/listinfo/babase" target="_blank">http://www.eco.princeton.edu/mailman/listinfo/babase</a><br>
</div></div></blockquote></div><br><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><br>

</div>