Quote:
OriginalGriff 2hrs ago
Are you complaining that this does happen, or that it should happen?
shwetavaidya30 9 mins ago
i dont want null i want data must display as it is
Then it's a problem with your data, not your query: unless you absolutely specify that SQL should change the data in some way (as Maciej Los suggested) it will
always return exactly what it finds in the database that matches your query.
I'd start by looking at your condition and the column it is comparing against: your data examples don't make a lot of sense, since it would appear that the DB date is stored yyyy-dd-MM (a format I've never seen before and hope to never see again) while the query is passed as yyyy-MM-dd - a (sensible format). That might - for example - imply that your date column is actually a VARCHAR or NVARCHAR field, and that can give you some very silly looking results.
Sorry, but we can't do any of that for you - we have no access to your database!
(But ... I will say that storing CSV data in a DB is always a bad idea - it always creates problems later on and should be done with a separate table with a foreign key linking back to the original row.)