adspace


Sql Queries: A Table will be given
Omiting Duplicate rows and adding a new column

Answer Posted / Gaurav Prakash

Here's an example of removing duplicate rows from a table using the DISTINCT keyword in SQL:n```sqlnSELECT DISTINCT column1, column2 FROM your_table; n```nTo add a new column, you can use the CAST or CONVERT functions to convert an existing column to a specific data type. For example, if you want to create a new column named 'NewColumn' with the first letter in uppercase from the existing 'column1':n```sqlnALTER TABLE your_table ADD NewColumn AS UPPER(column1); n```

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the .net syntax for 'while loop'?

1143