Hello. I have a table (auctions) that i store details about auctions. In this table i have two fileds. Maxbid and bidstart. I want to create an sql statement that will do the following. I want to select all the records and print them ordered by their maxbid. But if the maxbid is 0 then to take the price of bidstart instead. Is this possible?
something like
select * from auctions order by maxbid (but where you find that maxbid is 0 then take the price of the bidstart)
something like
select * from auctions order by maxbid (but where you find that maxbid is 0 then take the price of the bidstart)