I have a list of ISO2 country codes I want to use in a query.
Something like this:
select cou, 128,13, 1
from ('AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', [snip]) as cou
But.. working.
I remember doing such a thing in the past, but I can't find any doc about it anymore. It's a one shot query so I don't mind performance, coding practice or maintainability.
Any ideas?
UPDATE
As Pax noted, it is indeed better practice to have this data in my database for all the good reasons. I understand his opinion because I would answer the same. However, this data already IS in another table, in another database, on another server, on another network..
In order to test my queries I need some quick shot values in a table on this new database. I don't want to configure networks, cross-server queries etc just to test my queries on some real-life data. I hope this explains why I go against the stream for this one shot.