﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Teradata Forums / Analytical Applications / Teradata   / how to generate addition row as counter / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Teradata Forums</description><link>http://www.teradata.com/teradataforum/</link><webMaster>info@teradata.com</webMaster><lastBuildDate>Wed, 03 Dec 2008 15:36:34 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: how to generate addition row as counter</title><link>http://www.teradata.com/teradataforum/Topic11004-5-1.aspx</link><description>Hi, it does not work. it did not fetch the record, only insert 1 record. the max value may go up to 999999999999999.thanks,</description><pubDate>Tue, 22 Apr 2008 15:01:00 GMT</pubDate><dc:creator>nguyent02</dc:creator></item><item><title>RE: how to generate addition row as counter</title><link>http://www.teradata.com/teradataforum/Topic11004-5-1.aspx</link><description>Hi Dhiraj,did you try it, this will not work :-)If it's less than 73000 values:insert into tabselect day_of_calendar from sys_calendar.calendarwhere day_of_calendar &amp;lt;= 1000Dieter</description><pubDate>Tue, 25 Mar 2008 13:46:13 GMT</pubDate><dc:creator>dnoeth</dc:creator></item><item><title>RE: how to generate addition row as counter</title><link>http://www.teradata.com/teradataforum/Topic11004-5-1.aspx</link><description>Hi,Create table as mentioned below and exec the foll. query.CREATE SET TABLE ,NO FALLBACK ,NO BEFORE JOURNAL,NO AFTER JOURNAL,CHECKSUM = DEFAULT(ID_COL INTEGER GENERATED ALWAYS AS IDENTITY(START WITH 1 INCREMENT BY 1 MINVALUE -2147483647 MAXVALUE 1000NO CYCLE))UNIQUE PRIMARY INDEX ( ID_COL );INSERT INTO SELECT 1  FROM DB_NAME.TABLE_NAME_2 Just make sure, above select query fetches the number of records you want. In this case 1000.</description><pubDate>Mon, 24 Mar 2008 03:07:09 GMT</pubDate><dc:creator>dhirajpalse</dc:creator></item><item><title>how to generate addition row as counter</title><link>http://www.teradata.com/teradataforum/Topic11004-5-1.aspx</link><description>hi, i am needing help on how to create a table (No RAW data to insert) , only generate the count from 1 to 1000. the final table will Counter1...1000Thank you very much.</description><pubDate>Fri, 21 Mar 2008 15:31:24 GMT</pubDate><dc:creator>nguyent02</dc:creator></item></channel></rss>