Ah, gahooa was so close:
SELECT * FROM currency_codes
ORDER BY
CASE
WHEN code="USD" THEN 1
WHEN code="CAD" THEN 2
WHEN code="AUD" THEN 3
WHEN code="BBD" THEN 4
WHEN code="EUR" THEN 5
WHEN code="GBP" THEN 6
ELSE 7
END,name;
More Related Contents:
- How to filter SQL results in a has-many-through relation
- How to select the nth row in a SQL database table?
- Group by clause in mySQL and postgreSQL, why the error in postgreSQL?
- Comparison of full text search engine – Lucene, Sphinx, Postgresql, MySQL? [closed]
- Simple Random Samples from a Sql database
- SQL: Repeat a result row multiple times, and number the rows
- Why do results from a SQL query not come back in the order I expect?
- Best practices for SQL varchar column length [closed]
- Relationship between catalog, schema, user, and database instance
- How do I UPDATE a row in a table or INSERT it if it doesn’t exist?
- What resources exist for Database performance-tuning? [closed]
- Converting SELECT DISTINCT ON queries from Postgresql to MySQL
- Are SELECT type queries the only type that can be nested?
- how to cast the hexadecimal to varchar(datetime)?
- Postgres LEFT JOIN with WHERE condition
- How do you write a case insensitive query for both MySQL and Postgres?
- Foreign key to one of many tables?
- Import MySQL dump to PostgreSQL database
- What are the max number of allowable parameters per database provider type?
- What happens when I exhaust a bigint generated key? How to handle it?
- Compare two MySQL databases [closed]
- Storing image in database directly or as base64 data?
- Is MySQL breaking the standard by allowing selecting columns that are not part of the group by clause?
- What does the KEY keyword mean?
- MySQL utf8mb4, Errors when saving Emojis
- How to store unicode in MySQL?
- Search for string within text column in MySQL
- Clear MySQL query cache without restarting server
- Mysql insert into 2 tables
- GRANT with database name wildcard in MySQL?