Viewing 15 posts - 37,216 through 37,230 (of 59,072 total)
Info on the Tally table may be found at the following URL. http://www.sqlservercentral.com/articles/T-SQL/62867/
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2010 at 3:41 pm
I'd post a coded answer except I can't start a new message with code in it. The filters at work pick it up as a possible SQL injection attack...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2010 at 3:38 pm
jerry-621596 (8/19/2010)
Thanks! Didn't even notice that. Was simply taking what he had and adding the ideas to it.
Sorry Jerry... didn't mean to direct that at you. Op...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2010 at 3:37 pm
select pass_fail_indicator
from unit_status
where station = 'LG01-TIDASSGN-03'
and pass_fail_indicator = 'P'
and modified_date
between to_date('08/18/2010 08:00:00','mm/dd/yyyy hh24:mi:ss')
and to_date('08/18/2010 15:00:00','mm/dd/yyyy hh24:mi:ss');
TO_DATE is an ORACLE function. Use a Tally table for...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2010 at 3:34 pm
m.kadlag (8/17/2010)
ID
DATETIME
ID will be generated for different timestamps.
I have a small query to be written which will return the count of ID's...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2010 at 2:39 pm
bonggoy cruz (8/19/2010)
ID, Description, Field1, Field2 ... Field9
Field1 to Field9 are all nullable fields.
I want a query to return as follows:
ID, Description, Field1
ID, Description, Field2
ID, Description,...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2010 at 2:29 pm
You're welcome, Ron, and thanks for the feedback. I knew I did ok... just had no idea of how ok. Thanks, guys.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2010 at 1:27 pm
David Webb-200187 (8/17/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 19, 2010 at 6:26 am
khushbu (8/17/2010)
My input table looks like
IDLogical_DrivesFree_SpaceSQL_ServerDate
0C ...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2010 at 9:50 pm
Dan2010 (8/16/2010)
Child Parent
A NULL
B A
C A
D C
E C
F D
G NULL
The tree structure is as...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2010 at 9:34 pm
I just got done with a long run of interviews for a Sr. Systems DBA and an SQL Server T-SQL Developer. There were about 8 candidates for each job....
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2010 at 8:09 pm
Mohit K. Gupta (8/17/2010)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2010 at 7:56 pm
Chris Morris-439714 (8/17/2010)
Jeff Moden (8/17/2010)
Oh, I see it coming...Heh Jeff got that porkchop launcher loaded up for the first triangular join post? 😀
Z'actly 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2010 at 7:52 pm
sgambale (8/17/2010)
I don't think anyone should need to distinguish between one vs...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2010 at 7:37 pm
Simplify with a real Tally table...
SELECT e.EmployeeID,LOWER(SUBSTRING(e.EmployeeName,t.N,1)) AS SplitChar
FROM #Employee e
CROSS JOIN dbo.Tally t
WHERE t.N <= LEN(e.EmployeeName)
ORDER BY e.EmployeeID
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2010 at 6:45 pm
Viewing 15 posts - 37,216 through 37,230 (of 59,072 total)