Home » SQL & PL/SQL » SQL & PL/SQL » sql join question
sql join question [message #4360] Mon, 02 December 2002 17:55 Go to next message
ravi_kiran99
Messages: 8
Registered: December 2002
Junior Member
Hi,
I need help with a sql (self join) query. Thanks for all your help.

A table T1 has columns C1,C2,C3
I want to perform a query to get all the rows where value of C2 is equal to someother value of C2 in the same table in a different row and C3='N'

C1 C2 C3

sam 100 Y
tom 200 N
john 300 N
sam 100 N

I want to be able to select the 4th row from the above data because for this row (value of C2 is same as value of C2 in the first row and C3=N )
Re: sql join question [message #4361 is a reply to message #4360] Mon, 02 December 2002 18:42 Go to previous message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
See answers in the SQL forum.
Previous Topic: Cursor in PL/SQL
Next Topic: Cursor in SQL Plus
Goto Forum:
  


Current Time: Wed May 15 16:14:57 CDT 2024