I have a table like this
Table Name:Products
Productid Price
1 10
1 10
2 20
3 30
3 30
But i want to output like this.
productid price
2 20.
please replay me.
Answer Posted / pkunde
SELECT PRODUCTID, PRICE, COUNT(*) AS CNT FROM PRODUCT
GROUP BY PRODUCTID,PRICE HAVING CNT = 1
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the maximum limit on the number of columns in a table?
Is a rollback possible to any savepoint?
What happens if you use a wrong connect identifier?
what are steps for interface? where is exchange rate defined in which table?
What is MTTR advisor in Oracle?
What are the four Oracle system processes that must always be up and running for the database to be useable?
How can I get column names from a table in oracle?
How to use null as conditions in oracle?
How to delete all rows a table in oracle?
What is meant by joins?
What are the uses of a database trigger?
Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).
What is an Oracle Instance?
How to name query output columns in oracle?
What is difference between sid and service name in oracle?