Suppose you have a table TempTable having Date Column given below.
Now you have to fecth the data of date column whose diff. between one date to second date of student is >= 20.
| Student | Date |
| A | 20/11/2021 |
| A | 20/11/2022 |
| B | 19/11/2019 |
| B | 19/12/2020 |
Suppose you have a table TempTable having Date Column given below.
Now you have to fecth the data of date column whose diff. between one date to second date of student is >= 20.
| Student | Date |
| A | 20/11/2021 |
| A | 20/11/2022 |
| B | 19/11/2019 |
| B | 19/12/2020 |
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankajkumar PatelPosted Nov 29, 2022, 11:54 AM
Hi Brahma Prakash Shukla,
You can solve SQL query mentioned problem as like following:
Output:
For more details:
Hope this will help you!