Can anyone tell correct my following query.
Delete from SW_S_TEMP_GUIDS
where uid in (Select a.uId
From SW_S_USER_TABLE a, SW_S_USER_SERVER_MAP b
Where b.o = ?
And b.ou = ?
And b.userId = ?
And b.mailId = a.userId
And b.protocol =?)
I am deleteing rows from table A basing on the subquery.
If my sub query returns nothing, then how can I display the messege and want to come out of the process.
I am using the above sql with Java.
Your help is highly appreciable.
RM
Delete from SW_S_TEMP_GUIDS
where uid in (Select a.uId
From SW_S_USER_TABLE a, SW_S_USER_SERVER_MAP b
Where b.o = ?
And b.ou = ?
And b.userId = ?
And b.mailId = a.userId
And b.protocol =?)
I am deleteing rows from table A basing on the subquery.
If my sub query returns nothing, then how can I display the messege and want to come out of the process.
I am using the above sql with Java.
Your help is highly appreciable.
RM