SQL select une colonne spécifiée

J'ai une table avec 3 colonnes: PrimaryKey, "German" et "Englisch".
Il y a des traductions.

Maintenant, je veux transférer la valeur de la colonne spécifique.

S'il y a une langue "allemande", alors il faut sélectionner la colonne "Allemand".
Inversement, si cette langue "anglais", alors bien sûr, colonne "anglais".

Donc, je veux choisir la bonne colonne en fonction de la cartographie du langage.

Table:

-----------+--------+--------- |PrimaryKey|German | English| -----------+--------+--------- |1 | Haus | house | -----------+--------+--------- |2 | Garten | garden | -----------+--------+--------- |3 | Apfel | apple | -----------+--------+--------- 

Client CHOICE ALLEMAND PK = 2, donc il obtient " Garten ".
Client ANGUIS chouse PK = 1, donc il obtient " house ".

THX

append une table client

  customerId Name 1 English 2 German 

–add fk_constraint client-client

  SELECT case when customer = 1 then t.English else t.German end as [Language] --or case when c.Name = 'English' then t.English else t.German end as [Language] FROM translations as t INNER JOIN customer as c on c.customerID = t.customer 

Sélectionnez colName1, colName2 à partir de tableName