Unix Technical Forum

Re: SQL query

This is a discussion on Re: SQL query within the Sybase forums, part of the Database Server Software category; --> search google for "characteristic functions" "AK" <ak.fuan@uk.mizuho-sc.com> wrote in message news:51586da.0307040545.26f3cf0e@posting.google.co m... > I have got a table which ...


Go Back   Unix Technical Forum > Database Server Software > Sybase

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 02:40 PM
nnnnnn
 
Posts: n/a
Default Re: SQL query

search google for "characteristic functions"

"AK" <ak.fuan@uk.mizuho-sc.com> wrote in message
news:51586da.0307040545.26f3cf0e@posting.google.co m...
> I have got a table which contains the following column and data.
>
> DateField Amount
> 01/01/03 5
> 02/01/03 10
> 03/01/03 10
> 04/01/03 10
> 05/01/03 13
> 06/01/03 5
> 07/01/03 5
> 08/01/03 30
> 09/01/03 10
> 10/01/03 10
> 11/01/03 30
>
> How do I retrieve the following values without the use of cursor or
> doing row based processing.
>
> DateField Amount
> 01/01/03 5
> 04/01/03 10 (the max date for this value before it changes to
> 13.)
> 05/01/03 13
> 07/01/03 5 (the max date for this value before it changes to
> 13.)
> 08/01/03 30
> 10/01/03 10 (the max date for this value before it changes to
> 13.)
> 11/01/03 30
>
>
> Regards
> AK



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:36 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com