http://img100.imagesha ck.us/my.php?image=sq loi8.png
(please refer this first before proceeding)
I want a SQL query that satisfies the following results:-
Question# I want to count the rows where the client + server IP remain same over a particular # of entries like 10,20 and etc.
E.g 1-4 is a pattern where both client and server ip have remain same. I want a count of that.
Sub-Question# Secondly, i wanna retrieve only the most recent record .The pattern which was prevalent in the time b/w 12:22 to 1:00 is irrelevent i want the next query to execute with the current time.
I used SQLdata reader but it is being unable to retrieve
me the exact count i require due to inherent restriction that comes
with the scope of this method. I cannot use it DataGrid because
im using a command application(dos etc).
Please help me get over this..Thanks.
(please refer this first before proceeding)
I want a SQL query that satisfies the following results:-
Question# I want to count the rows where the client + server IP remain same over a particular # of entries like 10,20 and etc.
E.g 1-4 is a pattern where both client and server ip have remain same. I want a count of that.
Sub-Question# Secondly, i wanna retrieve only the most recent record .The pattern which was prevalent in the time b/w 12:22 to 1:00 is irrelevent i want the next query to execute with the current time.
I used SQLdata reader but it is being unable to retrieve
me the exact count i require due to inherent restriction that comes
with the scope of this method. I cannot use it DataGrid because
im using a command application(dos etc).
Please help me get over this..Thanks.
Comment