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 |
how do you know the version of your mysql server? : Sql dba
What is a primary key example?
Can we insert data into view?
Where the Pre_defined_exceptions are stored ?
What is query syntax?
What are hotfixes and patches?
What is the difference between SQL and PLSQL
What view means?
. have a tablle like this: cust acc ----------- a 1 b 2 b 3 c 4 c 5 c 6 I Want below o/p: cust acc --------------- a 1 b 2|3 c 4|5|6 Please any one can you have any ideas share me. I have urgent requirement. CUST ACC a dv b fg b bh c mk c cl c so result:- A B c dv fg mk bh cl so
What is clustered and non-clustered indexes?
What is the difference between sql and isql*plus?
How can I change database name in sql?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)