Dear StackOverflow Community,
i have two tables users and USERQueries
]
My requirement is to write a query in oracle
"which fetch userids from users table & insert into USERQueries table"
I am able to insert one userid as below
insert into USERSQUERIES
(APP,CLAUSENAME,USERID,DEFAULTQUERYID,OWNER)
values
('SR','Assgined_SRs_To_Me',(select userid from USERS where groupname='IBMSDL2S' and userid='1249
),DEFAULTQUERYSEQ.NEXTVAL,'MAXADMIN')
but didn't understand how it will work for all userids ,
and userids shouldnt repeat.
kindly help