Also, append to the "WHERE" clause to filter out parts you do not want to scan.
If all you are doing is counting, SQL can again do that efficiently:
SELECT count(*) as nbr_of_parts_with_leading_zeros FROM table WHERE part like '0000000%';
...The words of the Prophets are written on the Facebook wall.
In reply to Re: SQL Select
by NetWallah
in thread SQL Select
by Scully4Ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |