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



I have a table like this Table Name:Products Productid Price 1 10 1 10 2 ..

Answer / siri

select * from table name where price=20

Is This Answer Correct ?    3 Yes 0 No

I have a table like this Table Name:Products Productid Price 1 10 1 10 2 ..

Answer / pkunde

SELECT PRODUCTID, PRICE, COUNT(*) AS CNT FROM PRODUCT
GROUP BY PRODUCTID,PRICE HAVING CNT = 1

Is This Answer Correct ?    0 Yes 0 No

I have a table like this Table Name:Products Productid Price 1 10 1 10 2 ..

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

Post New Answer

More Oracle General Interview Questions

what are bitmap indexes? How does they work?

0 Answers  


What is a Schema ?

6 Answers  


How to convert dates to characters in oracle?

0 Answers  


Oracle

0 Answers   ABC, Genpact, HUI, Oracle,


What to do if dba lost the system password?

0 Answers  






Why do we use coalesce function in oracle?

0 Answers  


How to speed up webrick?

0 Answers  


Explain the difference between a procedure and a function?

0 Answers  


How data locks are respected in oracle?

0 Answers  


What is save point in oracle database?

0 Answers  


What is Public Database Link ?

1 Answers  


How to create an initialization parameter file?

0 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)