Issue in using Date part in SQL query
Hi,
I have a SQL table “Currency_exchange_rates” that has fields Currency_code, Currency_date and Currency_rate. The table consists of values in random order. I want it the Date field to be ordered according to the currency code.
Example in the table is:
Currency_Code Currency_Date Currency_Rate
USD 11-Jan-11 2.00
USD 27-Feb-11 2.17
INR 10-May-11 45.43
INR 18-Jun-11 42.54
I want it to become:
USD 11-Jan-11 2.00
USD 12-Jan-11 2.00
USD 13-Jan-11 2.00
INR 10-May-11 45.43
I tried using the avg functions on date range. But no luck. Please suggest some codes to get this output.
Thanks.








