I want to concatenate results of 2 Select Queries from the same table;
my table :
CREATE TABLE "books" (
"id" INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE,
"book_title" TEXT UNIQUE,
"Book_desc" TEXT,
"category" TEXT)
The first Query :Select * from books where id = 2
The second Query :Select * from books where id != 2 order by random() limit 3
I want the the id=3 to be the first row in results, I tried so many Union queries but It didn't work.
Here is what I did so far :