SQL Interview Questions | Output of Functions
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
It will take less than 1 minute to register for lifetime. Bonus Tip - We don't send OTP to your email id Make Sure to use your own email id for free books and giveaways
Answers ( 3 )
Output
Select 5 – 5
select ‘5’ – 5
select Count(5) – 1
select Count(‘5’) – 1
select count(*) – 1 ;count(*) Returns the number of rows in a specified Table
Output:
SELECT 5 :- 5
SELECT ‘5’ :- 5
SELECT COUNT(5) :- 1
SELECT COUNT(‘5’) :- 1
SELECT COUNT(*) :- 1
Point to be known is that there is no difference between last 3 queries, they will always return identical results, wherever they are used.
select 5 – 5
select ‘5’ – 5
select count (‘5’) – 1
select count (5) – 1
select count (*) – 1