Give SQL Query for this question?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6

Thread: Give SQL Query for this question?

Hybrid View

  1. #1
    Join Date
    Sep 2011
    Posts
    3

    Question Give SQL Query for this question?

    ID Close
    ---- ------------
    1 27718
    2 27741
    3 27661
    4 27626
    5 27647
    6 27651
    7 27685
    8 27733
    9 27770
    10 27797
    11 27893
    12 27846
    13 27837
    14 27853
    15 27835
    16 27829
    17 27881
    18 27890
    19 27868
    20 27827
    21 27843
    22 27839
    23 27828
    24 27829
    25 27799
    26 27760
    27 27779

    How i can get average of close columns from id number 1 to all like 1 to 5, 2 to 6, 3 to 7, 4 to 8, 5 to 9 etc... The result should be automatically generated for further id's.

    Anyone Please give me a SQL query ..Table Name is " sma ".. ( or ) give me in C# program..
    Please do need full.

  2. #2
    DataMiser is offline Super Moderator Power Poster
    Join Date
    Jul 2008
    Location
    WV
    Posts
    4,830

    Re: Give SQL Query for this question?

    Good luck, most here are not in the habit of writing code for you. Try it yourself and when you have a question ask away but do not expect others to do your work for you.
    Always use [code][/code] tags when posting code.

  3. #3
    Join Date
    Jan 2006
    Location
    Chicago, IL
    Posts
    14,982

    Re: Give SQL Query for this question?

    Seems like a bad design to begin with. Rather than try to build the impossible, figure out what IS possible, and break it into smaller steps
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  4. #4
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: Give SQL Query for this question?

    This LINK may help. Then all you have to do is write the Query or C# code.
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

  5. #5
    Join Date
    Sep 2011
    Posts
    3

    Re: Give SQL Query for this question?

    thanks for ur reply......but still i did not get idea about the query.....so please give me a related query...for this.....

    Help me

  6. #6
    Join Date
    May 2007
    Location
    Denmark
    Posts
    623

    Re: Give SQL Query for this question?

    Quote Originally Posted by epraveen View Post
    Help me
    ... No.

    No one here will (or should) do your work for you. Try it yourself, and post here when you run into problems. Either that, or stop posting.
    It's not a bug, it's a feature!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center