Hey, regarding your SKU question, that should be easy enough.
Modify the main SQL query to something like :
Code:
SQL QUERY...... WHERE productcode LIKE '38-%'
That will specify all products that start with "38-" (the % is wildcard).
I'm not sure the range query will always work, but you could try:
Code:
SQL QUERY...... WHERE productcode >= '38-9000' AND productcode <= '38-9999'
Hope that helps.