Viewing 15 posts - 376 through 390 (of 1,923 total)
What is your expected result out of the sample data you provide. I think i may have solution for it, but need to see your desired result visually..
March 20, 2012 at 1:38 pm
I dont see a triangular join here. Its pretty straight forward join. Or maybe im overlooking something here :blink:
March 20, 2012 at 1:21 pm
easily doable...
Can you have a gander the following article and provide us some extra information on what you are trying to acheive?
http://www.sqlservercentral.com/articles/Best+Practices/61537/
March 20, 2012 at 1:02 pm
Works fine for me though, after some minor modifications (modifications details in comments)
IF OBJECT_ID('TempDB..##myTable2') IS NOT NULL
DROP TABLE ##myTable2;
GO
CREATE TABLE ##myTable2
(
...
March 20, 2012 at 1:39 am
dwain.c (3/20/2012)
Mr. ColdCoffee - I love the * 1.00 to eliminate the awkward CAST I used in my version!Gotta remember little tricks like this.
Yep, that's a neat one. Picked up...
March 20, 2012 at 1:17 am
You may also want to check out Jeff Moden article on arguably the fastest method in calculating running-totals as the one your requirements is putting up.
Please read it here :...
March 20, 2012 at 1:05 am
How about this?
Sample data and table structure
SET DATEFORMAT DMY ;
IF OBJECT_ID('TempDB..#Temp') IS NOT NULL
DROP TABLE #Temp;
IF OBJECT_ID('TempDB..#Calc') IS NOT NULL
DROP TABLE #Calc;
CREATE TABLE #Temp
(
...
March 20, 2012 at 1:02 am
I took the libetry to add a new table.
Would this suffice?
DECLARE @Zones TABLE (Zoneid INT IDENTITY, Zone CHAR(6))
INSERT @Zones (Zone)
SELECT...
March 19, 2012 at 11:44 am
That helps a lot.. Now, last question, do u maintain a "Zones" table where u ll have the list of zones?
March 19, 2012 at 11:28 am
Yes you can.
Can you provide us some sample table strucutre and and some sample data to work with?
Please read here on how to do that: http://www.sqlservercentral.com/articles/Best+Practices/61537/
March 19, 2012 at 10:25 am
March 18, 2012 at 12:35 am
aslhanhanc (3/16/2012)
So is my query false or on SQL Server: PK column, is unique index defined automatically ?
Yes.. Try this
use tempdb
go
if OBJECT_ID('a') is not null
drop table a...
March 16, 2012 at 11:34 am
vikashmsbi (3/16/2012)
database engine ki connect ayyetappudu naku ee error vostundi ..sql server agent ki connect chestundi ee error vostundi ..
People here are from all over teh world and they...
March 16, 2012 at 10:16 am
Few questions
1. Can am emplolyee do the same task twice in a single day?
2. Do u have the list of tasks in another table?
3. Will the list of tasks be...
March 16, 2012 at 10:08 am
March 16, 2012 at 9:48 am
Viewing 15 posts - 376 through 390 (of 1,923 total)