<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 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 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.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        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.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></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="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">ESD is up, I’m not aware of any outages. If you are having access issues, it is worth opening a support case</span>
<span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><a href="http://supportservices.actian.com/support-services/support">http://supportservices.actian.com/support-services/support</a> so that we can look into it.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Chris<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> info-ingres-bounces@lists.planetingres.org [mailto:info-ingres-bounces@lists.planetingres.org]
<b>On Behalf Of </b>Allan Biggs<br>
<b>Sent:</b> Monday, February 06, 2017 8:10 AM<br>
<b>To:</b> martin.bowes@ndph.ox.ac.uk<br>
<b>Cc:</b> info-ingres@lists.planetingres.org<br>
<b>Subject:</b> Re: [Info-ingres] One up unique number for an attribute - in SQL - does anyone know the trick of doing this?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Martin,</span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">Thanks for this - I don't have 10.2 documentation on my PC and the ESD site seems to be down or very busy this afternoon so was unable to look it up.</span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">The number of times I have needed to do this and struggled with internal procedures :-)
</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">cheers </span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">Allan</span> <br>
<br>
<br>
<br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">From: </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Martin Bowes <<a href="mailto:martin.bowes@ndph.ox.ac.uk">martin.bowes@ndph.ox.ac.uk</a>></span>
<br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">To: </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Allan Biggs <<a href="mailto:Allan.Biggs@GBR.dupont.com">Allan.Biggs@GBR.dupont.com</a>></span>
<br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Cc: </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">"<a href="mailto:info-ingres@lists.planetingres.org">info-ingres@lists.planetingres.org</a>" <<a href="mailto:info-ingres@lists.planetingres.org">info-ingres@lists.planetingres.org</a>></span>
<br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Date: </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">06/02/2017 15:47</span>
<br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Subject: </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">RE: [Info-ingres] One up unique number for an attribute - in SQL - does anyone know the trick of doing
this?</span> <o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" noshade="" style="color:gray" align="center">
</div>
<p class="MsoNormal"><br>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">Create the table using an identity column or have the column take a column default which is the next value from a sequence.</span>
<br>
<span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
<br>
<span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080">Martin Bowes</span>
<br>
<span style="font-size:10.0pt;font-family:"Calibri",sans-serif;color:#004080"> </span>
<br>
<b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif"> Allan Biggs [</span><a href="mailto:Allan.Biggs@GBR.dupont.com"><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">mailto:Allan.Biggs@GBR.dupont.com</span></a><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">]
<b><br>
Sent:</b> 06 February 2017 15:42<b><br>
To:</b> <a href="mailto:info-ingres@lists.planetingres.org">info-ingres@lists.planetingres.org</a>;
<a href="mailto:openroad-users@googlegroups.com">openroad-users@googlegroups.com</a><b><br>
Subject:</b> [Info-ingres] One up unique number for an attribute - in SQL - does anyone know the trick of doing this?</span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">in command line sql I am populating a new table - one of the columns is a sort order
</span><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
each row of this field <b><u>must</u></b> be a 'one up' unique number starting at 1 and ending as the number of rows in the table </span>
<br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
I know that I could do this in OpenROAD , and in another guise this is done in OpenROAD, but in this case it has to be done in SQL or maybe in report writer.</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
It does not matter which rows contain 1 ,2 etc although one of the columns does have a set of unique numbers with gaps which could be used to determine the order of row 1, 2 etc. </span>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
Does anyone know of a 'trick' to do this?</span> <br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
In mysql it is possible to define unique one up numbers when creating a table does modern Ingres have this feature?</span>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
thanks <br>
Allan </span> <o:p></o:p></p>
<p><br>
This communication is for use by the intended recipient and contains<br>
information that may be Privileged, confidential or copyrighted under<br>
applicable law. If you are not the intended recipient, you are hereby<br>
formally notified that any use, copying or distribution of this e-mail,<br>
in whole or in part, is strictly prohibited. Please notify the sender by<br>
return e-mail and delete this e-mail from your system. Unless explicitly<br>
and conspicuously designated as "E-Contract Intended", this e-mail does<br>
not constitute a contract offer, a contract amendment, or an acceptance<br>
of a contract offer. This e-mail does not constitute a consent to the<br>
use of sender's contact information for direct marketing purposes or for<br>
transfers of data to third parties. <o:p></o:p></p>
<p>Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean <o:p>
</o:p></p>
<p> <a href="http://www.dupont.com/corp/email_disclaimer.html">http://www.DuPont.com/corp/email_disclaimer.html</a>
<o:p></o:p></p>
<p><br>
This communication is for use by the intended recipient and contains<br>
information that may be Privileged, confidential or copyrighted under<br>
applicable law. If you are not the intended recipient, you are hereby<br>
formally notified that any use, copying or distribution of this e-mail,<br>
in whole or in part, is strictly prohibited. Please notify the sender by<br>
return e-mail and delete this e-mail from your system. Unless explicitly<br>
and conspicuously designated as "E-Contract Intended", this e-mail does<br>
not constitute a contract offer, a contract amendment, or an acceptance<br>
of a contract offer. This e-mail does not constitute a consent to the<br>
use of sender's contact information for direct marketing purposes or for<br>
transfers of data to third parties.<o:p></o:p></p>
<p>Francais Deutsch Italiano Espanol Portugues Japanese Chinese Korean<o:p></o:p></p>
<p> <a href="http://www.DuPont.com/corp/email_disclaimer.html">http://www.DuPont.com/corp/email_disclaimer.html</a><o:p></o:p></p>
</div>
</body>
</html>