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 |
What is executereader?
Is it possible we can connect our SQL database to GUI application? If it is yes than how tell me the explanation
Can Having clause be used without Group by clause?
6 Answers CarrizalSoft Technologies, CSC, CTS,
How can I create a table from another table without copying any values from the old table?
How do I make a resultset scrollable?
please tell me the query to get details of the employee having the second largest salary
Explain datetime2 data type in sal server 2008?
explain what is raid and what are different types of raid configurations? : Sql server database administration
What is a table called, if it does not have neither Cluster nor Non-cluster Index?
What is difference between primary key and foreign key?
What is the guest user account in sql server? What login is it mapped to it? : sql server security
Explain cdc and sql injection?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)