Viewing 15 posts - 466 through 480 (of 1,182 total)
I would think Mark's solution with a range table and using an INNER join would be better. I would also move the ORDERing out of the procedure and into the...
June 16, 2008 at 9:31 am
No questions are stupid, they're just sometimes "untimely" as in the answer comes to you right after you ask it.
June 16, 2008 at 9:04 am
adam (6/16/2008)
Thanks. I would like to actually convert these permanently to upper case.Carolyn Richardson (6/16/2008)
Try SELECT UPPER('John Doe')
UPDATE yourTable
SET yourColumn = UPPER(yourColumn)
June 16, 2008 at 9:00 am
This is NOT a direct answer to your question, but perhaps it will get you thinking towards a "compact" solution.
This requires the use of a numbers or "tally" table described...
June 16, 2008 at 8:24 am
In your case, just plug the numbers into your query.
June 5, 2008 at 2:04 pm
With all due respect, this community is for people looking for assistance, not complete solutions.
I think I speak for eveyone here in saying that we would more than happy to...
June 5, 2008 at 1:42 pm
ramaanujamr (6/5/2008)
June 5, 2008 at 1:16 pm
James Raddock (6/4/2008)
Select the results in a temp tableOpen a forward on read cursor and concatenate into a varchar(max) variable.
OUCH, stay away from cursors!!!!
I would suggest ...
DECLARE @concatRow VARCHAR(MAX)
-- create...
June 4, 2008 at 11:44 am
DECLARE @t TABLE (testData VARCHAR(50))
INSERT @t
SELECT 'ghghgh ghghgh ghghg' UNION ALL
SELECT 'ghghgh ghghxxxhghg' UNION ALL
SELECT 'ghghgxhghg' UNION...
June 3, 2008 at 1:45 pm
Hmmm, not off the top of my head.
June 3, 2008 at 1:23 pm
You also need to think about the special case when E.OBSERV_VALUE = @VALUE. 😛
June 3, 2008 at 12:51 pm
SELECT
DISTINCT C.TEST_DESC AS LAB_TEST_DESC
,E.RESULT_DESC
FROM .....
WHERE
(C.TEST_DESC = @test-2...
June 3, 2008 at 12:38 pm
CREATE PROCEDURE dbo.PrepTickets_GET_ALL(@partialKey VARCHAR(12) = NULL)
AS
BEGIN
SET NOCOUNT ON
SELECT
*
FROM
...
June 3, 2008 at 8:08 am
Viewing 15 posts - 466 through 480 (of 1,182 total)