Viewing 15 posts - 3,571 through 3,585 (of 5,393 total)
It depends on what you want to set up. I suppose you want to play with the database, so you'd better install the database server.
Which OS are you installing to?
-- Gianluca Sartori
December 22, 2010 at 3:54 am
SQLkiwi (12/21/2010)
Gianluca Sartori (12/21/2010)
MelS-512196 (12/17/2010)
CROSS APPLY -- try it you'll like it! 😀
... if you like Nested Loops! 😛
It's a great feature, but it often ends up with a Nested...
-- Gianluca Sartori
December 22, 2010 at 1:33 am
You could extract the data in your report from a stored procedure, that could update some table with a "last run date" field.
Even better, without changing the report data source,...
-- Gianluca Sartori
December 21, 2010 at 2:35 pm
Resender (12/21/2010)
Any help would be appreciated, also any advice on book to buy to study would also be handy.
I bought this book from Amazon and I found it very useful:
http://www.amazon.com/gp/product/0470395141/ref=oss_product
Hope...
-- Gianluca Sartori
December 21, 2010 at 9:22 am
Oracle documentation library is the best place to start from:
http://www.oracle.com/pls/db112/portal.portal_db?selected=11&frame=
You can find a detailed installation guide, both PDF and HTML.
-- Gianluca Sartori
December 21, 2010 at 9:19 am
Glad you sorted out.
-- Gianluca Sartori
December 21, 2010 at 9:13 am
Well done, Paul!
-- Gianluca Sartori
December 21, 2010 at 8:21 am
Without a query plan to look at, I would end up with a useless suggestion.
I'm sure you can live without it.
-- Gianluca Sartori
December 21, 2010 at 6:42 am
This is how you could do it with a "quirky update".
The technique is described in detail here[/url].
IF OBJECT_ID('tempdb..#tmp_table') IS NOT NULL DROP TABLE #tmp_table
;WITH SampleData (ID, Inv, Est, Diff)
AS (
...
-- Gianluca Sartori
December 21, 2010 at 5:52 am
You're trying to do a running total. Give me a couple of minutes...
-- Gianluca Sartori
December 21, 2010 at 3:26 am
Let's work on the sample data you provided:
IF OBJECT_ID('tempdb..#tmp_table') IS NOT NULL DROP TABLE #tmp_table
;WITH SampleData (ID, Inv, Est, Diff)
AS (
...
-- Gianluca Sartori
December 21, 2010 at 3:13 am
MelS-512196 (12/17/2010)
CROSS APPLY -- try it you'll like it! 😀
... if you like Nested Loops! 😛
It's a great feature, but it often ends up with a Nested Loops implementation. It's...
-- Gianluca Sartori
December 21, 2010 at 3:02 am
SQLkiwi (12/21/2010)
stephan.koeppen (12/21/2010)
Thats the table I have. What i want to do is update the diff column with id 2.
Assuming you want to update all rows, not just the one...
-- Gianluca Sartori
December 21, 2010 at 2:56 am
Try this:
UPDATE t1
SET Diff = t2.Diff - t1.Est
FROM tmp_table AS t1
INNER JOIN tmp_table t2
ON t2.id = t1.id-1
-- Gianluca Sartori
December 21, 2010 at 2:24 am
Viewing 15 posts - 3,571 through 3,585 (of 5,393 total)