A
A
Andrey Barbolin2020-06-15 12:40:07
MySQL
Andrey Barbolin, 2020-06-15 12:40:07

How to create a mySQL query?

There are call statistics on the telephony server, you need to bring it into a readable form.
Here is an example of statistics, there are 6 calls and 14 events that made these calls.
One call merges the linkedID field.
That is, subscriber A calls subscriber B. Subscriber B calls an internal number and the call is forwarded to another SIP (dstchannel like 'SIP/vs-kv-ak03%'), or to a mobile (dstchannel like 'Local/mobile number%' ).
Ideally, I would like to get a separate table from this table without extra data.

What is
5ee7417c92392496735998.jpeg

What I want to get at the output - highlighted in blue.
5ee7419d8defa804552038.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2020-06-20
@alekciy

What didn't suit LIKE? In general, the logic of highlighting the marked lines is not very clear. Especially in the context of "joins the linkedID field". On the second screen they are all different.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question