Skip to content

Commit 8ce7ba2

Browse files
authored
Create patients-with-a-condition.sql
1 parent 9f93d93 commit 8ce7ba2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

MySQL/patients-with-a-condition.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Time: O(n)
2+
# Space: O(n)
3+
4+
SELECT *
5+
FROM Patients AS p
6+
WHERE p.conditions REGEXP '^DIAB1| DIAB1';

0 commit comments

Comments
 (0)