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



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

Answer / 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

More Dot Net General Interview Questions

Explain about Behavioral design pattern?

1 Answers  


How many design patterns can be created in .net?

1 Answers  


How do you trigger the paint event in system.drawing?

1 Answers  


What is the difference between a namespace and assembly name in .net?

1 Answers  


What?s typical about a Windows process in regards to memory allocation?

1 Answers  


Tell us the differences between an interface and an abstract class in .net?

1 Answers  


Why inheritance is important?

1 Answers  


What is .net environment?

1 Answers  


What is Polymorphism? How does VB.NET/C# achieve polymorphism?

1 Answers  


What is Nothing permission set in .Net

1 Answers  


what user controls are and what server controls are and the differences between the two.

1 Answers  


Difference between value type & reference types ?

1 Answers  


Categories