Results 1 to 4 of 4
Thread: Product Offer in Mysql
- 06-25-2011, 05:56 AM #1
Member
- Join Date
- Jul 2008
- Location
- London (Kingsbury)
- Posts
- 41
- Rep Power
- 0
- 06-25-2011, 07:38 AM #2
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
Your question is too general to answer. What I can say is to put a unique ID for each product that will be added to your product table. This ID will hold the information/details of that product. I think, first thing that you should do is to list the details that will be needed to describe a certain product
Some links that you might want to read:
Lesson: JDBC Introduction (The Java™ Tutorials > JDBC(TM) Database Access)
Lesson: JDBC Basics (The Java™ Tutorials > JDBC(TM) Database Access)
3 Normal Forms Database Tutorial
- 06-26-2011, 01:34 AM #3
Member
- Join Date
- Jul 2008
- Location
- London (Kingsbury)
- Posts
- 41
- Rep Power
- 0
I have created the Item_Table in my database and the Primary_Key is the product Barcod. and i have been able to do all the stuff like retrieve data from database to Jtable. The Programe work like this
i have placed a JTextFiled to get the barcode from barcode reader. when i scan a barcode it will check with my database weather the product exist if its it will add to JTable with Item Name and the price of it. (PRICE SHOULD NOT BE £ 1.38)
what i wanted to do is if i scan one coke the price will be £ 0.69 and if i scan two coke the price should be £ 1.00 how do i do this?Last edited by razmyasdfg; 06-26-2011 at 01:36 AM.
- 06-27-2011, 02:45 AM #4
Senior Member
- Join Date
- Apr 2010
- Location
- Philippines
- Posts
- 580
- Rep Power
- 4
The first thing I think of about your problem is to have another table which stores the number of item to be bought and the (discounted) price. But I am not sure if this is a good idea for your project. Second thing that I think of is to have different product ID for that, it is what I see in gorceries and supermarkets, the company(e.g. the Coke-a-Cola company) before they deliver the item they pack it (the 2 cokes) and put different barcode.
Similar Threads
-
need scjp 1.6 voucher in offer
By sathiyanannauniversity in forum Java CertificationReplies: 10Last Post: 07-17-2010, 05:52 PM -
Amazing Offer to start Voip Buisness
By taiger786 in forum Reviews / AdvertisingReplies: 0Last Post: 02-20-2010, 12:02 PM -
Amazing Offer to start Voip Buisness
By taiger786 in forum Reviews / AdvertisingReplies: 0Last Post: 02-19-2010, 11:32 AM -
Spesial Offer 4 you hurryup!!!
By taiger786 in forum Reviews / AdvertisingReplies: 0Last Post: 02-11-2010, 09:03 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks