I am new to LINQ...I'm not sure if what I want to do can be done within a query, but maybe one of you LINQ experts can tell if so, and if it can, hopefully show me how. Here's the situation:
I have 3 files, whose names I have stored in a string[]: string[] files2use = new string[]...
A friend pointed out that if I add the DISTINCT in the subquery, everything would work....so here's the final query:
SELECT Sum(close), Avg(close), inputdate, ticker
FROM table1
WHERE date in (SELECT distinct top 2 date from table1 WHERE date <= inputdate ORDER BY date DESC)
GROUP BY ticker...
Well, I was hoping to solve this problem without creating new procedures, functions, etc.
For what it is worth, this is what I had so far....
SELECT Sum([table1].[close]) AS sumOfClose, Avg([table1].[close]) AS avgOfClose, inputdate AS MADate, [table1].[ticker]
FROM table1
WHERE...
I've got a problem for you Access/SQL gurus out there...
I am using Access 2000.
This problem involves Table1 with these columns: date, ticker, close. This table is updated daily with the closing prices of various stocks.
I am trying to develop a query that prompts me for a date (we can...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.