MySQL Sorting
June 30, 2008 1:48 PM
Subscribe
Can I combine and sort MySQL search results?
I'm making an A-Z list of university departments. They're in a table with fields like this:
dept_name: Department of Engineering
alt_dept_name: Engineering Department
dept_name: Department of English
alt_dept_name: English Department
I can do a query that gets me every entry that has either dept_name or alt_dept_name that starts with a given letter. How can I combine the dept_names and alt_dept_names so they're sorted alphabetically together?
posted by kirkaracha to computers & internet (4 comments total)
1 user marked this as a favorite
posted by zeoslap at 1:54 PM on June 30, 2008