The way I would personally do this is:
- Attach your SQL database as an external data source (you do this to let LightSwitch create a data model for the database).
- Add a custom RIA service that will re-use the data model created by step 1 (we're using this method so you can add the equivalent of computed properties that can be searched/sorted by).
If you're not familiar with creating RIA services for consumption by LightSwitch, this article, How Do I: Display a Chart Built On Aggregated Data, will show you all that you need to know to successfully create one. Don't be put off by the fact that the article explains creating an entity specifically to illustrate aggregating data for display in a chart, the basic techniques to do what you want are the same, just ignore the part about the chart.
Your computed properties will be ordinary string properties in your RIA service (because LightSwitch will only search/sort string properties).
Because you'll be creating a custom entity with exactly the properties that you want (whether they exist in the database or not), LightSwitch will treat your computed properties like any other string property.