I was able to achive result earlier before posting. However, for the other results I was facing problem in compare
RS1: FName (Field Name) Tom Dick Harry Nancy Bob RS2: FName (Field Name) Jack Dick Bob Jill Harry Both have same # of records but values are different. --- In [EMAIL PROTECTED], Paul Manzotti <[EMAIL PROTECTED]> wrote: > Mahesh Mohite wrote: > > >I have got these 2 Recordsets after querying them separately from the > >ASP code. Now using this ASP code I have to compare them and display > >either of the following results > > > >1) Result: FName field in RS1 with 4 Records is matching with FName > >field in RS2 with 4 Records. > > > >2) Result: FName field in RS1 with 4 Records is not matching as there > >are 5 Records found in FName field in RS2. > > > >3) Result: FName field in RS1 with 4 Records is not matching with FName > >field in RS2 with 4 Records as one of the records is not matching. > > > >I hope I am making myself clear. > > > > > The order to process them in is 2, 3, 1 (I added numbers to the results > above). As Shawn said, put both recordsets into separate arrays. Get the > upper Boundary for each (UBound), compare them. If they are different, > then you have result 2. If the data passes that test, you're just going > to have to compare each pair of rows to see if they are the same (so > make sure that you use the ORDER BY clause of the SQL statement to > ensure that if you do have two matching recordsets, the data is in the > same order for both of them). If this test is falied, you have result 3, > otherwise you have result 1. > > I hope that this is clear. > > manzo ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/17folB/TM --------------------------------------------------------------------~-> --------------------------------------------------------------------- Home : http://groups.yahoo.com/group/active-server-pages --------------------------------------------------------------------- Post : [EMAIL PROTECTED] Subscribe : [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] --------------------------------------------------------------------- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/active-server-pages/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
