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 write a query with an inner join in oracle?
Briefly explain what is literal? Give an example where it can be used?
How to get a list of all background sessions in the database?
What is the quickest way to fetch the data from a table?
What is the difference between postgresql and oracle?
What is an oracle table?
What is enter substitution variable in oracle?
Please explain compound trigger in oracle?
Please explain joins in oracle?
What is the difference between PFILE and SPFILE in Oracle?
How to export data with a field delimiter?
when we are importing items in inventory, showing errors, Oracle support suggested us for running scripts & also suggested if we run scripts, iprocurement applicaation if is there it will show shared and if we go in future for iprocurement, it wont work. So kinldy suggest any functional solution.
What is ADDM Advisor in Oracle?
How do I spool in oracle?
How to use attributes of the implicit cursor in oracle?