Say I have columns ‘a’ and ‘b’. A record is deemed ‘ready’ if !a || b. How can I sort by this ready condition? I’m really rusty with SQL and I can’t recall what would have been the best way to do this. My guess is that I would be able to add a column with the boolean result and then sort by that column, but I’ve tried searching and can’t seem to find what I’m looking for.
Say I have columns ‘a’ and ‘b’. A record is deemed ‘ready’ if !a
Share
1 Answer