You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
610 B
SQL
28 lines
610 B
SQL
SELECT
|
|
opi_sn, count(*)
|
|
FROM
|
|
`whatsapp_session`
|
|
where opi_sn is not null and opi_sn not in (29,383,404,227)
|
|
GROUP by opi_sn
|
|
|
|
SELECT
|
|
OPI_SN,
|
|
OPI_Code,
|
|
OPI_Name,
|
|
OPI_DEI_SN,
|
|
OPI_Role,
|
|
OPI_FirstName,
|
|
OPI_RealName
|
|
FROM
|
|
dbo.OperatorInfo
|
|
where
|
|
--DeleteFlag = 0 and
|
|
OPI_SN in (162,31,32,33,34,599,600,353,352,350,351,35,606,495,293,525,114,587,585,519,522,476,354,451,216,143)
|
|
|
|
|
|
SELECT opi.OPI_Code,
|
|
opi.OPI_Name, tpa.* FROM dbo.ThirdPlatformAccount_Bind tpa
|
|
left join OperatorInfo opi
|
|
on opi.opi_sn = tpa.TPA_OPI_SN
|
|
where opi.DeleteFlag = 0
|
|
|