What does “select count(1) from tab” result?
Answer Posted / rutujagabhane
select* from tab; gives you the o/p as a table containing rows and columns. The rows contain the name of table ,select count(1) from tab returns the no or rows in tab .
Indirectly the statement returns no of tables in tab;
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why trigger is used in sql?
Which is faster count (*) or count 1?
How is a PL/SQL code compiled?
What are types of joins?
What port does sql server use?
What are the different schemas objects that can be created using pl/sql?
What is normalisation and its types?
How do I use google cloud in sql?
define join and explain different type of joins? : Sql dba
Is postgresql a server?
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5
Which is better join or inner query?
What are the two virtual tables available at the time of database trigger execution?
What is the largest value that can be stored in a byte data field?
Why truncate is faster than delete?