How to get more rows for SQL codes.