sql query to get zero records from a table having n no of
records

Answer Posted / mallik

select * from table_name where rownum < n -(n-1)

--where 'n' is no of rows.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is offset-fetch filter in tsql? : Transact sql

539


What steps server process has to take to execute an update statement?

512


What are the different types of joins in sql?

585


What are pl sql procedures?

522


What does the argument [or replace] do?

583






What is the difference between syntax error and runtime error?

614


What is the difference between rename and alias?

711


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

550


what are the different tables present in mysql, which type of table is generated when we are creating a table in the following syntax: create table employee (eno int(2),ename varchar(10)) ? : Sql dba

620


what happens if null values are involved in expressions? : Sql dba

568


what is the stuff function and how does it differ from the replace function? : Sql dba

624


What is a native sql query?

498


What is the function that is used to transfer a pl/sql table log to a database table?

557


What is pl sql architecture?

504


what is bcp? When is it used?

582