4 Please write a querry to find repeated numbers in the
following table.
Table Name: Table1
Field1
10
15
20
15
10
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / pritesh
SELECT field1
FROM table1
GROUP BY field1
HAVING COUNT(field1)>1;
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / murtaza
SELECT COUNT(FIELD1)AS "NO OF OCCURENCES"
FROM TABLE1
WHERE FIELD1 BETWEEN 10 AND 15
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / anjali
select count (distinct columnname)
from tablename
Is This Answer Correct ? | 1 Yes | 5 No |
Answer / vivek
Select distinct Field1 from Table1 where Field1 between 10
and 15
Is This Answer Correct ? | 2 Yes | 17 No |
How to handle errors in Stored Procedures. I want to display a message to the user in the .aspx page that is calling a stored procedure in it's code behind. please help me.
Explain about nested stored procedure?
Explain indexed views and partitioned view with their syntax.
Can I remove the default constraint columns in SQL SERVER?
What is for xml in sql server?
What is join and name different type of joins?
What command would you use to add a column to a table in sql server?
What are the advantages of sql stored procedure?
Can sql servers link to other servers?
What do you mean by subquery?
What is lock escalation and what is its purpose?
How to return the second 5 rows in ms sql server?