Since I asked wrong in another thread and it was correctly answered, I start a new thread instead..
I have two tables
Records
id | type
------------
1 | CD
2 | CD
Titles
record_id | name | language
-------------------------------
1 | Warning | 'en'
1 | Achtung | 'de'
2 | Ambulance | 'en'
(SQL Fiddle in link: http://www.sqlfiddle.com/#!2/403d4/1)
If I request for the language ‘en’ i want:
1 | Warning
2 | Ambulance
and if I ask for ‘de’ I want
1 | ACHTUNG
2 | NULL
How do I write the SQL to get this result?
http://www.sqlfiddle.com/#!2/403d4/89