Write a query to delete duplicate records in SQL SERVER

Answer Posted / pavan kumar

Mr. Chandran, I tried your query but the system is throwing
error message as 'Incorrect syntax near the
keyword 'group''.

Is This Answer Correct ?    28 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Clustered and Non-Clustered Index?

604


Do you know how to send email from database?

556


What command do we use to rename a db, a table and a column?

508


Explain how to integrate the ssrs reports in application?

522


Write an sql query to find first weekday of the month?

489






When to use Inner join & when to use subquery?

581


How exceptions can be handled in sql server programming?

549


What is self join in sql server joins?

562


Can We Use Data-grids For Our Report In Ssrs?

147


What is application role in sql server database security? : sql server security

558


what data regions are and what are the different data regions?

101


What are the restrictions that views have to follow?

565


What is a not null constraint?

600


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

2020


1.what are diff types of joins , and explain diff between cross join and full outer join 2.diff types of views 3. Diff types of index 4. What is diff b/w stores procedure and function procedure 5.diff between double and int in SQL 6.diff between char and varchar in SQL. 7.Oracle or SQL whice you will preferred and why.

1099