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 |
What is cursor status?
mail-id table contains two columns(email_id,userid) it contains different types of mail-ids,and no of users. here username length is differ na,(ex- tamil@yahoo.com,joshua@hotmail.com like) now i want to fetch the email-ids only starting from '@' (ex-@gmail.com,@yahoo.com,@hotmail.com
I have 2 packages A and B. Now package A references Package B and Package B references Package A. How do you compile such inter-dependent objects in PL/SQL
5 Answers Doyensys, Infosys, Metric Stream,
Is sql a backend language?
What is trigger and stored procedure in sql?
Is crud a cuss word?
how instead of triger is helpful for mutating tables errors handlling ?
How to find last day of the month in sql query
What does t sql mean?
If I have a table T with 4 rows & 2 columns A & B. A has values 1,2,3,4. and B has 10,20,30,40. Write an Update SQL query which can Swap the values of A & B for all records. (Do not use a sub-query)
How to maintain the history of code changes of pl/sql?
How do I save a stored procedure?
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)