I have an table with records and this table has an row called category. I have inserted to many articles and i want to select only to articles from each category.
I tried to do something like this: i created an view: create view limitrows as select * from tbl_artikujt order by articleid desc limit 2
and than i created this query:SELECT *
FROM tbl_artikujt
where artikullid IN
(select artikullid
from limitrows
order by category DESC)
order by category DESC;
But this is not working and is giving me only two records ?