Monday, April 25, 2022

.::: Simulation Execution Plan SQl Server & how to read :::.


1. query 1
USE [teguhth]
GO

Create Procedure [dbo].[SpBarang_pasok]

as
begin

select @@SERVERNAME as ServerName,
       @@servicename as ServiceName,
       DB_NAME() AS DBName,
       p.TANGGAL_PASOK,p.JUMLAH_PASOK
from  barang b,suplier s,pasok p
where
      b.KODE_BARANG=p.KODE_BARANG and s.KODE_SUPLIER=p.KODE_SUPLIER
order by TANGGAL_PASOK

end
GO

 
2. Run Query

exec SpBarang_pasok


3. Check Execution plan





No comments:

Post a Comment

Popular Posts