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:

  1. Items (each time this item was installed and removed)
  2. Supplier (Supplier
  3. Rate (Supplier Rate)

It should be able to:

  1. Categories in the selected period
  2. Get the initial date from the tables as the starting date
  3. 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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -