There are many ways to do this if you want to just setup a basic statement here is a good one.
IF (SELECT count(*) FROM entries WHERE language = 'english') > 0
BEGIN
//What you want to do for english
END
ELSE IF (SELECT count(*) FROM entries WHERE language = 'swedish') > 0
BEGIN
// What you want to do for Swedish
END
ELSE
BEGIN
// There are no records for those languages!!
END
If you want to use it as a storage procedure can try the following:
CREATE PROCEDURE GetLanguageRows
@language varchar(500)
AS
IF (SELECT count(*) FROM entries WHERE language = @language) > 0
BEGIN
//What you want to do for that language
END
ELSE
BEGIN
// No records found!
END
now you can just use
exec GetLanguageRows 'English'
Hopefully i helped a little alongside those other great answers above!