title: How to run a SQL query on an Excel table?
body: <p>I'm trying to create a sub-table from another table of all the last name fields sorted A-Z which have a phone number field that isn't null. I could do this pretty easy with SQL, but I have no clue how to go about running a SQL query within Excel. I'm tempted to import the data into postgresql and just query it there, but that seems a little excessive. </p>
  
  <p>For what I'm trying to do, the SQL query <code>SELECT lastname, firstname, phonenumber WHERE phonenumber IS NOT NULL ORDER BY lastname</code> would do the trick. It seems too simple for it to be something that Excel can't do natively. How can I run a SQL query like this from within Excel?</p>