N1QL merge(First check the data is available,If data is not available then insert a data)

How to create merge NQL query…inserts a record to a bucket, if the record does not exist or, if the record already exists, updates the existing record.

i want sample merge Query…

Hi @ganeshcsea2013,

You should see sample MERGE queries in the documentation.

And from Google search: https://www.google.com/?gws_rd=ssl#q=n1ql+merge