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 difference between sharding and partitioning?
What is the difference between formal parameters and actual parameters?
Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?
How to sort the query output in oracle?
How to start a new transaction in oracle?
How to check the server version in oracle?
How to write an inner join with the where clause in oracle?
What do you mean by a tablespace?
Explain integrity constraints?
Explain an integrity constrains?
How to retrieve data from an explicit cursor?
How to open a cursor variable?
How to invoke the data pump import utility?
How to update values on multiple rows in oracle?
What is oracle instant client?