Viewing 15 posts - 151 through 165 (of 210 total)
waxingsatirical (9/29/2011)
There is a particular statement in one of my stored procedures that is causing me a headache. As far as I can see it's a very straight forward...
September 29, 2011 at 9:14 am
pespes009 (9/29/2011)
Ways to Improve this function:
CREATE FUNCTION [dbo].[LBS_Quotes_GetEarliestCurrentVariantCode]
(
@p_quote_idINT
)
RETURNS VARCHAR(1)
AS
BEGIN
-- declare temporary variables
DECLARE@ResultVARCHAR(1),
@count_oldINT,
@count_preINT
-- count number of old and pre-current vehicles in the quote
SELECT@count_old= SUM(case when v.current_variant = 'O'...
September 29, 2011 at 5:30 am
mjbkm (9/28/2011)
"It is also possible the inserts are not actually going to the end of the table, but are being inserted all over the table, then the...
September 28, 2011 at 12:45 pm
kishoremania (9/28/2011)
10 1 1
10 1 2
10 2 1
10 2 2
10 3 1
10 3 2
11 1 1
11 1 2
11 2 1
11...
September 28, 2011 at 12:40 pm
mjbkm (9/28/2011)
I have a query that was running really slow with a huge table. The indexes...
September 28, 2011 at 12:25 pm
rashid_alavi (9/28/2011)
I have requirment to run the queries against three tables with left outer join,
it has give all the all rows from a table and plus matching...
September 28, 2011 at 12:19 pm
kishoremania (9/28/2011)
I mean to say that..I need a query to get data of Max value in B and again in B, I need Max value in C
So how about:
select a,...
September 28, 2011 at 11:56 am
kishoremania (9/28/2011)
select A,B,C from TEST
Output:
10 1 1
10 1 2
10 2 1
10 2 2
10 3 1
10 3 2
I need a query to get the record of...
September 28, 2011 at 11:37 am
sjerromeharris (9/27/2011)
September 28, 2011 at 9:39 am
zwheeler (9/28/2011)
I am using the round function in my select statement and it works for the following
Round(avg(h.mtr_fass_score)) as mtr_fass, <------THIS WORKS
Round(avg(case when p.mtr_unit_count...
September 28, 2011 at 9:32 am
le fevre (9/28/2011)
Iam at the moment working on a projekt for at company, where I did make a MsSql database to contain data for different servers.
Basis
Many of the servers...
September 28, 2011 at 8:49 am
Amy.G (9/26/2011)
SELECT Var1
FROM Table1
Somethimg more like this is used:
September 26, 2011 at 10:30 am
wshmstr (9/25/2011)
There's an option called CONTEXT_INFO() for using it as @@MYGLOBALVARIABLE.
I can use it like:
DECLARE @userid BINARY(128)
SET @userid = CAST(132456789 AS BINARY(128))
SET CONTEXT_INFO @userid
Then:
SELECT...
September 25, 2011 at 5:47 am
ggoble (9/23/2011)
Another note... I've went onto both the production server where the database is being backed up from and the server...
September 23, 2011 at 10:00 am
ggoble (9/23/2011)
September 23, 2011 at 9:14 am
Viewing 15 posts - 151 through 165 (of 210 total)