asp.net - C# or SQL Server - How to get earliest or latest date from multiple date tables? -
I'm not sure the title completely explains what I'm after here, to explain it in a bit more detail Try ...
I should be able to display this table ...
Table:
- Items (each time this item was installed and removed)
- Supplier (Supplier
- Rate (Supplier Rate)
It should be able to:
- Categories in the selected period
- Get the initial date from the tables as the starting date
- Get the latest date
If the start date is before the start date and after all the end dates end, it will be a simple single line. But on any date that starts or ends in the middle of the period, Determine the relevant dates for the line When T and the last line on the next start after completion.
I have completed this entire program using Linq, I have something that seems like it works, but the way Ivy has done it is not really happy.
My question is, what is a great way to deal with these dates? And what should I use for the best results of C # or SQL Server?
The glade management industry first to see someone working on energy.
Unfortunately, I do not consider your question a lot, though, I suggest:
"Generate / retrieve the layer to the data logic".
Display: SQL Server> .NET> LINQ
The functionality of LINQ is very limited and it is not easy to deal with.
Have you tried using SQL stored procedure to bring back a set of data?
The task can easily solve your problem within SQL query such as case statement
and small group
.
In this situation, SQL Server will return the desired data to C #, then C # should have a way to present these data.
Comments
Post a Comment