B
Bernd Muent
Hi togehter,
I have a data table like this:
ID LANG TERM
12345 DEU Haus
12345 ENG House
12345 FRA Maison
12346 ENG Sun
12347 DEU Mensch
12347 FRA Homme
12347 ESP Hombre
So, there are groups of corresponding translations in various languages.
I would like to create a new table like this:
ID DEU ENG ESP FRA
12345 Haus House Maison
12346 Sun
12347 Mensch Hombre Homme
Somebody gave me the hint for MySQL:
select ID, max(if(LANG='DEU',TERM,'')) as DEU, max(if
(LANG='ENG',TERM,'')) as ENG, max(if (LANG='ESP',TERM,'')) as ESP,max(if
(LANG='FRA',TERM,'')) as FRA from TERMS group by ID
And it is exactly doing what I like.
But when I try to execute this SQL statement in Access, there is the
error message: "Undefined function 'if' in SQL statement".
I have got no idea how to change this SQL so that it is working in Access.
Thank you for tips, Bernd
I have a data table like this:
ID LANG TERM
12345 DEU Haus
12345 ENG House
12345 FRA Maison
12346 ENG Sun
12347 DEU Mensch
12347 FRA Homme
12347 ESP Hombre
So, there are groups of corresponding translations in various languages.
I would like to create a new table like this:
ID DEU ENG ESP FRA
12345 Haus House Maison
12346 Sun
12347 Mensch Hombre Homme
Somebody gave me the hint for MySQL:
select ID, max(if(LANG='DEU',TERM,'')) as DEU, max(if
(LANG='ENG',TERM,'')) as ENG, max(if (LANG='ESP',TERM,'')) as ESP,max(if
(LANG='FRA',TERM,'')) as FRA from TERMS group by ID
And it is exactly doing what I like.
But when I try to execute this SQL statement in Access, there is the
error message: "Undefined function 'if' in SQL statement".
I have got no idea how to change this SQL so that it is working in Access.
Thank you for tips, Bernd