NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io


WITH x AS (
SELECT SERI_NUMARASI,IZIN_BAS_TARIHI as eklenecektarih,IZIN_BAS_TARIHI,IZIN_BIT_TARIHI,it.ID tipId,s.ID sicilId
from SapSuccessFactors.dbo.vw_meyer_izin sap
inner join IzinTipleri it on it.Kod=IZIN_ID
inner join Sicil s on s.SicilNo=cast(sap.SICIL_NO as nvarchar)
-- inner join Izinler i on i.HRID=sap.SERI_NUMARASI
where
IZIN_BAS_TARIHI between '2024-01-01' and '2024-01-01' and
IZIN_DURUM in ('APPROVED','PENDING')
-- and SERI_NUMARASI='72a73f39f2a74e36bb23bf17040efe19'
UNION ALL
SELECT SERI_NUMARASI,DATEADD(DAY, 1, eklenecektarih),IZIN_BAS_TARIHI,IZIN_BIT_TARIHI,tipId,sicilId
FROM x
WHERE eklenecektarih <IZIN_BIT_TARIHI
)

SELECT
SERI_NUMARASI AS HRID,
x.eklenecektarih,
IZIN_BAS_TARIHI,
IZIN_BIT_TARIHI,
x.tipId,
x.sicilId
into #temp
FROM
x
ORDER BY
x.SERI_NUMARASI;


select * from #temp t
inner join Sicil s on t.sicilId=s.ID
left join Izinler i on
cast(format(t.eklenecektarih,'yyyyMMdd') as nvarchar)+cast(t.sicilId as nvarchar)+cast(t.tipId as nvarchar)=CAST(format(i.Tarih,'yyyyMMdd') as nvarchar)+cast(i.SicilID as nvarchar)+cast(i.TipID as nvarchar)
where i.ID is null
and datepart(weekday, cast(convert(varchar,eklenecektarih,112) as smalldatetime)) <> 7
and (datepart(weekday, cast(convert(varchar,eklenecektarih,112) as smalldatetime)) < 6 or (datepart(weekday, cast(convert(varchar,eklenecektarih,112) as smalldatetime)) = 6 and s.Gorev in(2, 6,7, 11)))
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.