Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sequence number generation

 
Ghouse Modhin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir,

I am creating a bill report Application..I want to generate a sequence number for bill that is starting from 1.and if date changes the sequence number again starts with 1.

help me sir.



this is Ghouse. Thanking you Sir
 
Henry Wong
author
Marshal
Pie
Posts: 20995
76
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ghouse Modhin wrote:
I am creating a bill report Application..I want to generate a sequence number for bill that is starting from 1.and if date changes the sequence number again starts with 1.


Pretty straightforward request. What have you done so far?

Henry
 
Winston Gutkowski
Bartender
Pie
Posts: 10226
58
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ghouse Modhin wrote:I want to generate a sequence number for bill that is starting from 1.and if date changes the sequence number again starts with 1.

Any particular reason why? It sounds like the computer equivalent of 'mixing metaphors' to me.

And anyway, what is a 'date' in your mini-verse? Local? GMT? Does it start at midnight? Midday? 8AM? Does it use Daylight savings?

Lots of questions to answer before we can suggest a solution.

Winston
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic