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
How to convert characters to dates in oracle?
Is it possible to insert comments into sql statements return in the data model editor ?
Is there any function in oracle similar like group_concat of mysql?
What is the data type of dual table?
What is a data lock in oracle?
What is the disadvantage of User defind function?
Give the various exception types.
Name the various constraints used in oracle?
How can you use check constraints for self referential integrity?
How to define an external table with a text file?
Is java required for oracle client?
How view is different from a table?
How do we display rows from the table without duplicates?
How do I manually create a database in oracle?
What is oracle data type?