Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...Want to thank those people who have made this forum such a valuable place to visit each day..."

Geography

Where in the world do Tek-Tips members come from?

Complex (IMO) crosstab issue I can't get my head around

maxxev (TechnicalUser)
8 Nov 11 4:48
Hi, i'm building a label database (for the labelling software we purchased) for a cake company.

I'm trying to make it as normalised as possible however i've come across a quandry that is causing brainaches...

I have created a many to many linkiung products and allergens (e.g.:

Product 1 | Milk
Product 1 | Eggs
Product 1 | Nuts

Then I have created a crosstab query which then puts the allergens as the columns and have used an expresion to replace the "1" result in a column where there is an allergen into the name of the column.

Then another query takes this query and turns it into various statements via expresions (e.g. "Contains: Milk, Eggs, Nuts", "May contain: Sesame", "Suitable for..." etc).

Works great and exactly what I want.

HOWEVER and here is where i'm struggling.

We have some products that have multiple launguages on where they are shipped to parts of Europe....

Again trying to be as normalised as possible I would like to have a tranllation table like this:

Milk | French for milk
Egg | French for egg
Sesame | french for sesame

Which is what I have setup, however I then get stuck as to how to actually link that data and cross tab it without using 30 odd cross tabs to create the ingredient dec.

Relationship diagram is attached, if you need anything else to make suggetsions let me know.

PLEASE NOTE i'm not a very SQL minded person so please explain any coded solutions

Any suggetsions please would be helpful.

Thank you
maxxev (TechnicalUser)
9 Nov 11 8:36
Resolved this issue.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close