how to find missing numbers between two order numbers;
and dates ?
Answer Posted / 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 View All Answers
What is a string in mysql?
How to get a version of mysql?
What is the phantom problem?
Write a query to stop mysql in unix
Explain the difference between mysql_fetch_array(), mysql_fetch_object()?
How can you filter the duplicate data while retrieving records from the table?
How many TRIGGERS are allowed in MySql table?
How do you flush privileges?
Why mysql is open source?
How do I optimize a selected query in mysql?
Is mysql a distributed database?
What is cast in mysql?
How can you take the backup and restore a mysql database using php?
What are slow queries?
How to change the database engine in mysql?