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 an oracle and why it is used?
How to write date and time literals in oracle?
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
What is hash cluster in oracle?
Explain a segment?
What view(s) do you use to associate a users SQLPLUS session with his o/s process?
How do you bind variables in oracle?
How to connect to oracle using service name instead of sid?
How to update a table row with a record?
What is save point in oracle database?
How to create an initialization parameter file?
How would you best determine why your MVIEW couldnt FAST REFRESH?
How to write an inner join with the where clause in oracle?
What is ASM (Automatic Storage Management) in Oracle?
How do I uninstall oracle client from windows?