This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
m.rowid as message_id, | |
(SELECT chat_id FROM chat_message_join WHERE chat_message_join.message_id = m.rowid) as message_group, | |
CASE p.participant_count | |
WHEN 0 THEN "???" | |
WHEN 1 THEN "Individual" | |
ELSE "Group" | |
END AS chat_type, | |
DATETIME(date +978307200, 'unixepoch', 'localtime') AS date, | |
CASE is_from_me |