Viewing 15 posts - 166 through 180 (of 859 total)
GilaMonster (10/25/2012)
Correlated subqueries are not usually more expensive than joins, they...
October 25, 2012 at 4:43 pm
so i went for the SQL CLR just to see if i could get it to work (been on a learning kick right now so im going with it) and...
October 25, 2012 at 4:37 pm
Want a cool sig (10/25/2012)
It's my understanding that joins are costly.
Would it cost less to write certain...
October 25, 2012 at 12:44 pm
in your error log is the event id 18056? If so and its not causing any issues you can preaty much ignore it (im digging through my bookmarks now...
October 25, 2012 at 11:50 am
TheGreenShepherd (10/25/2012)
October 25, 2012 at 11:08 am
Are you getting any error messages? If all you are running is Select [Job Ref], MAX([Booked Date]),MIN([Booked Date])
you should be getting an error. If so id like...
October 25, 2012 at 10:53 am
if your just getting started into sql i would suggest "Essential SQL on SQL Server 2008" by Sikha Bagui and Richard Earp (Amazon Link). i knew quite alot but...
October 25, 2012 at 10:43 am
IgorMi (10/25/2012)
PiMané (10/25/2012)
I was trying to get a "rule" for table naming but it's kind of hard to do it since every case is a casa...
You can have a table...
October 25, 2012 at 10:37 am
DiverKas (10/25/2012)
boehnc (10/25/2012)
Table: tbl.transactions T
Fields: T.visitid, T.diagnosiscode
It looks like this:
visitid, diagnosiscode
1111,34.0
1111,68.0
1111,34.2
1112,34.3
1112,45.0
1112,23.4
I need to identify the individuals that have CHF or pneumonia for each visitID....
October 25, 2012 at 10:27 am
Since the OP seems to have disappeared ill post the code.
;WITH data AS (
SELECT 101 AS StudentID, 'EJB;C++;PERL' AS Subject UNION ALL
SELECT 102,'Dotnet' UNION ALL
SELECT 103,'Java' UNION ALL
SELECT 104,'Oracle;Java;Sql' UNION...
October 24, 2012 at 7:03 pm
Are you talking about the following not returning any data?
select @datastring2 = @datastring2 + substring(@datastring,N,1)
from Tally
where n <=len(@datastring)
and substring(@datastring,N,1) <> ','
its because you are actually assigning the output of...
October 24, 2012 at 5:05 pm
You have something close to solvable. can you post DDL, Sample data, and the desired output for your tables stripped down to resemble the problem. That will help allot...
October 24, 2012 at 4:52 pm
sku370870 (10/24/2012)
Thanks very much - as you say, that does the job.Worst case will be maybe 500 rows - so I'm sure performance won't be an issue.
Thanks again.
this is sql...
October 24, 2012 at 4:39 pm
sku370870 (10/24/2012)
I've been playing with an awful mess of cursors and...
October 24, 2012 at 4:14 pm
T_Dot_Geek (10/24/2012)
capnhector (10/24/2012)
T_Dot_Geek (10/24/2012)
SELECT TaskID, BaseTaskID, SortID = Case When BaseTaskID = 0 THEN TaskID ELSE BaseTaskID END
order...
October 24, 2012 at 3:23 pm
Viewing 15 posts - 166 through 180 (of 859 total)