I have a table in which boa_user, which return three user as..
SELECT DISTINCT u.name, u.updated_by, u.updateddate
FROM YTR_USER u, YTR_user_group ug, YTR_group g
WHERE u.id = ug.user_id
AND ug.group_id = g.id
AND u.ACTIVE_FLAG='Y'
AND g.id not in (13,11,15)
ORDER BY u.name
below is the format ..
NAME UPDATED_BY UPDATEDDATE
AAA edfef 03.03.03 14:29:34.000
BBB ferer 12.12.12 15:13:23.756
Now coulmn are of type
name VARCHAR2(30)
updateddate TIMESTAMP(6)
Now rite now the query return the result but in between there are some columns in which name value is null and updateddate value is null.
My query is to please advise a query so that if name is null and updated date is null then it's defalut value should be like "AFGT" AND updateddate default value should be '05.03.13 05:29:34', 'MM.DD.YY HH:MI'
please advise query to add these default values if name and updated date is null