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 |
Explain what is an index?
How can the performance of a trigger be improved?
Does truncate free space?
What do you understand by pl/sql records?
what are %TYPE and %ROWTYPE? what is the difference?
7 Answers ICICI, Saama Tech, Sail,
Does pl/sql support create command?
What is pl sql script?
1. how to use the check option constraints in sql query..? 2.how to add data in a complex query ? 3.is it possible to use commit or rollback or savepoint in triggers...if not why please explain with examples...? 4.what is the difference between meterialized view and normal view..how to create materialized view and how to use it..? 5.what is varray...? what is the advantage of the varray ? please expalin with a simpel example..i want to load into a table (student no and name and his marks..) please give example.. 6.what are the bulk bind exceptions...how to use bulk bind and how to use bulk collect..please explain with example... 7.what is for update of and where current of ...? 8 what is the use of nowait ? 9.please give an example for nocopy in a simple plsql query 10.create an index in a table...tellme how to use the index in a where clause to do performance tunning...
How do I run a sql script?
What is string data type in sql?
What is sql prepared statement?
What are character functions?