Skip to content
Advertisement

SQLite query for retrieve data Order By

I have two tables in SQLite

I need result like this in Order By DateTime: (Column DateTime in both table is data type of DateTime of SQLite) I’m using this query to merge two tables data. But I need data in below formate.

But I need data in below formate.

Is it possible to retrieve data like this?

Advertisement

Answer

You even do not need a subquery:

Demo

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement