If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > help design database to store temp data

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-14-10, 05:59
kikedb kikedb is offline
Registered User
 
Join Date: Feb 2010
Posts: 1
help design database to store temp data

please help

I want to design database for my software that generate a random number 0-1000 every minute but that number must not duplicate with latest 500 numbers

how can i design the database tables to store the latest 500 numbers in my database and generate the random number with no duplicate the latest 500 numbers

my table that I use currently is like this
I have 1 column named
LatestNumbers and store String "99,284,33,1,784,411,..."
Reply With Quote
  #2 (permalink)  
Old 02-14-10, 08:01
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,085
Code:
CREATE TABLE latestnumbers
( latestnumber INTEGER NOT NULL PRIMARY KEY
);
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On