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

What is prepare statement in mysql?

0 Answers  


Which mysql function is used to concatenate string?

1 Answers  


How to change the database engine in mysql?

0 Answers  


Do while loop in mysql procedure?

0 Answers  


Explain the difference between primary key and candidate key in mysql?

0 Answers  






What is truncate in mysql?

0 Answers  


What is the difference between heap table and temporary table?

0 Answers  


What is the purpose of -> in the mysql terminal?

0 Answers  


What is pragma exception?

0 Answers  


Is mysql and sql are same?

0 Answers  


How many ways to get the current time?

0 Answers  


What are mysql functions?

0 Answers  


Categories