Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

how do we get the thread_id from participant table?#390

Unanswered
sovitmaharjan asked this question inQ&A
Discussion options

how can we find thread_id with 2 user from the participant table if user id are given?

You must be logged in to vote

Replies: 1 comment

Comment options

assuming user_id 1 and 2 i tried this query
select * from (
select count(*) as count, thread_id from participants where user_id in (1, 2) group by thread_id
) q where q.count = 2;
if count is 2 then its personal chat if count is less then 2 then its not a thread count more than 2 is a group

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
1 participant
@sovitmaharjan

[8]ページ先頭

©2009-2025 Movatter.jp