Du behöver bara lägga till GROUP BY-satsen, så här:
SELECT
read_pub_id,
read_artc_id,
count(read_artc_id) as times_read
FROM
reads_t
GROUP BY
read_pub_id,
read_artc_id;
:)
Du behöver bara lägga till GROUP BY-satsen, så här:
SELECT
read_pub_id,
read_artc_id,
count(read_artc_id) as times_read
FROM
reads_t
GROUP BY
read_pub_id,
read_artc_id;
:)