NW6 | Hadika Malik | Module-Database | Big-spender | Week 2#167
NW6 | Hadika Malik | Module-Database | Big-spender | Week 2#167HadikaMalik wants to merge 1 commit intoCodeYourFuture:mainfrom
Conversation
|
sayoiscool
left a comment
There was a problem hiding this comment.
Great work overall! A little more work needed on the table insertions + attention to the minor details in requirements.
|
|
||
| ```sql | ||
| INSERT YOUR QUERY HERE | ||
| select * from spends where description ilike '%fee%'; |
There was a problem hiding this comment.
Good work taking the capitlisations into consideration with 'ilike'
| select s.* | ||
| from spends s | ||
| join expense_areas ea on s.expense_area_id = ea.id | ||
| where ea.expense_area ilike 'Better Hospital Food'; |
|
|
||
| ```sql | ||
| CREATE YOUR QUERY HERE | ||
| select to_char(date,'YYYY-MM') as month from spends group by month; |
There was a problem hiding this comment.
Good attempt and nice formatting of the date, however you have partially answered the question. Only one column is returned, but two are expected in your results. Which column is missing?
|
|
||
| ```sql | ||
| INSERT YOUR QUERY HERE | ||
| select sp.amount, sup.supplier |
There was a problem hiding this comment.
The question is for the total amount spent by each supplier. Which operator missing here is needed to get the desired result?
| '3780119655', | ||
| 'Computer Hardware Dell', | ||
| 32000 | ||
| ); |
There was a problem hiding this comment.
Good attempt here. The rows ' Dell', 'Hardware' and 'IT' are missing from other tables, what extra step is needed to have the rows populated where necessary? What effect will this change have on the 'id's inserted in spends table?




Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
I have completed the big-spender ticket.
Questions
Ask any questions you have for your reviewer.