Skip to content
Advertisement

I want this query in Sequelize form

I am getting the output in RAW SQL but I am unable to do with SequelizeJS

Advertisement

Answer

I assume the relationship of these tables like this:

  • tbl_a and tbl_b: One-To-One relationship
  • tbl_a and tbl_c: One-To-One relationship

sequelize version: "sequelize": "^5.21.3"

The exeuction results:

The generated SQL by sequelize is:

data records in the database:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement