on 2024 May 31 8:13 PM
Hello, we have the following 2 tables: ZEK_SBOOK & ZEK_SCARR with the following data:
CARRID | FLDATE | NAME | SEATS |
AA | 30.05.2024 | ELIAS | 5 |
AB | 30.05.2024 | MARIA | 2 |
AA | 31.05.2024 | JOHN | 3 |
CARRID | AIR_NAME |
AA | AIRLINE1 |
AB | AIRLINE2 |
AF | AIRLINE3 |
BE | AIRLINE4 |
What the customer is asking is to have the following ALV.
CARRID | FLDATE | NAME |
AA | 30.05.2024 | ELIAS |
AB | 30.05.2024 | MARIA |
AF | 30.05.2024 | |
BE | 30.05.2024 | |
AA | 31.05.2024 | JOHN |
AB | 31.05.2024 | |
AF | 31.05.2024 | |
BE | 31.05.2024 |
In a few words they want to have all airlines for each date with the data of the table ZEK_SBOOK having or not.
Is it possible to do it in a query?
Thanks
Elias
Request clarification before answering.
Are you sure your requirement is correct?
There is no AF or BE flight on 30.05.2024, so what is the logic a line for these show up in the ALV? Just because another airline has a flight on that day?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
According to the data in ZEK_SBOOK there is no movement of AR or BE on 30.05.24.
And: No, there is no SQL statement which invents data which is not in the table.
For hallucinating data I am afraid you have to use a LLM.
User | Count |
---|---|
92 | |
11 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.