You haven't provided a lot of info about your table and your actual queries (and the table names in your two queries don't match), but if I read your situation...
Since yyyymmdd is actually a valid date format (ISO), SQL server should be smart enough to know it's a date if it's simply treated as char. So, in mimorr's solution...