473,395 Members | 1,368 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,395 software developers and data experts.

Creating a new database for items and quotes

Okay,

Here's what I have so far.

I have Items.

Each item can have upto 10 different part numbers and revisions.
(depending on the vendor).

Each item also has 1 unique part number (our in-house part number).

I have created my first table like this:

IHPN* : GROUP : IMAGE (y/n) : NOTES

I also have a quote table depending on the time of year prices change:

QuoteID*(autonum) : Date : Source : Remarks : QTY : UNIT : Delivery : IHPN

I have a sales quote table too:

SaleID*(autonum) : Date : Customer : Notes : QTY : Unit : Devilery : IHPN


and lastly I have a table for all the different part numbers avaliable for each item:

PartID*(autonum) : Part No : Revision : IHPN

--------------------------------

My problem is... I'm not sure if I'm on the right track.

Eventually I'd like to make a front end to dispay all of the above information..

am I on the right track?

--
PS: This is a reference tool for us, not really a sales system. We're just using it to help keep track of what parts we have and what we've quoted them at.
Jul 6 '06 #1
4 7197
sashi
1,754 Expert 1GB
Hi there,

heard abt RDBMS?? well.. it's time to put it to test.. :)

ok.. i believe i understood your problem..

1st..
you need to have an item table.. lets say the field ItemID is the primary key..

2nd..
you need to have parts number table.. lets say PartNo is the primary key and make the ItemID as foreign key..

3rd..
make sure to include the ItemID field wherever necessary..

good luck my fren.. :)
Jul 6 '06 #2
how do you create a foreign key?

Im new.. sorry :(
Jul 6 '06 #3
N/m I'm an idiot.. I didn't think it was working properly.. but that's because I typed the wrong value in and it wasn't showing up.
Jul 6 '06 #4
sashi
1,754 Expert 1GB
Hi There,

primary key is the unique key in a table.. ok .. when the same key exist as a on unique key on another table.. thens it's know as the foreign key.. :) see links below for some good examples..

in the case above.. the ItemID is a primary key in the item table whereas a foreign key in the number table.. hope you understand.. good luck my fren.. :)

http://www.campus.ncl.ac.uk/databases/design/
http://www.geekgirls.com/databases_from_scratch_3.htm
http://www.awtrey.com/tutorials/dbeweb/database.php
Jul 7 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ken Fine | last post by:
(originally posted to one of macromedia's groups; no help, so hopefully someone here can help me out. I'm using VBScript ASP.) When designing administrative interfaces to websites, we often need...
2
by: Matthew Clubb | last post by:
Hi, I need help developing an expanding form I've decided that a use of PHP, Mysql and Javascript is the best platform for creating a selection of database interfaces which I'm trying to build...
6
by: F-13 | last post by:
I'm working on a BOM in Access 200 from an example downloaded from from the web. The sample database contains three tables, Assemblies (the list of items needed to assemble any assembly),...
1
by: Red | last post by:
Hi, Can someone give me a starting point, as I can't figure this out myself. I want to create a breadcrumb trail on a site, but instead of being generated by cookies or a directory structure,...
9
by: hazz | last post by:
I want to display 'n' records for a table-driven data entry page. The first column should be readonly and the 2nd column, a checkbox WRITABLE (NOT READONLY). I can't use the gridview because it...
0
by: koonda | last post by:
Hi guys, I posted a message before and I got some help from the forum. I have a database in SQL Server and I wanted to create a web interface in C#. I had 4 Listbox controls and a Textbox and two...
49
by: ARC | last post by:
Hello all, I have one chance to get this right, as I'm nearing a release of a program. I've looked at the database settings, and so far, have set the following: * Unchecked 'Enable design...
5
by: andrei.avk | last post by:
Hi, I'd like to store chunks of text, some of them may be very large, in a database, and have them searchable using 'LIKE %something%' construct. These pieces of text may have single and double...
5
by: Jetus | last post by:
I have a comma delimited file that is separated by comma's, and then sometimes by "," c:\temp\05-06-08\Sale1,659 CECIL,"659 CECIL,40211", 1,659,CECIL,AVENUE,LOUISVILLE,40211,"$65,276.78 "...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.