Join | Login | Why Join?   
SQL Server, Oracle, DB2, Sybase, MySQL Help - SSWUG.ORG HACKER SAFE certified sites prevent over 99.9% of hacker crime.
Search SSWUG:   
 
Access to 501 free guest articles, discussions and more, just create your free SSWUG User ID:
Email address:  
This will be your login ID - we'll email you your password - you'll even receive the newsletter, opt-out at any time.
Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

Full site membership is required for this article. Already a full member? Login here.
You currently have a guest membership. You can upgrade to full site membership here (free trial available).

Creating a Non-Sequential Order Number System based on Microsoft SQL Server


 Article Abstract:

(Noah Subrin) Some e-commerce systems employ a sequential order numbering scheme. In some scenarios this design is not desirable. . I worked for an e-commerce company that did not want its order volume available to competitors, and used a system that generated sequential order numbers. A competitor could place an order first thing in the morning and another order at the end of the day. By subtracting the first order number from the last order number, one could derive a close estimate of the actual orders generated. I was tasked with creating a non-sequential ordering system.

 Read this article...

 Related Articles - For Members.
All Articles By Author

Understanding Microsoft Commerce Server (Part II)
Index Fragmentation and Its Resolution
Understanding Microsoft Commerce Server (Part I)
Tips for using indexes in SQL Server 2005 (Part 3)
Tips for using indexes in SQL Server 2005 (Part 1)
Change Management & Schema Evolution in DB2 for z/OS V8 - Part 3
DB2 Access Paths
Automate Database Defragmentation and Statistics Updates
Webchat: Index tuning/Query Optimization
An New Way to Consume Web Services: SQL Server 2005 HTTP End Point



Key (Please note):
(R) - registration may be required for access at the target site
($) - target site may require paid membership for access to this or other content


Reader Comments: Post Your Comments/Feedback

RE: Creating a Non-Sequential Order Number System based on Microsoft SQL Server
by S Maloney (posted: 8/14/2006 1:00:38 PM)
FWIW a common approach where a requirement is that no customer should have an idea of invoice / order counts from an invoice or order number is to implement a two key order logical design, that is to say each customer would then have private invoice numbers (1-n designating each customer's 1st to nth order - which must be combined with a customer identifier); for design convenience, one may also implement a surrogate key to support DRI throughout the rest of the system.



RE: Creating a Non-Sequential Order Number System based on Microsoft SQL Server
by Michael Clifford (posted: 8/14/2006 1:26:51 PM)
Good explaination and test files.



Email to Friend //  Discuss Article //  Rate Article //  Digg Article //  Add to Del.icio.us //  Add to Technorati

   




 

[ Register ] [ Webcasts ] [ Podcasts ] [ Newsletter Archive ] [ RSS/Feeds ]
[ About ] [ Advertise ] [ Contact ] [ Privacy ] [ Terms of Service ]
[ Link to SSWUG ] [ List Server Archives ] [ Recent Orig. Content ]
(c) 1997-2008, Bits on the Wire, Inc.  (0)

Some names and products covered by SSWUG are the registered trademarks of their respective owners.
DAA10354WWW004