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 do I uninstall oracle client from windows?
What is a oracle database?
Which are the five query types available in oracle?
What is the difference between hot backup and cold backup in oracle? Tell about their benefits also.
Which is better Oracle or MS SQL? Why?
What is the simplest tool to run commands on oracle servers?
How to connect the oracle server as sysdba?
Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.
What is a table index in oracle?
In the oracle version 9.3.0.5.0, what does each number shows?
What is the exact use of Collections?
How to join two tables in a single query using oracle?
How to login to the server without an instance?
How to bring a tablespace online?
Why do you use stored procedures and state some of its disadvantages?