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...


suppose u hav 1 book with set...page 1-100 n 101 -200
now print page from 2-100 n 102 -200...
how we will do..?

Answers were Sorted based on User's Feedback



suppose u hav 1 book with set...page 1-100 n 101 -200 now print page from 2-100 n 102 -200... how..

Answer / rajesh venati

Actually i didn't get u r question exactly, As per above
question, it will also work

select page_no from book where page_no not in(1,101);

Is This Answer Correct ?    4 Yes 0 No

suppose u hav 1 book with set...page 1-100 n 101 -200 now print page from 2-100 n 102 -200... how..

Answer / tamilarasan

Say you have table with column "page_no" starts from 1 to
200.

Run the below query to get the desired answer

select page_no from book1 where mod(page_no,100) != 1

Is This Answer Correct ?    4 Yes 1 No

suppose u hav 1 book with set...page 1-100 n 101 -200 now print page from 2-100 n 102 -200... how..

Answer / tamilarasan

If you run this query select page_no from book1 where mod
(page_no,100) != 1

in a single column u will get the page nos as follows

RESULT
-------
2.
...
100
102
...
200

Is this the one you want?

Is This Answer Correct ?    4 Yes 1 No

suppose u hav 1 book with set...page 1-100 n 101 -200 now print page from 2-100 n 102 -200... how..

Answer / tarun

select page_no from book1 where page_no between 2 and 100 or
page_no between 102 and 200

Is This Answer Correct ?    3 Yes 0 No

suppose u hav 1 book with set...page 1-100 n 101 -200 now print page from 2-100 n 102 -200... how..

Answer / ankit

@ Tamilarasan

i wann to display both set of pages in single query...( i m
new in SQL...ONLY 2 MONTH exp.)

Is This Answer Correct ?    0 Yes 0 No

suppose u hav 1 book with set...page 1-100 n 101 -200 now print page from 2-100 n 102 -200... how..

Answer / ankit

@Tamilarasan

thanks working.....-)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

What is the basic form of sql query?

0 Answers  


can we create index on index?

7 Answers   iFlex, Symphony,


Can we use ddl statements in stored procedure?

0 Answers  


What is the maximum number of triggers, you can apply on a single table?

0 Answers  


What is pl sql collection?

0 Answers  


How to call DDL statements from pl/sql?

5 Answers  


how many groups of data types? : Sql dba

0 Answers  


Explain lock escalation? : Transact sql

0 Answers  


Why do we use partitions in sql?

0 Answers  


What are functions in sql?

0 Answers  


How can i insert data inro a table with 3 columns using FORALL?

2 Answers   Oracle,


List the ways to get the count of records in a table?

0 Answers  


Categories