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.
Answers were Sorted based on User's Feedback
Answer / venkataselvaraj@gmail.com
SELECT PRODUCT_ID, PRICE FROM PRODUCTS
GROUP BY PRODUCT_ID, PRICE
HAVING COUNT(*) = 1;
| Is This Answer Correct ? | 0 Yes | 0 No |
What is pragma autonomous transaction in oracle?
what is meant by magic query
How to create a new oracle data file?
What is a subquery in oracle?
what is the syntax of SELECT command?
What are various constraints used in SQL?
how to see the data (in unix) using dataset in datastage?
What is a sub query? What are its various types?
What is the use of aggregate functions in oracle?
can you call insert/update/delete in select statements. If yes how? If no what is the other way?
Explain a synonym?
Can we connect to ORACLE db using Windows Authentication?