Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

Totally unsure - Tech Challenge

Discussion in 'Information Technology' started by uzy, Nov 12, 2005.

  1. uzy

    uzy
    Expand Collapse
    Guest

    Hi

    I have recently start to use Access and trying to figure out how to
    solve the following problem, moreover, if it is even possible to do it
    in Access.

    Any ideas would be greatly appreciated.

    Many thanks
    Uzy

    I have a table called MASTER which tells me how each row is dimensioned
    by. I need to read this information and devise the permutations based
    on DIM1 and DIM2. So the four records in MASTER would be turned to nine
    records as seen in the RESULTS table.

    MASTER
    ID1 DIM1 DIM2
    harry
    peter x x
    taz x
    uzy x

    DIM1
    key label
    1 phone
    2 memory

    DIM2
    pkey plabel
    p1 nokia
    p2 sony

    The result table I want is as follows:
    RESULT

    ID1 key label pkey plabel
    harry
    peter 1 phone p1 nokia
    peter 1 phone p2 sony
    peter 2 memory p1 nokia
    peter 2 memory p2 sony
    taz p1 nokia
    taz p2 sony
    uzy 1 phone
    uzy 2 memory
     
  2. Loading...


  3. Marvin P. Winterbottom

    Marvin P. Winterbottom
    Expand Collapse
    Guest

    I'm not sure what you are trying to do, but I'm very sure Access is the wrong
    tool.

    "uzy" wrote:

    > Hi
    >
    > I have recently start to use Access and trying to figure out how to
    > solve the following problem, moreover, if it is even possible to do it
    > in Access.
    >
    > Any ideas would be greatly appreciated.
    >
    > Many thanks
    > Uzy
    >
    > I have a table called MASTER which tells me how each row is dimensioned
    > by. I need to read this information and devise the permutations based
    > on DIM1 and DIM2. So the four records in MASTER would be turned to nine
    > records as seen in the RESULTS table.
    >
    > MASTER
    > ID1 DIM1 DIM2
    > harry
    > peter x x
    > taz x
    > uzy x
    >
    > DIM1
    > key label
    > 1 phone
    > 2 memory
    >
    > DIM2
    > pkey plabel
    > p1 nokia
    > p2 sony
    >
    > The result table I want is as follows:
    > RESULT
    >
    > ID1 key label pkey plabel
    > harry
    > peter 1 phone p1 nokia
    > peter 1 phone p2 sony
    > peter 2 memory p1 nokia
    > peter 2 memory p2 sony
    > taz p1 nokia
    > taz p2 sony
    > uzy 1 phone
    > uzy 2 memory
    >
    >
     
  4. uzy

    uzy
    Expand Collapse
    Guest

    Thanks for the comment but it dont help! I basically want to produce
    cartesian joins where there is "x" under a DIM table. This is quite
    easy, the trick is to do it all in one query where ID1 is also
    displayed.
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page