Flipkart Interview Question for SDE1s


Country: India
Interview Type: In-Person




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

What exactly are you asking?

- Anonymous May 21, 2019 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Database Schemas:
Movie: movie_id,movie_name
Actor: actor_id,movie_id,actor_name
Director: director_id,movie_id
Review: review_id,movie_id,review
Reviewer: reviewer_id,review_id,reviewer_name

Here is the template of classes:

class Movie{

//execute below SQL queries

void updateMovie(string movie_name){
sqlString = "insert into movie(movie_name) values (movie_name)";
}
void updateActor(string actor_name,string movie_name){
long long movie_id = (select movie_id from movie where movie_name = "movie_name")
insert into actor(movie_id,actor_name) values (movie_id,actor_name)
}

}

class Reviewer{

updateReviewTable(String review, string reviewer_name, string movie_name){

//Exceute below SQL queries
long long movie_id = (select movie_id from movie where movie_name = "movie_name")
insert into review(movie_id,review) values (movie_id,review)
select review_id from review where movie_id = "movie_id"
insert into reviewer(review_id,reviewer_name)
}

}

- jayj May 23, 2019 | 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