Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • RE: Last record for ID

    Thank you Mr. Jo Patyn  and Mr. Sameer Raval  for your information. It worked...

    Thank You very much

     

    Saiju

     

  • RE: Last record for ID

    Your query is working but i cannot display the other fields of the grouped items.

    Table Structure

    Table name: Stock

    Co_id char

    open   float

    High  float

    Low float

    Close float

    date1   date 

     

    Eg:

    Co_id  date1         Open  High   Low 

    101   10/01/2005  101    102   102

    101   10/02/2005  201   ...

  • RE: Last record for ID

    Your query is working but i cannot display the other fields of the grouped items.

    Table Structure

    Table name: Stock

    Co_id char

    open   float

    High  float

    Low float

    Close float

    date1   date 

     

    Eg:

    Co_id  date1         Open  High   Low 

    101   10/01/2005  101    102   102

    101   10/02/2005  201   ...

  • RE: Last record for ID

    Your query is working but i cannot display the other fields of the grouped items.

    Table Structure

    Table name: Stock

    Co_id char

    open   float

    High  float

    Low float

    Close float

    date1   date 

     

    Eg:

    Co_id  date1         Open  High   Low 

    101   10/01/2005  101    102   102

    101   10/02/2005  201   ...

  • RE: Last record for ID

    if more than two fields then how can i group

    i tried with the below query it giving cartition product result

    "Select data1,data2, max(datecol) as datecol from dbo.YourTable group by data1.data2"

  • RE: Last record for ID

    Hello RGR'us,

     It is a good idea thank you very much

     

    Saiju Thomas

     

  • RE: I want to group the record co_id in the following way

    Thank You Very much ......

    It is working

    Saiju Thomas

     

Viewing 7 posts - 1 through 7 (of 7 total)