Mondeo
Well-known member
I have this simple table
ID Name Quote
1 Smith 244.67
2 Jones 178.89
3 John 212.56
I need to select the lowest quote, so ive got
SELECT MIN(quote) FROM quotes
Which returns 178.89 as expected.
BUT...
I also need the record ID and customer name
SELECT MIN(quote),id,name throws an error.
How can I do this
Thanks
ID Name Quote
1 Smith 244.67
2 Jones 178.89
3 John 212.56
I need to select the lowest quote, so ive got
SELECT MIN(quote) FROM quotes
Which returns 178.89 as expected.
BUT...
I also need the record ID and customer name
SELECT MIN(quote),id,name throws an error.
How can I do this
Thanks