Viewing 15 posts - 1,546 through 1,560 (of 2,458 total)
pietlinden (4/28/2015)
April 28, 2015 at 9:12 pm
I think you are looking for (I'm calling your Year column "yearCol" and month column "monthCol":
WHERE
(yearCol = 2014 AND monthCol >= 9) -- All dates in year...
April 28, 2015 at 9:10 pm
Using the DDL and example data that you provided can you provide an example of what the correct output would look like?
April 28, 2015 at 5:20 pm
Getting a cert should not hurt you in any way. That said, I learned C# about 12/13 years ago because, at the time I wanted to be a .NET web...
April 28, 2015 at 11:38 am
The @ sign is used for referring to XML attributes. You are looking for the value of the Element.
Below is the code that will get you what you are...
April 27, 2015 at 8:56 pm
dwain.c (4/27/2015)
Alan.B (4/27/2015)
Jeff Moden (4/26/2015)
Alan.B (4/26/2015)
April 27, 2015 at 8:37 pm
Gary Harding (4/27/2015)
Jeff Moden (4/26/2015)
You're seriously aware of one of the more famous Pseudo-Cursors there is... a SELECT that uses a Tally Table.
When I first saw this type of usage...
April 27, 2015 at 10:45 am
Jeff Moden (4/26/2015)
Alan.B (4/26/2015)
Over the past year I have heard some folks around here talk about a "set based loop". What's that all about? Can someone provide an example?
There are...
April 27, 2015 at 10:44 am
I figured it out...
$myArray =@()
foreach ($item in $TestLocations) { $myArray += $item.LineNumber }
April 24, 2015 at 2:30 pm
dwain.c (4/20/2015)
SELECT name, =MAX()
FROM
(
SELECT name,...
April 22, 2015 at 8:30 pm
DonlSimpson (4/22/2015)
Alan.B (4/21/2015)
Minnu (4/21/2015)
The solution provided by are working fine..
but there is a change in my result.
my request is
if a record_1 is in Table_A and Table_B, then
output...
April 22, 2015 at 6:07 pm
Read Paul Whites articles about APPLY, they are the best out there IMHO. These are the two article that really helped me understand APPLY:
April 22, 2015 at 3:43 pm
-- a db we both have
USE tempdb
GO
-- create your table
IF OBJECT_ID('tempdb.dbo.xdocuments') IS NOT NULL DROP TABLE dbo.xdocuments
GO
CREATE TABLE dbo.xdocuments(xid int not null, yourxmlcolumn xml not null);
GO
-- insert a couple records
INSERT...
April 22, 2015 at 3:28 pm
Luis and Sean beat me to it... I was going to add, here's a good article on this subject:
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns[/url]
April 22, 2015 at 2:34 pm
J Livingston SQL (4/22/2015)
Alan.B (4/22/2015)
SELECT
ab.AddressCode,
AddressInstance = ROW_NUMBER() OVER (Partition by ab.AddressCode ORDER BY (SELECT (NULL))),
ab.PostCode,
...
April 22, 2015 at 12:04 pm
Viewing 15 posts - 1,546 through 1,560 (of 2,458 total)