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 does sharding mean?
what is the uses of cusor
Explain the use of online redo log files in oracle.
How to execute the package in oracle?
What is the relationship among database, tablespace and data file?
What is cursor
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.
What is rowid and rownum in oracle?
Provide an example of a shell script which logs into SQLPLUS as SYS, determines the current date, changes the date format to include minutes & seconds, issues a drop table command, displays the date again, and finally exits.
What is meant by joins? List out the types of joins.
What is a schema in oracle?
What is a data dictionary and how can it be created?