- SELECT isnull(WO_status,0) as WO_status,
- (case when MwO.WO_status=1 then 'Open' when MwO.WO_status=2 then 'Close' when MWO.WO_status=3 Then 'Short Close'
- when MwO.WO_status=4 then 'Cancel'
- else 'Total' end) as statusR,
- count(*) as countValue
- FROM M_WorkOrder MwO
- inner join M_WorkorderDetails MwOd on MwO.WOID=MwOd.WOD_WOID
- INNER join BILL_KEYWORD BK on BK.id=MwOd.WOD_KEYID
- INNER join billing_from bf on bf.id=MwO.WO_CID
- where (MwOd.WOD_CUserID=15 or 15 =0 )
- group by WO_status WITH ROLLUP
Tuesday 6 December 2016
SQL Group With Group Total
Subscribe to:
Post Comments (Atom)
Upload valid file in C#
protected bool CheckFileExtandLength(HttpPostedFile HtmlDocFile) { try { Dictionary<string, byte[]>...
-
CREATE TAblE #temp ( T_Name VARCHAR(50), T_Times BIGINT ) INSERT INTO #temp(T_Name,T_Times) VALUES ('ASHISH',4) IN...
-
Step 1: Open URL: https://portal.azure.com/#home Step2 : Click Manage Azure Active Director Step3: Click Enterprise Application Step 4: Ne...
-
Injection Injection flaws, such as SQL injection, LDAP injection, and CRLF injection, occur when an attacker sends untrusted data to an ...
No comments:
Post a Comment