We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. SQL
  3. Advanced Join
  4. SQL Project Planning
  5. Discussions

SQL Project Planning

Problem
Submissions
Leaderboard
Discussions

    You are viewing a single comment's thread. Return to all comments →

  • kalendercem
    2 months ago+ 2 comments
     select min(Start_Date), max(End_date)
     from (
        select *, day(End_date) - row_number() over (order by end_date) dif
        from Projects) x
    group by dif
    order by datediff(day,min(Start_Date), max(End_date)), min(Start_Date);
    
    -3|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy