Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

4460


what is cross join? : Sql dba

1048


Which data type is a composite type?

1036


What is the use of sql trace?

1003


How exception is different from error?

1065


How do I create an index in word?

1074


How to run sql*plus commands in sql developer?

1206


Why primary key is required?

1043


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

1076


what is the functionality of the function htmlentities? : Sql dba

1005


what is data manipulation language? : Sql dba

1063


How to call shell script from pl sql procedure?

1357


Enlist the data types that can be used in pl/sql?

1107


Why do we need a foreign key?

1166


Differentiate between syntax and runtime errors.

1239