What does “select count(1) from tab” result?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Answer / guest
it results out the count of record in the table result
Is This Answer Correct ? | 1 Yes | 1 No |
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 |
Answer / phani
It returns the count of all tables for that user.
Is This Answer Correct ? | 1 Yes | 6 No |
mention if it is possible to import data directly from t-sql commands without using sql server integration services? If yes, what are the commands? : Transact sql
Can I join the same table twice?
What is nvarchar max in sql?
What is bulk collect in pl sql?
What has stored procedures in sql?
Are sql views compiled?
What is an emotional trigger?
What is the use of partition by in sql?
What are wait events. Describe the wait event tables.
What are the events on which a database trigger can be based?
Is a table valued function object?
describe mysql connection using mysql binary. : Sql dba