This is how I would do that.
This is based on the assumption the the MHz value is always equal to the GHz value. (1000MHz=1.0GHz). As long as that rule holds in the database, then this query will work
Check for 1.0GHz chips:
select * from chipTable where freq like '1.0' OR like '1000'
This query will return matches for both 1.0 and 1000
You would just dynamically change the query depending on what
frequency is being searched for.