J
Jens Burup
Hi ng
This one have puzzled me for days.
Main table [Equipment] contain itemno descriptions, mType,pType . etc... for
a product range
Column Column Column..........
Itemno mType mType Remarktext
551111 240 C01 Bla1.
bla1.......
551111 242 C01
554500 240 C04
556000 242 C06
558000 240 C05
The remark text is linked to an itemno based upon 2 parametres mType and
pType values and the itemno
To do this, I use on small table called EquipRelation containing 3 coloumns
containing mType, pType and RemarkID
this as a sample
Column Column Column
ptype values mType values RemarkID
C01 240 1
C01 242 2
C04 242 3
C04 240 4
The 3.rd table [Remarks] contaning the remark text is linked to the
EquipRelation table like this
Column Column Column
RemarkID Itemno RemarkText
1 551111 Bla1. bla1.......
2 554500 Bla2. bla2.......
3 556000 Bla3. bla3.......
4 558000 Bla4. bla4.......
As you see, the tricky part is, that the itemno it self is not unike, but
the combination of the itemno & pType & mType identify the row to add the
text.
Only the 1. row[551111] should have a remarktext according to the rules.
I have tried all combination I know of, but I do not get the correct numbers
of records that should show up.
Is it posible to this in onequiry?
Is it posible to use a SELECT statement more than one time in the same
quiry?
Hope this not to difficult to understand
Regards
Jens
This one have puzzled me for days.
Main table [Equipment] contain itemno descriptions, mType,pType . etc... for
a product range
Column Column Column..........
Itemno mType mType Remarktext
551111 240 C01 Bla1.
bla1.......
551111 242 C01
554500 240 C04
556000 242 C06
558000 240 C05
The remark text is linked to an itemno based upon 2 parametres mType and
pType values and the itemno
To do this, I use on small table called EquipRelation containing 3 coloumns
containing mType, pType and RemarkID
this as a sample
Column Column Column
ptype values mType values RemarkID
C01 240 1
C01 242 2
C04 242 3
C04 240 4
The 3.rd table [Remarks] contaning the remark text is linked to the
EquipRelation table like this
Column Column Column
RemarkID Itemno RemarkText
1 551111 Bla1. bla1.......
2 554500 Bla2. bla2.......
3 556000 Bla3. bla3.......
4 558000 Bla4. bla4.......
As you see, the tricky part is, that the itemno it self is not unike, but
the combination of the itemno & pType & mType identify the row to add the
text.
Only the 1. row[551111] should have a remarktext according to the rules.
I have tried all combination I know of, but I do not get the correct numbers
of records that should show up.
Is it posible to this in onequiry?
Is it posible to use a SELECT statement more than one time in the same
quiry?
Hope this not to difficult to understand
Regards
Jens