Viewing 15 posts - 2,191 through 2,205 (of 3,481 total)
Instead of using this:
Month(Now() -1
you could use DateAdd() and subtract a month from some date, and then return all dates between the first of the month and the last.
November 14, 2015 at 3:10 pm
Something like this? (You'd have to import the report into your project. It's using a connection to my dummy database, but you'd have to change it to point...
November 13, 2015 at 9:21 pm
Use DelimitedSplit8K and toss all the non-numeric data? Then multiply?
November 12, 2015 at 5:38 pm
I hope he's patient... osmosis takes a LONG time.
November 12, 2015 at 3:14 pm
I'm so s-m-r-t!!! Good point, Scott... DelimitedSplit8K is perfect... (How could I miss something so blindingly obvious?)
November 12, 2015 at 3:13 pm
I kinda hope he has to explain his answers....
November 12, 2015 at 1:08 pm
CREATE TABLE MyData (
VID INT,
PID CHAR(3),
AID INT,
AMT SMALLMONEY,
VNO INT
);
GO
INSERT INTO MyData(VID,PID,AID,AMT,VNO) VALUES
(123,'XYZ',000,100.00,2),
(123,'XYZ',000,103.00,324),
(123,'XYZ',011,102.00,324),
(123,'XYZ',012,325.00,324),
(123,'XYZ',011,416.00,324),
(123,'XYZ',013,155.00,324);
Here's the create table and insert statements... now, what is the output report supposed to look like? That part...
November 12, 2015 at 9:35 am
Grasshopper,
If you post your expected result and the create table and enough insert statements to replicate your setup, it's a lot easier to help. See Jeff Moden's article[/url] Forum...
November 12, 2015 at 9:03 am
look up windowing functions in BOL. Maybe read Itzik Ben-Gan's book on it. He has a bunch of examples, and explains how to go about doing things...
November 12, 2015 at 9:00 am
What version of SQL Server are you using? You can create a running sum using a windowing function ... something like this:
SELECT Protocol
, [Year]
, Weekno
, [Weekly Count]
, SUM([Weekly Count]) OVER...
November 11, 2015 at 10:29 pm
one way is to create an SSIS package that does the import and then deletes the file once the import is complete. Then you would just schedule the package...
November 9, 2015 at 8:59 pm
Yes, but I clearly don't understand it.
Basically, my understanding is that I would create a new Customer record (with a new Primary Key, but with the same Alternate Key)... it...
November 9, 2015 at 1:05 pm
hard to tell from the limited description, but you may need to use an OUTER JOIN instead of an INNER in your query. INNER by definition is "lossy", so...
November 9, 2015 at 11:05 am
Yup... Looks like Gail's comment to the effect of "It takes a LONG time to learn the ins and outs of SQL Server" was right on target... <g>
November 6, 2015 at 5:44 pm
Getting the basics down pat should take you a few years.
Phew! Now I don't feel quite so stupid.
November 6, 2015 at 4:51 pm
Viewing 15 posts - 2,191 through 2,205 (of 3,481 total)