วันจันทร์ที่ 26 ตุลาคม พ.ศ. 2558

Windows 10 Cannot Open Other Computer in Network

1. gpedit.msc > Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options > Network access: Sharing and security model for local accounts

2. A fix for this issue appears to be setting HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\AllowInsecureGuestAuth (DWORD) to 1.

วันอังคารที่ 13 ตุลาคม พ.ศ. 2558

Code สำหรับสุ่ม vn สำหรับตรวจสอบ แพทย์ละ 10 vn

SELECT name, vn, hn, vstdate
FROM (
SELECT name, vn, hn, vstdate,
@num := IF(@doc = name, @num + 1, 1) AS row_number,
@doc := name AS dummy
FROM vn_stat
LEFT OUTER JOIN doctor ON doctor.code = vn_stat.dx_doctor
WHERE vstdate BETWEEN "2015-09-01" AND "2015-09-30"
AND position_id = "1"
ORDER BY dx_doctor
) AS x WHERE x.row_number <= 10;