Viewing 15 posts - 526 through 540 (of 2,171 total)
Use ROW_NUMBER and FULL JOIN.
It will be easier if you post your three view definitions and we might be able to come up with something clever for you.
N 56°04'39.16"
E 12°55'05.25"
January 15, 2009 at 7:54 am
Will not work for "small" times, as 115 (00:01:15)
Use this
DECLARE@rundate INT,
@runtime INT,
@duration INT
SELECT@rundate = 20080504,-- May 4, 2008
@runtime = 42412,-- 4:24:12 AM,
@duration = 115-- 00:01:15
SELECTrundate,
runtime,
duration,
rundate + runtime AS start,
rundate +...
N 56°04'39.16"
E 12°55'05.25"
January 13, 2009 at 2:56 pm
Use this function to create the calendar table
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=61519
It has tons of date limits to try out.
N 56°04'39.16"
E 12°55'05.25"
January 13, 2009 at 8:45 am
Is week number really OK?
I guess I am spoiled and used to ISO standard for week numbering.
CREATE TABLE #T (DT DATETIME)
INSERT INTO #T(DT)
SELECT '2008-12-30'
UNION SELECT '2008-12-31'
UNION SELECT '2008-12-29'
UNION SELECT '2008-12-28'
UNION...
N 56°04'39.16"
E 12°55'05.25"
January 13, 2009 at 8:39 am
bdewulf (1/13/2009)
Just to clarify my original post....
N 56°04'39.16"
E 12°55'05.25"
January 13, 2009 at 8:26 am
Not to mention 6.5 which had no support for TOP operator... 😀
N 56°04'39.16"
E 12°55'05.25"
January 13, 2009 at 5:44 am
First OP have to define what a week means to him/her.
N 56°04'39.16"
E 12°55'05.25"
January 13, 2009 at 2:37 am
Thank you!
I have that link on my favorites sites collection.
BTW, are yo having a bad hair day? (Just saw your avatar) 😉
N 56°04'39.16"
E 12°55'05.25"
January 9, 2009 at 1:27 am
Lynn Pettis (1/8/2009)
N 56°04'39.16"
E 12°55'05.25"
January 9, 2009 at 12:43 am
New requirements?
SELECTModules.ID.value('.', 'VARCHAR(20)') AS Module123,
Modules.ID.value('(../../Feature)[1]', 'VARCHAR(50)') AS Feature123a,
Modules.ID.value('(../../Feature)[2]', 'VARCHAR(50)') AS Feature123b,
Modules.ID.value('(../../Access)[1]', 'VARCHAR(50)') AS Access123a,
Modules.ID.value('(../../Access)[2]', 'VARCHAR(50)') AS Access123b
FROM@UserLFAMap_Rejected.nodes('/Modules/Module/ID') as Modules(ID)
N 56°04'39.16"
E 12°55'05.25"
January 9, 2009 at 12:16 am
Well, that is something different if you have different clients, not customers.
If you host your application to HMV and to VirginStore, there is a good reason to have the two...
N 56°04'39.16"
E 12°55'05.25"
January 8, 2009 at 7:56 am
I would have all customers and all inventory in one table and have date as one key column and customer id as one key column.
N 56°04'39.16"
E 12°55'05.25"
January 8, 2009 at 7:24 am
See here http://www.sqlteam.com/article/datediff-function-demystified how DATEDIFF works.
SELECT CASE DATEDIFF(MONTH, Col1, GETDATE())
WHEN 0 THEN 'Same month'
WHEN 1 THEN 'Prior month'
ELSE 'Some other month'
END AS MonthDescription
FROM Table1
N 56°04'39.16"
E 12°55'05.25"
January 8, 2009 at 6:27 am
Have one table and add a "date" column to it.
Deltas are easily managed anyway with this
select *
from (select * from table1 where date = ... ) as t1
full join...
N 56°04'39.16"
E 12°55'05.25"
January 8, 2009 at 2:11 am
I would try to install 2008 on all server, so that development-, test- and production-environments have same platform.
N 56°04'39.16"
E 12°55'05.25"
January 8, 2009 at 2:09 am
Viewing 15 posts - 526 through 540 (of 2,171 total)