Hi! Can anyone know the result of this query: SELECT COALESCE(MAX(ID),0) + 1 FROM Table123

Recommended Answers

It's the highest id or zero, then plus one.

Jump to Post

All 3 Replies

It's the highest id or zero, then plus one.

tnx, I up-voted your reply, should I also checked your answer as corect somewhere?

should I also checked your answer as corect somewhere?

No. We do not have that feature.

Below the reply box is a button "Mark Question Solved" which you can use when your question has been answered.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.