You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Permutations, Combinations, Sequences and Random Numbers/SQL Scripts/18 Birthday Problem Random Numbers.sql
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,12 +7,12 @@ Last Updated: 07/07/2022
7
7
This script is written in SQL Server's T-SQL
8
8
9
9
10
-
• Relational division is used to divide the #Birthday table and determine nearest matches
11
-
• A non-equi self join is used to match birthdays
12
-
• 50% is reached around the 23rd/24th person, 100% is reached around the 90th person
13
-
• #BirthDaysHistory is not guaranteed to have each day, only days where there was a match
14
-
• #BirthDaysHistory will never have day 1 as a match can never occur on this day
15
-
• I have added the code to flash fill any missing dates at the end
10
+
• Relational division is used to divide the #Birthday table and determine nearest matches
11
+
• A non-equi self join is used to match birthdays
12
+
• 50% is reached around the 23rd/24th person, 100% is reached around the 90th person
13
+
• #BirthDaysHistory is not guaranteed to have each day, only days where there was a match
14
+
• #BirthDaysHistory will never have day 1 as a match can never occur on this day
15
+
• I have added the code to flash fill any missing dates at the end
0 commit comments