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 are the advantages of running a database in archive log mode?
Display the records between two range?
What are the numeric comparison operations?
How will you write a query to get a 5th rank student from a table student_report?
What is a heap related to database ?
1 Answers TCS, University of Edinburgh,
what is integrity constrains?
How do you find current date and time in oracle?
how to find find & delete duplicate rows from two different tables?
How to delete a column in an existing table in oracle?
What is a snapshot log?
What is the difference between PFILE and SPFILE in Oracle?
Can a Tablespace hold objects from different Schemes ?