Optimizing a strange MySQL Query
问题 Hoping someone can help with this. I have a query that pulls data from a PHP application and turns it into a view for use in a Ruby on Rails application. The PHP app's table is an E-A-V style table, with the following business rules: Given fields: First Name, Last Name, Email Address, Phone Number and Mobile Phone Carrier: Each property has two custom fields defined: one being required, one being not required. Clients can use either one, and different clients use different ones based on their