Viewing 15 posts - 6,991 through 7,005 (of 10,144 total)
-- use an INNER JOIN if the data permits
-- i.e. if every header has at least one line, and always will.
-- Option 2
SELECT
h.GroupHeaderID,
h.GroupName,
MemberCount = COUNT(*)
FROM table_A h
LEFT JOIN table_B l...
November 25, 2010 at 6:37 am
Frost.
Very pretty morning in Warwickshire, England.
November 25, 2010 at 2:32 am
Gianluca Sartori (11/24/2010)
Chris Morris-439714 (11/24/2010)
Try this, Gianluca, it's aimed at 12-14yo rather than 5-7yo:LOLOAQICI82QB4IP
What's this? Some Windows' activation key? 😀
Yes but I used DBCC TIMEWARP to get it and Windows...
November 24, 2010 at 7:05 am
Gianluca Sartori (11/24/2010)
WayneS (11/23/2010)
Alvin Ramard (11/23/2010)
Craig Farrell (11/23/2010)
Alvin Ramard (11/23/2010)
LutzM (11/23/2010)
Alvin, that's what you look like when you've had time to shave?!? 😀But isn't that counterproductive regarding hunting season?
Depends on...
November 24, 2010 at 6:51 am
gaurav-404321 (11/24/2010)
Please suggest for n no of months.
No problem:
DECLARE @Today DATETIME, @nMonths TINYINT
SET @Today = GETDATE()
SET @nMonths = 12
SELECT MonthEndDate = DATEADD(dd, -1, DATEADD(month, n.n + DATEDIFF(month, 0, @Today),0))
FROM...
November 24, 2010 at 6:47 am
How many months do you want, is it 12 or 13?
November 24, 2010 at 6:40 am
Cheryl McLaughlin-385812 (11/24/2010)
What do you mean you worked for us for 4 months in the spring? Sorry, don't recognize the name.
Cheryl McLaughlin-385812 (11/23/2010)
November 24, 2010 at 6:36 am
DECLARE @startdate DATETIME, @enddate DATETIME
SELECT @startdate = '15 - dec - 2009', @enddate = '16-march-2010'
--Output should be Jan - 31, Feb - 28, March - 31
SELECT MonthEndDate = DATEADD(dd, -1,...
November 24, 2010 at 4:54 am
CirquedeSQLeil (11/23/2010)
I want to bring up the age old question related to books.
If you were to buy a SQL book, what would you buy? If there is a...
November 24, 2010 at 2:39 am
a_ud (11/23/2010)
@eventsList is a TABLE type with several fields. It is defined as the RETURNS value of a function (all this comes from a function. The final goal is...
November 23, 2010 at 9:59 am
a_ud (11/23/2010)
@eventsList is a TABLE type with several fields. It is defined as the RETURNS value of a function (all this comes from a function. The final goal is...
November 23, 2010 at 9:41 am
a_ud (11/23/2010)
November 23, 2010 at 8:32 am
Viewing 15 posts - 6,991 through 7,005 (of 10,144 total)