COMPLEX / DIFFICULT SQL QUERIES EXAMPLES FOR INTERVIEW SET-8.4

Here we again come with the hard/tricky sql server interview queries examples for sql server Interview preparations. Following is query is based on sql joins, these query will improve your join concept, and you can evaluate yourself by answering these queries.
So first try to answer every query without see the answer, then compare the answers.
If you have not read our previous set of complex sql interview queries then first go through following link, Click here for read previous set of queries

HARD/TRICKY/COMPLEX SQL JOIN QUERIES EXAMPLES

104) . What would be the out-put of the following Sql query?
SELECT A.A FROM (SELECT 1 A, 2 B) A
JOIN (SELECT 1 A,1 B)B ON A.A = B.B
Options:






105). What would be the out-put of the following Sql query?
SELECT B.A FROM (SELECT 1 A) A
JOIN (SELECT 1 A, 2 B)B ON A.A = B.A
Options:







106). What would be the out-put of the following Sql query?
SELECT B.A FROM (SELECT 1 A) A
JOIN (SELECT 1 A, 2 B)B ON A.A = B.B
Options:








107). What would be the out-put of the following Sql query?
SELECT * FROM (SELECT 1 A UNION ALL SELECT 2 B) A
JOIN (SELECT 1 A,2 B UNION ALL SELECT 1 A, 1 B)B ON A.A = B.B
Options:






108). What would be the out-put of the following Sql query?
SELECT * FROM (SELECT 1 A UNION ALL SELECT 2 B) A
JOIN (SELECT 1 A,2 B)B ON A.A = B.B
Options:






Click here for read previous set of queries

Answers: 104) C, 105) C, 106) B, 107) E, 108) D

Comments

  1. please send pdf to amriteshkumar143@gmail.com

    ReplyDelete
  2. please send pdf to binil.baskar@gmail.com

    ReplyDelete
  3. please send pdf to binil.baskar@gmail.com

    ReplyDelete
  4. plz send pdf to 107skt@gmail.com

    ReplyDelete
  5. Please send PDF
    Umeshkumarpal786@gmail

    ReplyDelete
  6. Please send me PDF KAMALSROYA3@GMAIL.COM

    ReplyDelete
  7. Please send me PDF maheshtech249@gmail.com

    ReplyDelete
  8. please send pdf to sachingoya@gmail.com

    ReplyDelete
  9. please send pdf to ravitejak9911@gmail.com

    ReplyDelete
  10. nice questions....
    plzzznsend pdf to onkarborade@hotmail.com

    ReplyDelete
  11. please send pdf to raghavendra.lokozo@gmail.com

    ReplyDelete
  12. please send pdf to anand.vineet@gmail.com

    ReplyDelete
  13. Please provide the explanation of above questions.

    ReplyDelete
  14. please send pdf on rakeshkushwaha82@gmail.com

    ReplyDelete
  15. please send pdf file to abidsayf20@gmail.com

    ReplyDelete
  16. WHEN I TRIED ABOVE QUERIES, IAM GETTING AN FROM KEYWORD NOT FOUND ERROR.
    HOW TO RESOLVE IT?Please help

    ReplyDelete
  17. Plz send PDF manoj.kokate01@gmail.com

    ReplyDelete
  18. HI, SIR PLEASE SEND ME PDF SHABASHI2482@GMAIL.COM

    ReplyDelete

Archive

Contact Form

Send