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

Regarding Select statement ........

shadow
Participant
0 Likes
436

Hi All,

I want to populate the data between these two Dates and times.(13th oct 8'o'clock and 13 nov 8'o'clock). Could you give me any one syntax for this select statement.

Thanks & Regards,

SHAIK JAILABDIN.

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
409

Hi,

Which table you are trying to access? That table should have creation date and time fields or timestamp field.

In where clause use GE lower limits and LE upper limits.

Thanks,

Vinod.

3 REPLIES 3
Read only

vinod_vemuru2
Active Contributor
0 Likes
410

Hi,

Which table you are trying to access? That table should have creation date and time fields or timestamp field.

In where clause use GE lower limits and LE upper limits.

Thanks,

Vinod.

Read only

Former Member
0 Likes
409

Hi

If the table has not a field timestamp, i.e the field for data and the field for time are distinct, I believe u need to do the select in 2 different steps:

The first one u select all record between 13th oct and 13th nov,

The second one: u delete all records of 13th oct with time less the 8'o'clock and 13th nov with time > 8 o'clock

SELECT * FROM <TABLE> WHERE DATE => '200911013' AND DATE =< '20091113'.
   IF ( <TABLE>-DATE = '20091013' AND <TABLE>-TIME < '080000' ) OR.
      ( <TABLE>-DATE = '20091113' AND <TABLE>-TIME > '080000' ).

" Do nothing
  ELSE.
" Do something   
  ENDIF.
ENDSELECT.

Max

Read only

0 Likes
409

THANk's.