coba sesuatu seperti itu:
select *, DATEDIFF(minute, (
select max(b.TimeOut)
from TIMESHEET as b where a.EmpID=b.EmpID and b.ROW<a.ROW
), a.TimeIn
) as diff
from TIMESHEET as a
coba sesuatu seperti itu:
select *, DATEDIFF(minute, (
select max(b.TimeOut)
from TIMESHEET as b where a.EmpID=b.EmpID and b.ROW<a.ROW
), a.TimeIn
) as diff
from TIMESHEET as a
SQL Server 2016 Express Management Studio tidak dapat mendesain tabel baru atau yang sudah ada
Bagaimana mengubah SQL di Edit 200 Baris Teratas di SSMS 2008
SQL Query Bandingkan nilai dalam per 15 menit dan tampilkan hasilnya per jam
Ketergantungan kunci asing Microsoft SQL Server muncul menggunakan sp_MSdependencies tetapi tidak terdaftar di sys.foreign_keys
Output XML terpotong dalam SQL