Monday, April 24, 2023

Write a query to Update the Male <->Female in SQL server

 update tableA set Gender = (case gender ='Male' then 'Female' else 'Male' end)

No comments:

Post a Comment

How to use SQL pagination using LIMIT and OFFSET

  How to extract just a portion of a larger result set from a SQL SELECT. LIMIT n is an alternative syntax to the FETCH FIRST n ROWS ONLY. T...