Can someone please help me with this query.
I have a table that holds Reporting data for items sold.
Fields in this table are like CompanyCode, InvoiceDate, CustomerNum, ItemNum, etc..
Now my question is this. I need to write a query that filters on the itemnumbers.
An example of this would be:
(----data held in the table---)
11503
1132558CC
PROMO
BILLBACK
15565 Wild O
And i need a query that pulls only the itemNumbers that Have digits in them, or Digits followed by CC (Any other char's other than CC is an invald ItemNumber). I can have up to a 10 digit number.
So after the query, I should have only the following values:
11503
1132558CC
is there any way to pull this off? Please please please help.
cheers
john
(Any questions please ask, i will try to clear up any question.)
--------------

I have a table that holds Reporting data for items sold.
Fields in this table are like CompanyCode, InvoiceDate, CustomerNum, ItemNum, etc..
Now my question is this. I need to write a query that filters on the itemnumbers.
An example of this would be:
(----data held in the table---)
11503
1132558CC
PROMO
BILLBACK
15565 Wild O
And i need a query that pulls only the itemNumbers that Have digits in them, or Digits followed by CC (Any other char's other than CC is an invald ItemNumber). I can have up to a 10 digit number.
So after the query, I should have only the following values:
11503
1132558CC
is there any way to pull this off? Please please please help.
cheers
john
(Any questions please ask, i will try to clear up any question.)
--------------