Viewing 15 posts - 34,996 through 35,010 (of 59,099 total)
Partial self-referencing Cross-Join disguised as an inner join with duplicate exclusion... you'll need to change the table names to your real table name.
SELECT orig.Student_ID,
...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 7:31 pm
Craig Farrell (2/16/2011)
and we haven't gotten to 8/2/2011 yet (I read it as 2010 for some reason) so yes, it's after an hour ago... LOL
DD/MM/YYYY 😉 It's why even...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 7:03 pm
Someone like Peter Larsson will probably come up with something simpler, but this works...
SELECT CASE
WHEN GETDATE() <=...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:59 pm
jinghua.ji (2/17/2011)
Recently, I was working on turning structured audit string into a table
sample string 1:
,2 Column_Name "Col1" "Col2" , 2 New_Column_Value "A" "B" , 2 Old_Column_Value "a" "b"
sample...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:14 pm
wolfkillj (2/17/2011)
Thanks for the tip on the (max) vs. (8000)/(4000) nvarchar/varchar data types in these functions. When I implemented your new splitter function, I used nvarchar(4000), which covers...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 5:25 pm
The Dixie Flatline (2/17/2011)
Jeff Moden (2/16/2011)
WayneS (2/15/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:57 am
akhandels (1/17/2011)
I have this piece of code written for SQL Server 2008. With all the limitations of SQLCE can anybody please help to rewrite this query?
It is a...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:51 am
wolfkillj (2/16/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:44 am
mea99sdp (2/16/2011)
@StartDate datetime,@EndDate datetime
AS
BEGIN
SET NOCOUNT ON;
SELECT TOP (100) PERCENT dbo.GetDay(ModuleTrx.Datestamp) AS Date, dbo.DayNight(ModuleTrx.Datestamp) AS DayNight, Modules.Type, COUNT(*) AS Count
FROM ...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:34 am
mea99sdp (2/16/2011)
inline code? a little help please:P
What I meant was that the code in the function is easy enough... remove the code from the function and use it directly in...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:29 am
timotech (2/17/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:27 am
ColdCoffee (2/16/2011)
Oops, Jeff had already posted the same solution 🙂 Sorry Jeff,dint see it 🙂
No problem CC... now the OP has a couple of choices. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:23 am
You bet. Thank you for the reply. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
February 17, 2011 at 6:21 am
GSquared (2/16/2011)
Fal (2/16/2011)
Koen Verbeeck (2/15/2011)
Fal (2/15/2011)
WayneS (2/15/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2011 at 6:33 pm
Fal (2/16/2011)
Brandie Tarvin (2/16/2011)
... But I'd avoid dark alleys, if I were you....
Well, there goes the joy in life.
But wait, you mentioned something about "tar and feathers"??
Steve.
Mmmmmm. Makes...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 16, 2011 at 6:32 pm
Viewing 15 posts - 34,996 through 35,010 (of 59,099 total)