I answer to your last comment I used this online converter
SQLines - Online SQL Conversion[
^]
on the Oracle query:
SELECT SUBSTR(TO_CHAR(RECD_DATE,'HH24:MI:SS'),1,2)||'-'||TRIM(TO_CHAR((TO_NUMBER(SUBSTR(TO_CHAR(RECD_DATE,'HH24:MI:SS'),1,2))+1),'00')) AS HED, SAMPLE_TYPE, CUSTOMER_ID, RECD_DATE,COUNT(ID_TEXT) AS CNT FROM SAMPLE
WHERE STATUS<>'X' AND SAMPLE_TYPE<>' '
GROUP BY RECD_DATE,CUSTOMER_ID,SAMPLE_TYPE ;
And got this:
SELECT ISNULL(SUBSTRING(CONVERT(VARCHAR(8), RECD_DATE,108),1,2), '')+'-'+
ISNULL(RTRIM(LTRIM(TO_CHAR((TRY_CAST(SUBSTRING(CONVERT(VARCHAR(8), RECD_DATE,108),1,2) AS int)+1),'00'))), '') AS HED,
SAMPLE_TYPE, CUSTOMER_ID, RECD_DATE,COUNT(ID_TEXT)
AS CNT FROM SAMPLE
WHERE STATUS<>'X' AND SAMPLE_TYPE<>' '
GROUP BY RECD_DATE,CUSTOMER_ID,SAMPLE_TYPE ;