Hi
I need if else cond for my sql,
I have ACCOUNT is my master table contains account id is the column for comparing for other tables.
I have other two child tables contains account id column in both the tables.
my data will be there in my master table all account id information.
similarly my data will be the in my child tables either one of them either first child table or second child table.
how can i write my sql select query for getting the data by comparing account id
tryign to this way..plz correct me
CASE WHEN(INNER JOIN CRMDETAILS ON CRMDETAILS.ACID = ADVACDETAIL.ACID)
THEN
CRMDETAILS.CRMSECUID AS CRMSECUID,
CRMDETAILS.DTOFISSUE AS DTOFISSUE,
CRMDETAILS.DTOFMATURITY AS DTOFMATURITY,
CRMDETAILS.CURRENTVALUE AS CURRENTVALUE,
ELSE
PRIMARY_SECURITY.CRMSECUID AS CRMSECUID,
PRIMARY_SECURITY.CURRENTVALUE AS CURRENTVALUE,
PRIMARY_SECURITY.DTOFISSUE AS DTOFISSUE,
PRIMARY_SECURITY.DTOFMARTURITY AS CURRENTVALUE
Thanks
Venkatesh