Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In MySql,
If my procedure return details like

FromDate      ToDate        Data        Value
----------------------------------------------
2004-01-01    2014-01-01    Data1       100
2014-01-01    2020-01-01    Data1       20
2014-01-01    2020-01-01    Data2       50
----------------------------------------------

Here for the time period [2004-01-01 to 2014-01-01] Data2 is missing.So how it possible to enter a row like
2004-01-01    2014-01-01     Data2       0
Posted
Updated 20-May-14 21:12pm
v3

ther you are![^]
 
Share this answer
 
insert into table1 values('2004-01-01', '2014-01-01', 'Data2', 0)

mysql_insert[^]
 
Share this answer
 
Please check the query your stored procedure is using to return the results.
You will need to check if there is any filter condition applied to exclude such 0 valued records. If yes then remove it.

You will also have to check if any such data exists in the related table. If no then first ensure that your tables have the required data.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900