Morgan Stanley Interview Question for Associates


Country: United States
Interview Type: Phone Interview




Comment hidden because of low score. Click to expand.
7
of 7 vote

- Redundancy in Dept column. Department names should be moved to dictionary table and a relation between these two tables should be added.
- Column Age requires yearly updates. This information should be saved as birth year.
- Column names should be lower-case.
- Column Salary contains ambiguous data. Is this yearly salary in $1000? Column name should provide obvious answer.
- Table contains no surname column.
- Table contains no apparent primary key.
- Table contains no apparent primary key candidates.

- Greg April 14, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

what I can think of is there should be separate table of department having id->department.
So we can use id instead of the name(which occupies more space)

- blackfever April 14, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

no primary key (name is not a unique identifier)

- Zman April 14, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I can see two problem with this table
1) Instead of age store Date of Birth. So, it will give you correct age in future.
2) Instead of department name, Store Department ID from Department Table.

- yogesh April 14, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

a

- a April 14, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I can see two main problem with this table
1) Instead of Age, Store DOB. It will gives you accurate age in future.
2) Store Department ID from Department table.

- Yogesh April 14, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think primary key would have been some ID rather than name.

- maheshbhosale24051996 April 16, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Agree with Zamn. Need to add a column which identifies one and only one person.

- Saeed April 17, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

One additional thing other than what people has commented.
Salary will change based on time, we should be storing employ salary in different table with effective start and end.

- nittur.venkatesh April 17, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Besides, what others have already highlighted, person can move from department to another department. so history should be store in other person_department_history table

- Faisal April 19, 2016 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

CareerCup

- F April 19, 2016 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More