Hi i am wondering if this is possible with SQL:
Record Nr/Field A/Field B/Field C/Field D
1/100/200/500/1000
2/50/300/250/500
3/50/100/1000/500
Is there any possibility with SQL to select all data from this table where the following criteria are used:
Field A highest ? Yes: take this record
No: Field B highest ? Yes: take this record
No: Field C highest ? Yes: take this record
No: Field D highest ? Yes: take this record
This will result in record 1 to be taken (Field A is highest)
Other data:
Record Nr/Field A/Field B/Field C/Field D
1/100/200/500/1000
2/100/200/750/500
3/50/100/1000/500
This will result in record 2 to be taken (Field C is higest)
Any help is appreciated, Thanks
