Question:
Where can i get sql queries along with their answers which are asked during interviews?
shylock
2010-07-05 00:07:58 UTC
I want queries like find second largest no or queries involving join,count and other things.
Three answers:
TheMadProfessor
2010-07-06 11:09:24 UTC
There are no standard interview queries that I'm aware of (and, having been a consultant for over 20 years, I'm pretty sure I'd know if there were.) My best advice is to actually learn SQL...most technical interviewers (the competent ones, anyway) should be able to tell pretty quick if someone's trying to BS their way thru.



Basic knowledge: SELECT structure including GROUP BY/HAVING and ORDER BY; INSERT, UPDATE and DELETE queries; difference between UNION/UNION ALL and inner/right_outer/left_outer/full_outer joins; various column types including conversions, CASTs and literals; date/time and other built-in functions; aliases; dealing with nulls



Moderate knowledge: views; correlated/noncorrelated subqueries; user functions, stored procedures; triggers; embedded SQL, scripting and cursors; constraints; query analysis and optimization; table/database/index/etc. create/drop; data dictionary interrogation; CASE and similar structures



Advanced knowledge: transaction commits and rollbacks; database backups and recoveries; user security and permissions; data/schema import/export (including XML); reporting (Crystal Reports, etc.) and interaction with applications (ODBC, server calls, etc.); dynamic SQL
n
2010-07-05 17:45:33 UTC
The best way to answer such questions are by learning the SQL itself. There are many SQL tutorials in the internet and one of good ones are at w3schools. Check out their website on SQL .
Serge M
2010-07-05 17:55:01 UTC
Try http://www.sql-ex.ru/.

But you'll be forced to get answers by yourself. :-)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...