Getting Started with Adobe After Effects - Part 6: Motion Blur
Ask
Ask questions, discuss or help others by answering
Related Posts · View All
SQL Server 142
TSQL 76
SSRS 70
SSIS 66
XML 54

Top Categories · View All
SQL Server 142
TSQL 76
SSRS 70
SSIS 66
XML 54

how to retrive specific rows in sql server

Jan 20 2012 12:00AM by sirknth   

i have table called test it contains number of columns. there are some columns named loadnum,foh,roh,date. for each date it has 10 loadnumbers, each load contains 10 rows with load number1, another 10 rows load number2, for load number 1 foh and roh should be the same, but there are some cases where foh and roh is different. so i need to retrierve these different rows. can you please help me how to do that

Submitted under: Microsoft SQL Server · TSQL ·  ·  · 


sirknth
205 · 1% · 226

4 Replies

  • Please post some sample data with expected result so that it is easy to understand what you want

    commented on Jan 24 2012 12:07AM
    Madhivanan
    3 · 39% · 12472
  • Thank you for replying. here is the sample data

    Terminal    VIN       Loadnum      FOH      ROH     Date
    
    commented on Jan 24 2012 6:00AM
    sirknth
    205 · 1% · 226
  • Thank you for replying. here is the sample data

       Terminal           VIN       Loadnum                  FOH       ROH           Date
         60                a            1                    38        48         20111004
         60                b            1                    38        48         20111004
         60                c            1                    38        48          20111004
         60                d            1                    32         48         20111004
         60                e            1                    38         40         20111004
         60                f            2                    41         31         20111004
         60               g             2                    41          31         20111004
         60               h             2                    40          31         20111004
         60               i              2                    41          31         20111004
    

    like this i have number of data for 10 dates, each date contains 10 loads, each load contains max 9 record. but if you look at load 1, 4th record foh is different and 5th record roh is different, i want these different records as an output. please help

    commented on Jan 24 2012 6:08AM
    sirknth
    205 · 1% · 226
  • Is this related to this?

    http://beyondrelational.com/ask/madhivanan/questions/1269/how-to-get-the-max-record-from-two-tables.aspx

    commented on Jan 30 2012 2:01AM
    Madhivanan
    3 · 39% · 12472

Your Reply


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]