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

Products belonging to more than one category....???

135 100+
Hello,

I have a table ENGINEERING with the following fields:

PRODUCT NAME
LEVEL 1 DRIVER
LEVEL 1 PASSENGER
LEVEL 2 DRIVER
LEVEL 2 PASSENGER
LEVEL 3 DRIVER
LEVEL 3 PASSENGER
LEVEL

I created a form (ENGINEERING) where the user enters the name of the product and enters the number of units that product belongs to at each level.

ie (ENGINEERING TABLE)

PRODUCT NAME------LEVEL 1 DRIVER----LEVEL 1 PAS----LEVEL 2 DRIVER...

ARMREST----------------------------2--------------------------0--------------------------1
HEADREST--------------------------0--------------------------2--------------------------1
CUPHOLDER------------------------1--------------------------0--------------------------0
etc
etc

I need some code for the form, so that in the LEVEL field i can get a "1" if the product has ANY units in that level or "1,2" if the product has units in the level 1 AND level 2.

HOW CAN I DO THIS?

Thanks,
Gilberto
Sep 14 '07 #1
1 1162
Scott Price
1,384 Expert 1GB
First of all you should take a good long look at the Database Normalisation Tutorial.

Ask any question you need until you fully understand the concepts involved. After making the changes to your table structure, we'll be glad to help you accomplish what you need to do.

Regards,
Scott
Sep 15 '07 #2

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

Similar topics

1
by: Matthew Robinson | last post by:
i wrote a search page for my site (searching through a mysql database) but when i type in more than one word (eg "item three") in the search field it gets passed to the page as a single word...
2
by: frizzle | last post by:
Hi there I have a products site with a mysql backend. I have two tables: 1 with series, 1 with products belonging to certain series. Series looks like: - id - kind
0
by: Ralph Guzman | last post by:
TASK: I have to generate a report with all categories, subcategories and products in database. PROBLEM: I want to write one query that will return: 1. category 2. subcategory: determined by...
0
by: Pierre de LESPINAY | last post by:
Hello Simplifying my problem: I have 3 tables. user_master ---------- int user_id char user_name
4
by: Adie | last post by:
Hi, I wonder if anyone might lend me a brain. I have a stock database to build that covers over 1000 products, which might be said to exist in around 50 product families. Obviously, just to be...
5
by: mm nn | last post by:
Hi, I want to create a table like this: ID Autonum Datefld Date Cat Text Itm Text tCount Number
1
by: Mark | last post by:
My Category and Product tables look like: TblCategory CategoryID Category TblProduct ProductID CategoryID Product
4
by: Erik Thorsen | last post by:
I need help with a tricky questions which I belive have a simple solution? For those who know Nwind.mdb, the example database that comes with microsoft access, it has several different tables. One...
1
by: chiragshah8484 | last post by:
Hello I want to make explorer kind look and work of my category and also its products. The category and its subcategory is dynamic. It means admin can add any number of categories ans...
0
by: Bobby Edward | last post by:
I have 2 tables... - ProductCategories - Products How can I get this type of effect (with paging preferably, but optional)... Which databound control should I use? CATEGORY1 Product Info...
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
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...
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.