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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does rownum mean in sql?

558


what is self join and what is the requirement of self join? : Sql dba

683


what are rollup and cube in t-sql? : Transact sql

661


Does sql profiler affect performance?

557


Write the command to remove all players named sachin from the players table.

738






What is the difference between delete and truncate commands?

515


What is java sql connection?

514


What does fetching a cursor do?

615


Can you select everything, but 1 or 2 fields, without writer's cramp?

500


How do I partition a table in sql?

542


What is group by in sql?

550


What is rownum in sql?

559


What is a relationship and what are they?

580


Does view contain data?

618


what is text? : Sql dba

564