SELECT * FROM Product COMPUTE MAX(Qty)
Error is :
Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'COMPUTE'.
SQl query in 2012 gives error
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted May 6, 2015, 11:56 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted May 7, 2015, 12:56 AM EDT
I think your syntax is wrong..
Ref : https://technet.microsoft.com/en-us/library/ms181708(v=sql.105).aspx
Nanhe SiddiqueRank #1,103 · 1.7K reputationPosted May 7, 2015, 2:46 AM EDT
compute feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted May 7, 2015, 12:45 AM EDT
compute max quntity
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted May 7, 2015, 12:59 AM EDT