I do a query in the following way:
SELECT * FROM frequency WHERE docid = '10398_txt_earn' AND count = 1
UNION
SELECT * FROM frequency WHERE docid = '925_txt_trade' AND count = 1;
With a correct output
docid term count
10398_txt_earn 100 1
10398_txt_earn 11340 1
10398_txt_earn 12 1
10398_txt_earn 1204 1
10398_txt_earn 198485 1
10398_txt_earn 20 1
10398_txt_earn 27 1
10398_txt_earn 28 1
And now I want to compute the number of rows in the result with the COUNT() operator but I don't know to apply it. Thanks in advance
Ubuntu14.04 SQLite with XAMPP