Ok I have a simple SELECT * FROM table
The table looks like :
Code | date | credit
5546 | 01/01/2004 | C
6875 | 12/25/2003 | C
9378 | 12/30/2003 | C
2254 | 12/30/2003 | D
9675 | 01/15/2004 | D
8574 | 12/15/2003 | D
What I need is to sort my record differently depending on a value of the credit field ! Ex: If the field credit is C I need to sort the records by code and if the credit field is D I need to sort by date. I don't know if it's even possible but any suggestion would be greatly appreciated !!
The table looks like :
Code | date | credit
5546 | 01/01/2004 | C
6875 | 12/25/2003 | C
9378 | 12/30/2003 | C
2254 | 12/30/2003 | D
9675 | 01/15/2004 | D
8574 | 12/15/2003 | D
What I need is to sort my record differently depending on a value of the credit field ! Ex: If the field credit is C I need to sort the records by code and if the credit field is D I need to sort by date. I don't know if it's even possible but any suggestion would be greatly appreciated !!