4 Please write a querry to find repeated numbers in the
following table.
Table Name: Table1
Field1
10
15
20
15
10
Answer Posted / lalit pandey
SELECT field1,count(field1) "Number of Occurrence"
FROM table1
GROUP BY field1
HAVING COUNT(field1)>1;
| Is This Answer Correct ? | 37 Yes | 0 No |
Post New Answer View All Answers
What is the difference between Stored Procedures and triggers?
Difference Between ORDER BY Clause and GROUP BY Clause in SQL?
We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?
how to create a scrollable cursor with the scroll option? : Sql server database administration
What is the security principal at the server level that represents your session?
Can we use where and having clause together?
code to create procedure for taking databse backup in sql server or i have the query for it but what it's query returns means i want to show on my jsp that the databse backup has been taken on the basis of that return value.does it returns 0 or 1.wat is the code for that
Explain features and concepts of analysis services?
What is difference between index seek vs. Index scan?
What is index fragmentation in ms sql server?
What is function of ROLLUP ?
What's new in sql management studio for sql server? : sql server management studio
What is the default value of an integer data type in sql server 2005?
Explain active/passive and active/active cluster configurations?
How to verify a login name with sqlcmd tool?