Argomenti votati

Argomenti su cui si è votato

Restituisce l’argomento (o gli argomenti) e la data di creazione dei voti correnti e archiviati per un dato utente

-- [params]
-- user_id :user

SELECT tvv.topic_id,
       tvv.created_at::date AS "Votato il",
       CASE WHEN tvv.archive = TRUE THEN 'Archiviato' ELSE 'Corrente' END AS "Corrente?"
FROM topic_voting_votes tvv
WHERE tvv.user_id = :user
ORDER BY tvv.archive, tvv.created_at
1 Mi Piace