0

I have a field named Order_ID from table Order.

when value of Order_ID starts with numeric value then it should exclude those records, otherwise it should include those records in the report.

For example: if the Order_ID starts with a value 1ABC it should exclude that record from report .

If Order_ID has a value A1BC it should not exclude those records.

4

3 回答 3

1

http://docs.oracle.com/cd/B12037_01/server.101/b10759/conditions018.htm#SQLRF00501

for your particular case it's going to be something like

SELECT ... WHERE REGEXP_LIKE (Order_ID, '^[a-zA-Z]+.*$'); 
于 2015-05-06T11:25:14.017 回答
0

This is the regex statement (Order_ID, "[A-Z]{1}\d{1}[A-Z]{3}")

于 2015-05-06T11:28:46.640 回答
0

Gayatri,
put following in report where condition

WHERE NOT REGEXP_LIKE(Order_ID, '^[0-9]');

report it exclude entries start with numbers and contains values start with Alphabetics only.

Hopes this helps.

于 2015-05-06T13:57:17.243 回答