Viewing 15 posts - 2,281 through 2,295 (of 3,500 total)
Exercise your Google-Fu.
If you google it, you'll find more answers than you can shake a stick at.
September 20, 2015 at 10:31 pm
Maybe start here:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
and maybe this:
http://spaghettidba.com/?s=how+to+post
Look at your question from our perspective. How are we to test any of it? Without data, we can't. If you set up the...
September 20, 2015 at 9:36 pm
Got some table definitions and some fake data? (Fake if it's confidential... representative is fine). And expected output?
September 20, 2015 at 8:00 pm
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
Viewing 15 posts - 2,281 through 2,295 (of 3,500 total)