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 write query to Delete the records in child table and corresponding records in parent table
What is an indexing strategy?
What are the differences between ms sql server & oracle?
What is the use of DBCC commands?
What are policy management terms?
How do I view a procedure in sql server?
What is de-normalization and when do you do it?
what are the joins,primary key,foriegn key, candidate key, super key and expain them?
What is a trace frag? Where do we use it?
What happens if you add a new index to large table?
Can anyone explain difference between Database, Data warehouse and Data mart with some example?````
which query u can write to sql server doesn't work inbetween 7.00PM to nextday 9.00AM