Skip to content

Commit

Permalink
Create select_longest_period_of_stay.hql
Browse files Browse the repository at this point in the history
  • Loading branch information
artkostm committed Nov 8, 2018
1 parent ff46f95 commit 5b1598f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions select_longest_period_of_stay.hql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT
MAX(datediff(h.srch_co, h.srch_ci)) days
FROM hotels h
WHERE h.srch_adults_cnt = 2 AND h.srch_children_cnt > 0

0 comments on commit 5b1598f

Please sign in to comment.