Viewing 15 posts - 4,546 through 4,560 (of 15,381 total)
I would advise strongly against creating a single procedure to retrieve all this data in a single step. As you stated, you will end up being forced to use dynamic...
June 9, 2014 at 8:14 am
vigneshkumart50 (6/6/2014)
I have a table with a column which has list of ID in numbers. Any number can be master and child, but once an ID is mapped to child...
June 9, 2014 at 8:02 am
Myke85 (6/8/2014)
Yes, It is the really data and it is very strange for this that i have written for...
June 9, 2014 at 7:46 am
boks_18 (6/6/2014)
I have removed the cursor and declare a temporary table where we perform data insert the deleted table and I make a while where I walk every record in...
June 9, 2014 at 7:43 am
Lynn Pettis (6/6/2014)
SwePeso (6/6/2014)
Naomi N (6/6/2014)
I think we wanted customers who bought A and B but not C, so your query will be even simpler,
MIN(productID) = 'A' and MAX(productID) =...
June 6, 2014 at 2:18 pm
Hi and welcome to the forums. What you have here is a performance timebomb. Cursors are notoriously bad for performance and inside a trigger it is a recipe for disaster....
June 6, 2014 at 2:00 pm
sqldriver (6/6/2014)
sql-lover (6/6/2014)
MyDoggieJessie (6/6/2014)
What's a performance review? :hehe:
The one that your supervisor does on you every year? To check if you are doing "Index Seeks" or just "scans" at your...
June 6, 2014 at 1:37 pm
autoexcrement (6/6/2014)
I understand. I will try to come up with some good sample DDL. Thanks nonetheless for your efforts.
Here is a start.
create table scratch
(
Col1 bit
,Col2 int
,Col3 varchar
,Col4 varchar
,Col5 varchar
,Col6 varchar
,Col7...
June 6, 2014 at 1:36 pm
autoexcrement (6/6/2014)
SQL2K5. 🙁
Derp! I guess you did post in the 2005 forum. 😉
June 6, 2014 at 12:22 pm
valeryk2000 (6/6/2014)
2008
Not big on providing details today I see. What does this query return?
select @@VERSION
The bottom line is that there are hotfixes out there to deal with this. You were...
June 6, 2014 at 10:43 am
fawad.majid (6/6/2014)
I have two columns vital_bp_diastolic & systolic and the formula to calculate the MAP is [(2 * column) + column]/3 in SQL
i tried but...
June 6, 2014 at 10:34 am
The error you are seeing does not have to do with the order by. What version of sql are you running? There have been hotfixes for this issue depending on...
June 6, 2014 at 10:30 am
valeryk2000 (6/6/2014)
So ... order by does not work with intersect?
It works fine with intersect. Here is a full example to demonstrate it works just fine.
create table #tblLetterFlag
(
ClinicalReviewID int identity,
SomeValue varchar(10)
)
create...
June 6, 2014 at 10:27 am
valeryk2000 (6/6/2014)
Ordering by column name does not help
It isn't a logic thing. The reason you sort by column name is because if you order by ordinal position and your query...
June 6, 2014 at 9:37 am
Viewing 15 posts - 4,546 through 4,560 (of 15,381 total)