Sir,
I want to run a query on a set of records like this
Suppose ABC Co shows following sale records in first statement:
ID NO Name Sale Amt Tax Amt log date
100 abc 1000 10 12/09/2011
101 def 5000 50 12/09/2011
102 pqr 7000 70 12/09/2011
In 2nd statement the sale is:
101 abc 1000 10 20/09/2011
102 def 7000 70 20/09/2011
104 xyz 8000 80 20/09/2011
In 3rd statement the sale is:
101 def 4000 40 30/09/2011
102 pqr 7000 70 30/09/2011
104 xyz 9000 90 30/09/2011
All data are in the same table. I want to extract the set of data relating to the last date i.e 30/09/2011 only. The table contains suppose n number of companies having many such sets. The query should generate data for n companies corresponding to the last for each company. Pl. help.
I want to run a query on a set of records like this
Suppose ABC Co shows following sale records in first statement:
ID NO Name Sale Amt Tax Amt log date
100 abc 1000 10 12/09/2011
101 def 5000 50 12/09/2011
102 pqr 7000 70 12/09/2011
In 2nd statement the sale is:
101 abc 1000 10 20/09/2011
102 def 7000 70 20/09/2011
104 xyz 8000 80 20/09/2011
In 3rd statement the sale is:
101 def 4000 40 30/09/2011
102 pqr 7000 70 30/09/2011
104 xyz 9000 90 30/09/2011
All data are in the same table. I want to extract the set of data relating to the last date i.e 30/09/2011 only. The table contains suppose n number of companies having many such sets. The query should generate data for n companies corresponding to the last for each company. Pl. help.