Viewing 15 posts - 166 through 180 (of 1,923 total)
Attachments missing..
Also can you please clarify th eexpected result ?
May 2, 2012 at 4:23 pm
Phil Parkin (5/1/2012)
select ISNUMERIC('Tandoori chicken') [NotNumeric], ISNUMERIC(55.99999) [Numeric]
I LOVE 'Tandoori chicken' :w00t:
May 2, 2012 at 3:15 pm
May 2, 2012 at 2:54 pm
Even more compact
select t.event , Frst = MAX (t.event_date) , min(CrsApp.mn)
from mytable t
cross apply (
...
May 2, 2012 at 2:45 pm
How about this?
Sample data:
declare @Date table ( dt datetime)
insert @Date select '2011-10-07 13:18:48.720'
insert @Date select '2011-07-26 15:46:16.407'
insert @Date select '2011-12-26 15:46:16.407'
insert @Date ...
May 2, 2012 at 2:00 pm
Why dont you delete (or truncate) the table and then insert the output?
You are trying to randomize each row , create new combinations and replace each row.. So why not...
May 2, 2012 at 12:53 pm
We can.. but tell me this, if there were more than one non-null value for each comment, wchich one should be used for pivoting?
And also, do u always only 4...
May 2, 2012 at 12:44 pm
One another way:
declare @inputdt date = '2012-04-10' ;
; with Edge1 as
(
select t.event ,Frst = MAX (t.event_date)
from mytable t
where t.event_date < @inputdt
group by t.event
)
,Edge2...
May 2, 2012 at 12:10 pm
How about this?
DECLARE @Table Table ( String VARCHAR(100))
insert into @Table values
('/Customer Service2/CS Team - CareFirst Connect')
,('/Enrollment Analyst/Enrollment Analyst 1')
,(' /Enrollment Technician/Enrollment Technician 9/Enrollment Technician 8')
SELECT...
May 2, 2012 at 9:40 am
sqlfriends (5/1/2012)
Thank you, ColdCoffee,It works perfectly.
The function seems a very useful one
Please forward your thanks to the poster above me, who invented it 😀
And the previous poster is ----> Jeff...
May 1, 2012 at 5:34 pm
This?
SELECT P.Product_id , CrsApp.Item , PD.description
FROM Product P
CROSS APPLY dbo.DelimitedSplit8K (P.Category , ',') CrsApp
JOIN Prod_desc PD
ON CrsApp.Item = PD.Category
ORDER BY CrsApp.Item ,P.Product_id , ...
May 1, 2012 at 10:39 am
This works for me
select Admission_Exam , AVG(cast( Admission_Exam_Score as float))
from Admission_Exam_Test
group by Admission_Exam
Wat error are you gettig?
April 30, 2012 at 3:56 pm
Amazing work posting all the needed information! Awesome.
IS this what u were looking for?
; with GroupedData AS
(
Select
RN = ROW_NUMBER() over (partition by empid order by AddDate)
,EmpID
,AddDate
,count(recid)as daylyCount
from...
April 28, 2012 at 1:13 pm
Viewing 15 posts - 166 through 180 (of 1,923 total)