title: Finding similar dates based on columns
body: <p>I have a input like this</p>
  <pre><code>+------+------------+-----------+
  | col1 | Start date | End date  |
  +------+------------+-----------+
  | A    | 2/25/2021  | 4/26/2022 |
  | A    | 2/25/2021  | 4/26/2022 |
  | B    | 2/25/2021  | 4/26/2022 |
  | B    | 2/25/2021  | 4/26/2022 |
  | F    | 1/26/2021  | 2/25/2022 |
  | G    | 1/26/2021  | 2/25/2022 |
  | D    | 1/26/2020  | 2/25/2022 |
  | E    | 1/26/2020  | 2/25/2022 |
  | C    | 10/28/2019 | 12/7/2020 |
  | C    | 10/26/2019 | 8/27/2020 |
  +------+------------+-----------+
  </code></pre>
  <p>CREATE TABLE Table1
  (<code>col1</code> varchar(1), <code>Start date</code> datetime, <code>End date</code> datetime)
  ;</p>
  <p>INSERT INTO Table1
  (<code>col1</code>, <code>Start date</code>, <code>End date</code>)
  VALUES
  ('A', '2021-02-25 00:00:00', '2022-04-26 00:00:00'),
  ('A', '2021-02-25 00:00:00', '2022-04-26 00:00:00'),
  ('B', '2021-02-25 00:00:00', '2022-04-26 00:00:00'),
  ('B', '2021-02-25 00:00:00', '2022-04-26 00:00:00'),
  ('F', '2021-01-26 00:00:00', '2022-02-25 00:00:00'),
  ('G', '2021-01-26 00:00:00', '2022-02-25 00:00:00'),
  ('D', '2020-01-26 00:00:00', '2022-02-25 00:00:00'),
  ('E', '2020-01-26 00:00:00', '2022-02-25 00:00:00'),
  ('C', '2019-10-28 00:00:00', '2020-12-07 00:00:00'),
  ('C', '2019-10-26 00:00:00', '2020-08-27 00:00:00')
  ;</p>
  <p>I am trying to write a query for col1 which have start date and end date within same year and display start date end date descending order</p>
  <p>output like</p>
  <pre><code>+------+------------+-----------+
  | col1 | Start date | End date  |
  +------+------------+-----------+
  | A    | 2/25/2021  | 4/26/2022 |
  | A    | 2/25/2021  | 4/26/2022 |
  | B    | 2/25/2021  | 4/26/2022 |
  | B    | 2/25/2021  | 4/26/2022 |
  | F    | 1/26/2021  | 2/25/2022 |
  | G    | 1/26/2021  | 2/25/2022 |
  +------+------------+-----------+
  </code></pre>
  <p>Please help . Thanks in advance</p>