Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

622
Views
How can i convert SQL (using postgreSQL) to sequelize query in nodejs?

I have a SQL query (using postgreSQL) that I need to write as a sequelize query in node.js.

Query:

select rd.id AS question_id, count(1) as viewCount,max(vl.timestamp) AS last_viewed, cu.email, cu.first_name, cu.last_name, rd.name as CardName, rd.description as DashboardDescription 
from core_user cu 
INNER JOIN view_log vl on vl.user_id = cu.id 
INNER JOIN report_card rd on rd.id  = vl.model_id
where vl.model='card' 
GROUP BY cu.email, cu.first_name, cu.last_name, rd.name, rd.description, rd.id 
ORDER BY last_viewed DESC```
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!