25.03.2013 Views

Cracking the Coding Interview - Fooo

Cracking the Coding Interview - Fooo

Cracking the Coding Interview - Fooo

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 15 | Databases<br />

15 1 Write a method to find <strong>the</strong> number of employees in each department<br />

________________________________________________________________pg 231<br />

15 2 What are <strong>the</strong> different types of joins? Please explain how <strong>the</strong>y differ and why certain<br />

types are better in certain situations<br />

________________________________________________________________pg 232<br />

15 3 What is denormalization? Explain <strong>the</strong> pros and cons<br />

________________________________________________________________pg 234<br />

15 4 Draw an entity-relationship diagram for a database with companies, people, and professionals<br />

(people who work for companies)<br />

________________________________________________________________pg 235<br />

15 5 Imagine a simple database storing information for students’ grades Design what this<br />

database might look like, and provide a SQL query to return a list of <strong>the</strong> honor roll<br />

students (top 10%), sorted by <strong>the</strong>ir grade point average<br />

________________________________________________________________pg 236<br />

CareerCup com<br />

8 0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!