Skip to content

Commit 01451a1

Browse files
authored
Update all.sql
1 parent 9f6c355 commit 01451a1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sql-practicecom/easy/all.sql

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
Show first name, last name, and gender of patients who's gender is 'M'
22
33
SELECT first_name,last_name,gender FROM patients where gender = 'M'
4-
----------------------------------------------------------------------------
4+
----------------------------------------------------------------------------------------------------------------------------------
5+
56
67
Show first name and last name of patients who does not have allergies. (null)
78
@@ -80,7 +81,8 @@ Show the total number of admissions for patient_id 579.
8081
select patient_id, count(*) from admissions a
8182
where a.patient_id = 579
8283

83-
------------------------------------------------------------------------------------------------------------
84+
----------------------------------------------------------------------------------------------------------------------------------
85+
8486

8587
Based on the cities that our patients live in, show unique cities that are in province_id 'NS'?
8688

@@ -114,4 +116,4 @@ or city like 'i%'
114116
or city like 'o%'
115117
or city like 'u%'
116118
order by city
117-
----------------------------------------------------
119+

0 commit comments

Comments
 (0)