Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Where Clause problem

Former Member
0 Likes
448

Hi Experts,

I have a requirement, where in i have to select all the columns from the table where the table names are like

/bic/a%00 etc and also the no.of rows must be greater than 100000.

So how do i write my open sql statement.

My query looks like this.

SELECT *

FROM DBSTATTORA

WHERE TNAME LIKE '/BIC/A%00'

OR TNAME LIKE '/BIC/A%40'

OR TNAME LIKE '/BI0/A%00'

OR TNAME LIKE '/BI0/A%40'

ORDER BY TNAME.

So in here i also want to include in the where clause that the NROWS > 100000.

But it doesn't allow me to do it.So how should i achieve this. This is really really important, So please any help on this will be great.

Thanks in advance,

Prabhu.

2 REPLIES 2
Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
329

Hi Prabhu

SAP at upper level do not deal with the number of the row, so we can not use row number in WHERE clause.

Regards

*--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

Read only

0 Likes
329

I solved it, used brackets within the where clause and i get the accurate information for the no.of rows.

Thanks anyway.