Hello I hope to explain my problem well, first apologies if my question is not understood, from a table log of events I need to obtain data of those events, I have the fields DATE, ID, DATA the field DATE is of DATETIME type, the field ID represents the event name, the DATA field represents an integer value.
As you can see in the image there is a table with three columns, it is required to extract several data from the ID field, something similar to the following image.
For this I was thinking about using subqueries, but I'm not having much luck.
Select (select FECHA, DATO from MI_TABLA where ID=90), (select FECHA, DATO from MI_TABLA where ID=100), (select FECHA, DATO from MI_TABLA where ID=150) where FECHA between '14/11/2017' and '27/11/2017';
I appreciate your kind attention.