Hello dear colleagues,
Is it possible to sort values by values in IN clause.
In MySQL there is a function called FIELD (http://stackoverflow.com/questions/866465/sql-order-by-the-in-value-list)
For example:
SELECT * FROM <tab>
WHERE "attribute" IN ('val1', 'val2', 'val3')
ORDER BY FIELD( "attribute", 'val1', 'val2', 'val3');
If it isn't possible how can I do it with SQLScript?