I Have An table As Follow

[![enter image description here](https://i.stack.imgur.com/0Oaw3.png)](https://i.stack.imgur.com/0Oaw3.png)

*I need Data Only From Last Hour.* Following query i tried using Reference.

```
SELECT * FROM `user_otp` 
WHERE `date` = '$todate'
AND datetime > DATEADD(HOUR, -1, GETDATE())

```

I Dont Know This But I tried Using **[This Refferance](https://stackoverflow.com/questions/19743850/get-records-from-last-hour)**

But It Not Work For Me .
So Any Help Would be useful.