Hi every one I am new with Sql server I got a lot experience with oracle but now i have to change to SQL server. Can somebody help I want to write this oracle statement in sql sever 2012. This is the statementSELECT COUNT(*)Aantal_AANGIFTEN FROM AWTSTUNADM.SAD_GENERAL_SEGMENT gen, awtstunadm.un_asybrk_track track, awtstunadm.un_asybrk_ied ied WHERE ied.instance_id = gen.instanceid and ied.binder_id = 'B_asysad' and ied.ied_id = track.ied_ID and track.doc_ver = ( select max(Doc_ver) from awtstunadm.un_asybrk_track where ied_id = ied.ied_id ) and track.status != 'Cancelled'