Good Day
I am creating CDS service with HANA DB.
The service provides SELECT query.
The Query needs two tables(1:n relation Table. I call it master/detail relation)
I just want to select MASTER Table. But want to using DETAIL table's column value.
The query in DBMS like below
select A.*
from MASTER A
where exists (select 1 from DETAIL where DETAIL.col in ('a', 'b', ...))
- in case there are no values in clause, the query must be below
select A.*
from MASTER A
- in case there are at least one value in clause, the query must be below
select A.*
from MASTER A
where exists (select 1 from DETAIL where DETAIL.col in ('a', 'b', ...))
- if call the service, the parameter is just string or array?
If possible, I want to get or see just sample service codes.
Thanks
Request clarification before answering.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.