Application Development 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: 

Select MAX()

Former Member
0 Kudos

Hello!

What's here wrong? My program says there is a error.

SELECT MAX( price ) INTO wa2 FROM zaa_sflight.

Thanks!

1 ACCEPTED SOLUTION

former_member200338
Active Contributor
0 Kudos

Hi,

try this.

data l_max type zaa_sflight-price.

SELECT single MAX( price ) INTO l_max FROM zaa_sflight.

Regards,

Niyaz

Sorry: Change data type.

Edited by: Niyaz Ahamed on Jan 18, 2008 4:41 PM

5 REPLIES 5

former_member200338
Active Contributor
0 Kudos

Hi,

try this.

data l_max type zaa_sflight-price.

SELECT single MAX( price ) INTO l_max FROM zaa_sflight.

Regards,

Niyaz

Sorry: Change data type.

Edited by: Niyaz Ahamed on Jan 18, 2008 4:41 PM

former_member188829
Active Contributor
0 Kudos

hi,

SELECT MAX( price ) INTO wa2 FROM zaa_sflight.

in the above statement write like this..

MAX( space price space )

Former Member
0 Kudos

check type of price

Former Member
0 Kudos

Hi,

Check the following code:

tables: sflight.

data: airfare like sflight-price.

select MAX( price ) into airfare from sflight.

write airfare.

Regards,

Bhaskar

Former Member
0 Kudos

hi,

check that u have missed period for the above statement

regards

zubair