You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
use chongqing_xinchao
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
|
COMP.FNo + '-' + COMP.FAbbr AS <EFBFBD>ŵ<EFBFBD>,
|
|
|
|
|
M.FName AS <EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
|
|
|
|
M.FMobilePhone AS <EFBFBD>ֻ<EFBFBD>,
|
|
|
|
|
C.FCardNo as <EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
|
|
|
|
T.FNo + '-' + T.FName AS <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
|
|
|
|
H.FTime AS <EFBFBD>۷<EFBFBD>ʱ<EFBFBD><EFBFBD>,
|
|
|
|
|
CAST(H.FOutAmount AS FLOAT)AS <EFBFBD>۷ѽ<EFBFBD><EFBFBD><EFBFBD>,
|
|
|
|
|
cast(CA.FBalance AS FLOAT) AS <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
FROM TMemberCardAcctHist AS H
|
|
|
|
|
INNER JOIN TMemberCard AS C ON C.FCardId = H.FCardId
|
|
|
|
|
INNER JOIN TMember AS M ON M.FMemId = C.FMemId
|
|
|
|
|
INNER JOIN TMemberCardType AS T ON T.FId = C.FTypeId
|
|
|
|
|
INNER JOIN TMemberCardAccount AS CA ON CA.FCardId = C.FCardId AND CA.FAcctId =3
|
|
|
|
|
INNER JOIN TCompany AS COMP ON COMP.FId = C.FCompId
|
|
|
|
|
WHERE H.FBizType = 'SMSFee'
|
|
|
|
|
AND H.FAcctId = 3
|
|
|
|
|
ORDER BY COMP.FNo,FCardNo
|