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

query

Former Member
0 Likes
973

Dear All

Select Count ( * ) CREATEDBY into (cstyle-count, cstyle-CREATEDBY) from ZMM_STYLE_MAST

where

ZMM_STYLE_MAST~CREATEDBY in u_uname and

ZMM_STYLE_MASTCREATIONDATE in u_date GROUP BY ZMM_STYLE_MASTCREATEDBY .

The above query not working

Pls any one help he

Thanks and regards

Suresh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
956

Hi ,

Select Count ( * ) CREATEDBY

  • into table cstyle from ZMM_STYLE_MAST*

where

ZMM_STYLE_MAST~CREATEDBY in u_uname and

ZMM_STYLE_MAST~CREATIONDATE in u_date GROUP BY ZMM_STYLE_MAST~CREATEDBY .

( or )

Select Count ( * ) CREATEDBY

into (cstyle-count, cstyle-CREATEDBY) from ZMM_STYLE_MAST

where

ZMM_STYLE_MAST~CREATEDBY

  • = * u_uname and

ZMM_STYLE_MAST~CREATIONDATE

  • = * u_date.

awrd points if useful

Bhupal

6 REPLIES 6
Read only

Former Member
0 Likes
956

Hi,

count * will give u the number of record that satisfy the condition in where clause.

for count:


Select Count ( * ) into cstyle-count from ZMM_STYLE_MAST
where
ZMM_STYLE_MAST~CREATEDBY in u_uname and
ZMM_STYLE_MAST~CREATIONDATE in u_date GROUP BY ZMM_STYLE_MAST~CREATEDBY .

for createdby value:


Select single CREATEDBY into cstyle-CREATEDBY from ZMM_STYLE_MAST
where
ZMM_STYLE_MAST~CREATEDBY in u_uname and
ZMM_STYLE_MAST~CREATIONDATE in u_date GROUP BY ZMM_STYLE_MAST~CREATEDBY .

rgds,

bharat.

Read only

0 Likes
956

hi

Thanks for your reply

2007 27.08.2007 SEETHA

2007 28.08.2007 SEETHA

2007 31.08.2007 SEETHA

2007 31.08.2007 MURUGU

2007 01.09.2007 MURUGU

2007 01.09.2007 MURUGU

2007 03.09.2007 MURUGU

2007 03.09.2007 MURUGU

2007 03.09.2007 SURESH

2007 05.09.2007 MURUGU

2007 16.10.2007 PURCHASE

2007 16.10.2007 PURCHASE

2007 16.10.2007 PURCHASE

The above is output now i want how many records each user performed

Read only

0 Likes
956

Hi,

select all the values first into an internal table say itab.

then do like this.


data:counter(3).

sort itab by createdby.

loop at itab.
at new createdby.
clear counter.
endat.
counter = counter + 1.
at end of createdby.
  write:/ counter,itab-createdby.
endat.
endloop.

rgds,

bharat.

Read only

Former Member
0 Likes
957

Hi ,

Select Count ( * ) CREATEDBY

  • into table cstyle from ZMM_STYLE_MAST*

where

ZMM_STYLE_MAST~CREATEDBY in u_uname and

ZMM_STYLE_MAST~CREATIONDATE in u_date GROUP BY ZMM_STYLE_MAST~CREATEDBY .

( or )

Select Count ( * ) CREATEDBY

into (cstyle-count, cstyle-CREATEDBY) from ZMM_STYLE_MAST

where

ZMM_STYLE_MAST~CREATEDBY

  • = * u_uname and

ZMM_STYLE_MAST~CREATIONDATE

  • = * u_date.

awrd points if useful

Bhupal

Read only

Former Member
0 Likes
956

Hi,

Now check by keeping space at *

Select Count ( * ) CREATEDBY into (cstyle-count, cstyle-CREATEDBY)

from ZMM_STYLE_MAST

where ZMM_STYLE_MAST~CREATEDBY in u_uname and

ZMM_STYLE_MAST~CREATIONDATE in u_date

GROUP BY ZMM_STYLE_MAST~CREATEDBY .

Read only

Former Member
0 Likes
956

Hi ,

Select Count ( * ) CREATEDBY

into table cstyle from ZMM_STYLE_MAST

where

ZMM_STYLE_MAST~CREATEDBY in u_uname and

ZMM_STYLE_MAST~CREATIONDATE in u_date GROUP BY ZMM_STYLE_MAST~CREATEDBY .

( or )

Select Count ( * ) CREATEDBY

into (cstyle-count, cstyle-CREATEDBY) from ZMM_STYLE_MAST

where

ZMM_STYLE_MAST~CREATEDBY

= u_uname and

ZMM_STYLE_MAST~CREATIONDATE

= u_date.

awrd points if useful

Bhupal