Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Solution #7

wants to merge 9 commits into from

Conversation

GitKurmax
Copy link

No description provided.

README.md Outdated
last_name text,
birth_year int,
death_year int,
column_6 int
Copy link

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);
Copy link

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;
Copy link

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
Copy link

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),
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants