SQL SERVER – Take the Quiz for a chance to win a Quadcopter Drone – Brain Teasers

SQL SERVER - Take the Quiz for a chance to win a Quadcopter Drone - Brain Teasers quadcompter It has been a long time since we ran quiz. So let us get ready for a quiz. The quiz has two parts. You have to get both the parts correct to win Quadcopter with Camera (we will call it drone). We will be giving away a total of 2 Quadcopters.

The quiz is extremely easy and I will ship the Drone anywhere in the world where Amazon will ship it.

Let us jump directly to the quiz. Please complete all the three questions of the contest.

Contest Part 1: Brain Teasers

There are two questions for you in this part of the contest.

Question: There are two 7s. How will you write select statement with a single operator that returns single 7?

Hint: SELECT 7(Answer)7

SQL SERVER - Take the Quiz for a chance to win a Quadcopter Drone - Brain Teasers emb11

Question: Write down the shortest code that produces 1 without using any numbers in the select statement?

Hint: SELECT (Answer)

SQL SERVER - Take the Quiz for a chance to win a Quadcopter Drone - Brain Teasers emb22

Contest Part 2: Download and Activate Rapid SQL

Question: Download and Activate Rapid SQL.

Hint: You have to download and activate Rapid SQL. If you do not activate Rapid SQL, you will be disqualified for the contest. Why take risk, let us start!

SQL SERVER - Take the Quiz for a chance to win a Quadcopter Drone - Brain Teasers emb33

That’s it!

Just answer above questions in the following comments area, in following format.

Remember:

  • Use comments area right below the blog to take participation in the contest
  • Answer before June 5, 2014 midnight GMT.
  • The winner will be announced on June 8.
  • The winner will be selected randomly from all the valid answers.
  • All the valid answers will be kept hidden till June 5, 2014.
  • There will be a total of two winners.
  • The contest is open for any country of the world where Amazon ships products.

Reference: Pinal Dave https://blog.sqlauthority.com/ )

Previous Post
SQL SERVER – Copy Database – SQL in Sixty Seconds #067
Next Post
SQL SERVER – Parsing SSIS Catalog Messages – Notes from the Field #030

Related Posts

No results found.

163 Comments. Leave new

  • Damanjeet Singh
    May 29, 2014 3:46 pm

    Hi Pinal,
    Answers for above questions
    1. SELECT 7&7
    2. SELECT LEN(‘a’)

    Reply
  • UdayaKumar P
    May 29, 2014 4:01 pm

    For which mail id we have to send answers?

    Reply
  • not completely sure i understand the first question, but this is fun. where are the two 7s? in a table? if i have misunderstood the question, that’s ok. then i have participated for fun and learning.

    (answer)
    SELECT 7
    from sevens
    group by number

    (answer)
    select count(*)

    Reply
  • Sanjay Monpara
    May 29, 2014 4:26 pm

    Answer 1:
    select 7&7
    select 7|7

    Answer 2:
    SELECT COUNT(*)

    Reply
  • sandeep rawat
    May 29, 2014 4:38 pm

    select 7 |7
    select CHARINDEX (‘q’,’q’)

    Reply
  • Answers (Contest Part 1)
    Question1—>
    1st Method: select 7|7
    go
    2nd Method: select 7&7
    go

    Question2—>
    1st Method: select count(*)
    go
    2nd Method: select cast(rand() as bit)
    go

    Contest Part 2 –> downloading….

    Are my answers correct???

    Reply
  • 1. &
    2. COS($)

    Reply
  • UdayaKumar P
    May 29, 2014 5:07 pm

    –PART 1
    –QUESTION 1
    SELECT isnull(7,7)

    –QUESTION 2
    select count(*)

    Reply
  • 1. SELECT 7|7
    2. SELECT TRUE

    Reply
  • Hi,

    Is it ok if there is any delay for completing contest 2 soon after completing contest 1
    I mean to ask, is there any restriction that both the contests should be completed in quick succession without much gap between contests?

    Reply
  • select 7|7
    select 1

    Reply
  • Kuntesh Bhatt
    May 29, 2014 5:45 pm

    Answer 1) Select 7|7 as Answer
    Answer 2) A) Select EXP($) as Answer
    B) Select COS($) as Answer

    Reply
  • 1. select 7&7

    2. select count(*)

    Reply
  • Ans 1:
    SELECT 7|7

    Ans 2:
    SELECT DAY($)

    Reply
  • Hi,

    I have activated RapidSQL

    Reply
  • Hi,

    Have I completed all the contests???

    Reply
  • Hii Pinal Sir, I have also commented on this blog and i also activated the Rapid SQL.

    Reply
  • Sir my comments is in awaiting moderation..what its mean. Have i done something wrong?

    Reply
  • SELECT 7|7
    SELECT COS($)
    I’ve downloaded and am installing the trial of RapidSQL XE5 64-bit.

    Reply
  • Pinal, I apologize if this is a duplicate post–I had trouble logging into WordPress and wanted to make sure my comment posted.

    SELECT 7|7
    SELECT COS($)
    I’ve downloaded and installed RapidSQL.

    Reply

Leave a Reply