Amazon Interview Question for Development Support Engineers






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

SELECT TOP 1 orderdate, count(*) from customerorder where orderdate between getdate()-30 and getdate() group by orderdate order by count(*) desc

- Anonymous December 28, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

select max(cnt) from
( select date, count(date) cnt
from customer_order (you can add where clause for last 30 days)
group by date
)as temp

- Anonymous September 19, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

get dept that spends most on salary:
select dept_name from department WHERE dept_id IN (select dept_id, SUM(salary) from emp GROUP BY dept_id HAVING  MAX(SUM(salary)))

- Mamtesh September 26, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

query for todays order:

select customerid, orderid, orderdate from customer where orderdate=TO_DATE(31-DEC-2010,'DD-MON-YYY');

query for past 30 days


select customerid, orderid, orderdate from customer where orderdate > TO_DATE(31-DEC-2010,'DD-MON-YYY') AND orederdate <=TO_DATE(31-DEC-2010,'DD-MON-YYY') - 30;

- kingkong December 31, 2010 | 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