473,385 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

generating a seriel of serial no

Hello to everyone out there.
Would appriciate if anyone can helo me with this issue.

I am desiging a simple db for my store and would like to generate a serial
no for my products.

Product Table

Product Code Product Description Packing Size
A100-1 Product test 1 45
A200-1 Product Test 2 70

scenario:-

when i receive product A100-1 of 2500 and A200-1 of 3000;

Based on the packing size; i will get A100-1 = 55.5 and A200-1 = 42.8

i wanted to generate a series no of boxes (round up) into a transaction
table display below:-

Serial No Product Code Qty
050801-A100-1-0001 A100-1 45
050801-A100-1-0002 A100-1 45
...
050801-A100-1-0055 A100-1 45
050801-A100-1-0056 A100-1 25

050801-A200-1-0001 A100-1 70
050801-A200-1-0002 A100-1 70
...
050801-A200-1-0042 A100-1 70
050801-A200-1-0043 A100-1 60
Note:- the serial no will be reseted to 1 daily

your help is much approciated/

TQ

Nov 13 '05 #1
1 1197
pwys wrote:

You know the requirements but your explanation of it is inadequate.

Did you write this as an exercise to waste people's time? See comments
below.

If you were asked for a advice by someone that wrote what you did, would
you comprehend what is required or would you be befuddled?
Hello to everyone out there.
Would appriciate if anyone can helo me with this issue.

I am desiging a simple db for my store and would like to generate a serial
no for my products.

Product Table

Product Code Product Description Packing Size
A100-1 Product test 1 45
A200-1 Product Test 2 70

scenario:-

when i receive product A100-1 of 2500 and A200-1 of 3000;
What is 2500, 3000?
Based on the packing size; i will get A100-1 = 55.5 and A200-1 = 42.8
Is 55.5 or 42.8 even relevent to your problem? If so, why? And where
do you "get" the figures?

i wanted to generate a series no of boxes (round up) into a transaction
table display below:-
55.6 = 56. 42.8 = 43. Round up to what?

Serial No Product Code Qty
050801-A100-1-0001 A100-1 45
050801-A100-1-0002 A100-1 45
..
050801-A100-1-0055 A100-1 45
050801-A100-1-0056 A100-1 25

050801-A200-1-0001 A100-1 70
050801-A200-1-0002 A100-1 70
..
050801-A200-1-0042 A100-1 70
050801-A200-1-0043 A100-1 60
What is 050801?

Note:- the serial no will be reseted to 1 daily
What do you mean by that.
your help is much approciated/
If you can't explain the problem, how do you expect someone to provide
advice?

TQ

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: ^CeFoS^ | last post by:
Hello to everybody, I've done an application that draws in a frame the trajectory of a robot. The robot position is readed through the serial port, and several commands are wrote through the...
15
by: tom | last post by:
Hi, How do I get the serial number of the harddisk in .NET? I want this to be the same number even if the user has reformatted, so I do not want the volume serial number. Thanx, t
3
by: Peter Fox | last post by:
The recent thread in generating PINs reminded me: Suppose I want to give someone a random password or ID then this is what I do: (1) Generate a hash, eg. MD5 form something, possibly a random...
13
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
4
by: rowan | last post by:
I'm writing a driver in Python for an old fashioned piece of serial equipment. Currently I'm using the USPP serial module. From what I can see all the serial modules seem to set the timeout when...
6
by: terry | last post by:
Hi, I am trying to send a character to '/dev/ttyS0' and expect the same character and upon receipt I want to send another character. I tired with Pyserial but in vain. Test Set up: 1. Send...
3
by: firoz ahmed | last post by:
can anybody tell me how should i generate serial no in datareport i have written a code for retrieving rows from a table . but i want it should generate sr no also . suppose SRNO PRODUCTNAME...
2
by: guinb | last post by:
i have a form with 2 boxes for start date and end date as well as 2 combo boxes for serial number and aircraft type. if i select a specific value for each then the rerport is generated just fine but...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.