What does “select count(1) from tab” result?

Answers were Sorted based on User's Feedback



What does “select count(1) from tab” result?..

Answer / gourvendra singh

select count(1) from tab will give the total number of
tables,views and synonms present in the current schema.

Is This Answer Correct ?    61 Yes 6 No

What does “select count(1) from tab” result?..

Answer / vishnu

SELECT COUNT(1) FROM TAB

ANS:It gives the total number of tables,views,synonyms
present in that schema.

Is This Answer Correct ?    23 Yes 2 No

What does “select count(1) from tab” result?..

Answer / prerna

If tab is table name then it gives total no of rows present
in that table.

Is This Answer Correct ?    9 Yes 7 No

What does “select count(1) from tab” result?..

Answer / sunil

Tab is system view which will provide you the list of
table,view,cluster,synonym in the current schema .

Is This Answer Correct ?    1 Yes 0 No

What does “select count(1) from tab” result?..

Answer / guest

it results out the count of record in the table result

Is This Answer Correct ?    1 Yes 1 No

What does “select count(1) from tab” result?..

Answer / 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

What does “select count(1) from tab” result?..

Answer / phani

It returns the count of all tables for that user.

Is This Answer Correct ?    1 Yes 6 No

What does “select count(1) from tab” result?..

Answer / indrajeet kumar

SELECT COUNT(1) FROM TAB

RESULT IS 91

Is This Answer Correct ?    2 Yes 17 No

What does “select count(1) from tab” result?..

Answer / ali

A column function does not use any column name.

Is This Answer Correct ?    3 Yes 20 No

What does “select count(1) from tab” result?..

Answer / mahi

It will give the latest row of the table.

Is This Answer Correct ?    2 Yes 51 No

Post New Answer

More SQL PLSQL Interview Questions

we have a package and we have grants to execute that package inside of that we have table, here we don't have privileges to this table? whether this package will execute or not?

3 Answers   TCS,


what is the difference between binary_integer and pls_integer

2 Answers   TCS,


What is a temporal data type?

0 Answers  


Define SQL and state the differences between SQL and other conventional programming Languages?

0 Answers  


Why we use stored procedure instead of query?

0 Answers  






How do I view tables in sql developer?

0 Answers  


Can we insert in view in sql?

0 Answers  


What is procedure and function in sql?

0 Answers  


What version is sql?

0 Answers  


How to find string or key value using pl/sql code?

2 Answers   Ramco,


If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????

0 Answers  


why we use nocopy?

2 Answers   Polaris,


Categories