To query all EMPLOYEES below the main Departments , and get the result in JSON format .
Connect using SCOTT user
Following are steps:
#1 Create GET method
Type : QUERY
Pagination Size: 0
Connect using SCOTT user
Following are steps:
#1 Create GET method
Type : QUERY
Pagination Size: 0
#2 Add the following code :
SELECT G.Deptno,
G.DName,
CURSOR ( SELECT V.Empno,
V.Ename
FROM EMP V
WHERE V.Deptno = G.Deptno ) EMPLOYEES
FROM DEPT G
Here's the output in PLSQL/Develoepr
No comments:
Post a Comment