 |
|
สอบถามเรือง Query เพื่อแสดงข้อมูล ใน SQL Server 2005 |
|
 |
|
|
 |
 |
|
case when ก็ได้ครับ
https://www.thaicreate.com/tutorial/sql-case-when.html
Code (SQL)
select plant,isnull((case when status='W' then status end),'') as statuscomplet,
isnull((case when status='C' then status end),'') as statusDelay,order,time
from tblxxx
|
ประวัติการแก้ไข 2015-05-12 16:17:57 2015-05-12 16:18:54
 |
 |
 |
 |
Date :
2015-05-12 16:16:32 |
By :
ipstarone |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณมากครับ คุณ Progamon
|
 |
 |
 |
 |
Date :
2015-05-12 17:32:11 |
By :
s_oil_p |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|