update tableA set Gender = (case gender ='Male' then 'Female' else 'Male' end)
Subscribe to:
Post Comments (Atom)
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...
-
Master Database Files (MDF) and Log Database Files (LDF) are the primary files created for each database in the SQL Server environment. M...
-
Select Appropriate Data type I think the selection of the data type for a column can have the most important role in database performanc...
-
Difference Between Primary key & Foreign key Primary Key Foreign Key Helps you to uniquely identify a record in the table. It is...
No comments:
Post a Comment