kumari070481
Programmer
Hi All,
I have 5 primary keys. And one of the primary key is date. I have write a sql in such way that I have to extract the date which is max( i mean recent dates).And extract the data for remaining keys.
I am writing the sql qury in this way:
SELECT A1,A2,A3,MAX(DATE),A4 FROM T1
WHERE A1=?,A2=?,A3=?,A4=?
GROUP BY A1,A2,A3,A4
but this query returns one row. I want all the row which as this date in it. Can anyone suggest how can i do that ..
Thank you..
I have 5 primary keys. And one of the primary key is date. I have write a sql in such way that I have to extract the date which is max( i mean recent dates).And extract the data for remaining keys.
I am writing the sql qury in this way:
SELECT A1,A2,A3,MAX(DATE),A4 FROM T1
WHERE A1=?,A2=?,A3=?,A4=?
GROUP BY A1,A2,A3,A4
but this query returns one row. I want all the row which as this date in it. Can anyone suggest how can i do that ..
Thank you..