Viewing 15 posts - 2,266 through 2,280 (of 3,482 total)
Why do you want to use cursors for this? "Cursor" is a dirty word around here. You could probably do all this with either aggregate or window functions.
September 20, 2015 at 7:16 pm
If your goal is to show all the sales from the latest sale date, then no.
September 19, 2015 at 12:08 am
Sorry, didn't read very carefully...
I think this will do what you want... or most of it.
DECLARE @Date1 DATE = '10-Aug-2015',
@Date2 DATE = '07-Sep-2015'
,@Diff INT
SELECT @Diff = ABS(DATEDIFF(day,@Date1,@Date2));
PRINT @Diff;
the ABS() removes...
September 18, 2015 at 1:45 am
For grins, create a dummy table and just copy a bunch of tweet URLs, and see if they work. That's where I got them for my report. If that...
September 17, 2015 at 10:31 pm
Sounds like homework. Show us what you tried.
September 17, 2015 at 7:12 pm
What happened when you ran the query to see if there were any "illegal" hyperlinks?
The INSERT statement should have nothing to do with it, but it's your database,...
September 17, 2015 at 6:33 pm
Table 1 has "Gender" field with "Male" and "Female" in it, table 2 has "Gender" field with "M" and "F" in it. a query to compare data and list the...
September 17, 2015 at 5:51 pm
I would write a query against the underlying datasource (table(s)) to see what's going on.
Something like:
SELECT *
FROM TweetsList
WHERE TweetURL NOT LIKE 'http://%'
AND TweetURL NOT LIKE 'https://%'
AND TweetURL NOT LIKE 'ftp://%'
AND...
September 17, 2015 at 5:47 pm
I don't think so. I did the first one as an embedded dataset and created a union query, just because I wanted the report to be as simple as...
September 17, 2015 at 3:53 pm
Post if it still doesn't work and explain what you did step by step... because try as I might, I can't reproduce the issue. Can you open the links...
September 17, 2015 at 2:39 pm
Okay, taking it from the top, because I have no clue why mine works and yours doesn't.
Create a dummy table:
CREATE TABLE TweetsList(
TweetDate DATE NOT NULL,
TweetURL VARCHAR(50) NOT NULL
);
GO
Populate:
INSERT...
September 17, 2015 at 2:02 pm
I don't have any data... Should I just make some up?
September 17, 2015 at 1:37 pm
Can you post your report with some dummy data? either embed the data like I did or post CREATE TABLE/INSERT scripts to populate it.
The data can be completely fake......
September 17, 2015 at 12:48 pm
Viewing 15 posts - 2,266 through 2,280 (of 3,482 total)