The simplest and the easiest way is to use
PATINDEX[
^] function. See:
DECLARE @tablea TABLE(ID int, [Text] VARCHAR(250))
DECLARE @tableb TABLE(ID int, [Text] VARCHAR(250))
INSERT INTO @tablea(ID, [Text])
VALUES(1, 'Dan-salg 04.11'),
(2, 'Gebyr udland'),
(3, 'Buy EUR 10,00 GOOGLE*GS'),
(4, 'Pbs overforsel FAKT')
INSERT INTO @tableb(ID, [Text])
VALUES(1001, 'GOOGLE*GS'),
(1002, 'Overforsel'),
(1003, 'Geby udlandet'),
(1004, 'Dan-salg')
SELECT ta.ID, ta.[Text], tb.ID ID2, tb.[Text] Text2
FROM @tablea ta LEFT JOIN @tableb tb ON PATINDEX('%' + tb.Text + '%', ta.Text) >0
Result:
ID Text ID2 Text2
1 Dan-salg 04.11 1004 Dan-salg
2 Gebyr udland NULL NULL
3 Buy EUR 10,00 GOOGLE*GS 1001 GOOGLE*GS
4 Pbs overforsel FAKT 1002 Overforsel
Good luck!