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


how to find missing numbers between two order numbers;
and dates ?



how to find missing numbers between two order numbers; and dates ?..

Answer / laxman

SELECT encounter_nr FROM care_encounter WHERE
(care_encounter.encounter_date BETWEEN '2008-03-01' AND
'2008-04-01') order by encounter_nr;
this will show 7000 rows in between date 2008-03-01 and
2008-04-01 ;
encounter_nr
200803010000
200803010001
200803010002
.
.
.
.
200803313229
in this i want to know which number is missing plz

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More MySQL Interview Questions

Do you need a license for mysql?

0 Answers  


Explain the difference between procedure and function in mysql?

0 Answers  


Is mysql distributed?

0 Answers  


what is a cursor? : Mysql dba

0 Answers  


Use a regular expression to find records. Use “REGEXP BINARY” to force case-sensitivity. This finds any record beginning with r.

0 Answers  


How to add a new column to an existing table in mysql?

0 Answers  


How big is a blob mysql?

0 Answers  


What are the differences between char and nchar?

0 Answers  


How many mysql connections can handle?

0 Answers  


In how many ways we can retrieve the data in the result set of MySQL using PHP? What is the difference between mysql_fetch_object and mysql_fetch_array ?

0 Answers  


Write a query to retrieve a hundred books starting from 20th.

0 Answers  


what is the difference between the nvl function, ifnull function, and the isnull function? : Mysql dba

0 Answers  


Categories