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



4 Please write a querry to find repeated numbers in the following table. Table Name: Table1 F..

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

4 Please write a querry to find repeated numbers in the following table. Table Name: Table1 F..

Answer / pritesh

SELECT field1
FROM table1
GROUP BY field1
HAVING COUNT(field1)>1;

Is This Answer Correct ?    8 Yes 0 No

4 Please write a querry to find repeated numbers in the following table. Table Name: Table1 F..

Answer / arun kumar

SELECT Field1 FROM Table1 WHERE Field1%5=0

Is This Answer Correct ?    1 Yes 3 No

4 Please write a querry to find repeated numbers in the following table. Table Name: Table1 F..

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

4 Please write a querry to find repeated numbers in the following table. Table Name: Table1 F..

Answer / anjali

select count (distinct columnname)
from tablename

Is This Answer Correct ?    1 Yes 5 No

4 Please write a querry to find repeated numbers in the following table. Table Name: Table1 F..

Answer / phani

select distinct field1 from table1

Is This Answer Correct ?    0 Yes 5 No

4 Please write a querry to find repeated numbers in the following table. Table Name: Table1 F..

Answer / vivek

Select distinct Field1 from Table1 where Field1 between 10
and 15

Is This Answer Correct ?    2 Yes 17 No

Post New Answer

More SQL Server Interview Questions

How to write query to Delete the records in child table and corresponding records in parent table

11 Answers   Semantic Space,


What is an indexing strategy?

0 Answers  


What are the differences between ms sql server & oracle?

0 Answers  


What is the use of DBCC commands?

4 Answers   NA,


What are policy management terms?

0 Answers  






How do I view a procedure in sql server?

0 Answers  


What is de-normalization and when do you do it?

3 Answers  


what are the joins,primary key,foriegn key, candidate key, super key and expain them?

6 Answers   Polaris,


What is a trace frag? Where do we use it?

0 Answers  


What happens if you add a new index to large table?

0 Answers  


Can anyone explain difference between Database, Data warehouse and Data mart with some example?````

4 Answers  


which query u can write to sql server doesn't work inbetween 7.00PM to nextday 9.00AM

5 Answers   Wipro,


Categories