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
Question: Write down the shortest code that produces 1 without using any numbers in the select statement?
Hint: SELECT (Answer)
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!
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/ )
163 Comments. Leave new
Hi Pinal,
Answers for above questions
1. SELECT 7&7
2. SELECT LEN(‘a’)
For which mail id we have to send answers?
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(*)
Answer 1:
select 7&7
select 7|7
Answer 2:
SELECT COUNT(*)
select 7 |7
select CHARINDEX (‘q’,’q’)
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???
1. &
2. COS($)
–PART 1
–QUESTION 1
SELECT isnull(7,7)
–QUESTION 2
select count(*)
1. SELECT 7|7
2. SELECT TRUE
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?
select 7|7
select 1
Answer 1) Select 7|7 as Answer
Answer 2) A) Select EXP($) as Answer
B) Select COS($) as Answer
1. select 7&7
2. select count(*)
Ans 1:
SELECT 7|7
Ans 2:
SELECT DAY($)
Hi,
I have activated RapidSQL
Hi,
Have I completed all the contests???
Hii Pinal Sir, I have also commented on this blog and i also activated the Rapid SQL.
Sir my comments is in awaiting moderation..what its mean. Have i done something wrong?
SELECT 7|7
SELECT COS($)
I’ve downloaded and am installing the trial of RapidSQL XE5 64-bit.
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.