Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. SQL Server
  3. Question
SQL Server

How to UPDATE with join sql server with GROUP BY?

Asked by Bhushan Bhad Apr 22, 2021 921 views 1 answer
Share

About this question

Here is a SELECT query of SELECT b.id, MIN(IFNULL(a.views,0)) AS counted FROM table1 a JOIN table2 b ON a.id=b.id GROUP BY id HAVING counted> How can I turn this query to UPDATE as UPDATE b.number = counted How to update with join sql server? Thanks in advance!


Your answer

1 Answer

More SQL Server discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest SQL Server Blogs

Guides, tips and career advice on SQL Server from JanBask experts.