The SQL query that I want to apply is:
SELECT time FROM Appointment WHERE date = "3/15/2019" AND time = "9:00AM"
but I don't know how to translate it in Firebase. I am using Firebase in Android Studio. My goal here is to prevent date and time duplicate since the app that I'm developing is an online appointment.
Database:
Appointment
    angelcrist
        aptype: "Objective(Computerized)"
        date: "3/15/2019"
        name: "Hephep Horray"
        time: "9:00AM"
    miriammejia
        aptype: "Objective(Computerized)"
        date: "3/5/2019"
        name: "Romz Ysmael"
        time: "9:00AM"