This SQL query selects the patient ID number, name, gender, address, and doctor code from the patient registration records table for patients who registered in July 2023, joining it with the patient data table and excluding records where the patient ID number contains "31".
This SQL query selects the patient ID number, name, gender, address, and doctor code from the patient registration records table for patients who registered in July 2023, joining it with the patient data table and excluding records where the patient ID number contains "31".
This SQL query selects the patient ID number, name, gender, address, and doctor code from the patient registration records table for patients who registered in July 2023, joining it with the patient data table and excluding records where the patient ID number contains "31".
FROM reg_periksa INNER JOIN pasien on pasien.no_rkm_medis = reg_periksa.no_rkm_medis WHERE MONTH(tgl_registrasi) = '07' and YEAR(tgl_registrasi) = '2023' and no_ktp NOT LIKE "%31%"