-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Solution #7
base: master
Are you sure you want to change the base?
Solution #7
Conversation
README.md
Outdated
last_name text, | ||
birth_year int, | ||
death_year int, | ||
column_6 int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the column_6
?
README.md
Outdated
insert into people | ||
values (5, 'Bill', 'Gates', 1955, null); | ||
insert into people | ||
values (6, 'Charles', 'Darwin', 1809, 1882); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix whitespaces
README.md
Outdated
``` | ||
|
||
5. Create a query that would return the four people with the following IDs: 1, 3, 7, 8. | ||
|
||
```postgresql | ||
... here goes your SQL ... | ||
select * from people | ||
where id=1 or id=3 or id=7 or id=8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to use IN
README.md
Outdated
``` | ||
|
||
2. **Manually** create a query or a series of queries that would fill the table with the information above. Put the query/queries below: | ||
|
||
```postgresql | ||
... here goes your SQL ... | ||
insert into people |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think better would be
insert into people ("id", "First Name", "Last Name", "Year of Birth", "Year of Death")
values (1, 'Marilyn', 'Monroe', 1926, 1962),
(2, 'Abraham', 'Lincoln', 1809, 1865),
...
No description provided.