I have a table MySeekCatTable
with a structure:
SeekId CatId
J 1<= i<=45
in this table every SeekId
has three CatId
.
The table MySeekCatTable
references two table with foreign keys:
the first table SeekTable
with SeekId
as primary key is like:
SeekId Name
1 John
2 Kelly
the second table CatTable
with CatId
as primary key is like:
CatId Name
1 Cat1
2 Cat2
My need is that I have to write a query that gives for every SeekId
three of its CatId
in the format:
SeekId A B C
1 Cat1 Cat2 Cat3
i Cati Catj Catk