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

Can we join 3 tables in mysql?

0 Answers  


What is mysql and how it works?

0 Answers  


What are the differences between char and nchar?

0 Answers  


What is mysql default database?

0 Answers  


If you specify the data type as DECIMAL (5,2), what?s the range of values that can go in this table?

2 Answers  


Explain the different types of constraints?

0 Answers  


What is a tinyint?

0 Answers  


How do I create a database in mysql workbench?

0 Answers  


How to store values to array from mysql database in php?

0 Answers  


What is logs in mysql?

0 Answers  


How to give user privilages for a db. Login as root. Switch to the mysql db. Grant privs. Update privs.

0 Answers  


Can we rollback truncate in mysql?

0 Answers  


Categories