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 > Automatic recording

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-11-10, 10:50
infection infection is offline
Registered User
 
Join Date: Apr 2010
Posts: 2
Automatic recording

Hi everyone,

I got an assignment and everything is pretty much ok except this (i'm not going to copy word by word but here is the idea) The output of the system should be able to record information like date and some description of the product automatically.

I'm completely lost here, how i'm suppose to design that?? Let say that the system need to record today's date and a description (let say afternoon)

e.g 12/04/2010, afternoon

how i'm going to make the system automatically record today's date plus afternoon??
Reply With Quote
  #2 (permalink)  
Old 04-11-10, 11:01
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
In BASIC you'd use a PRINT statement. In C you'd use some variant of putc(). In Pascal, either write() or more likely writeln()...

Are you starting to think that maybe you'd be better off at least telling us what Operating System and language you are using?

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #3 (permalink)  
Old 04-11-10, 11:31
infection infection is offline
Registered User
 
Join Date: Apr 2010
Posts: 2
Thanks pat..

I'm starting to get the idea now... I was looking in the wrong direction all this time and that's why i couldn't figure out the solution
Reply With Quote
  #4 (permalink)  
Old 04-12-10, 09:56
blindman blindman is offline
World Class Flame Warrior
 
Join Date: Jun 2003
Location: Ohio
Posts: 11,726
Its a database forum, so I'd assume he wants to do it in sql.....

You'll need a datetime and a varchar field for holding this information. The datetime field can be a column set to default to the current timestamp. The description, of course, will have to be supplied by the application interface and loaded via an insert or update statement.

I guess the confusing thing here is your verbage. The "output" should be able to "record"? Output does not record data. Input records data.
__________________
If it's not practically useful, then it's practically useless.

blindman
www.chess.com: "sqlblindman"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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