Hi All,
I am new to this area and would really appreciate ur help with this query.
I have to get count of all (valid and invalid) phone nos. from a table ABC.
ABC has columns city,phone_number, time_key.....
The output format is like this:
city Valid Invalid
________________________
chicago 123 345
lincoln 873 121
...
....
....
I am give following conditions to decide on valid and invalid phone number.
Range of Valid and invalid numbers
_____________________________________________
Chicago 1000000 through 1900000 -> valid
1900001 through 2100000 -> invalid
lincoln 2000000 through 2999999 -> valid
3000000 through 3999999 -> invalid
I guess we would have to use case statment...
Thanks in advance,
Mani.
I am new to this area and would really appreciate ur help with this query.
I have to get count of all (valid and invalid) phone nos. from a table ABC.
ABC has columns city,phone_number, time_key.....
The output format is like this:
city Valid Invalid
________________________
chicago 123 345
lincoln 873 121
...
....
....
I am give following conditions to decide on valid and invalid phone number.
Range of Valid and invalid numbers
_____________________________________________
Chicago 1000000 through 1900000 -> valid
1900001 through 2100000 -> invalid
lincoln 2000000 through 2999999 -> valid
3000000 through 3999999 -> invalid
I guess we would have to use case statment...
Thanks in advance,
Mani.