Viewing 15 posts - 7,621 through 7,635 (of 10,144 total)
DROP TABLE #Departments
CREATE TABLE #Departments (deptID INT, areaID INT, IsActive TINYINT)
INSERT INTO #Departments (deptID, areaID, IsActive)
SELECT 102, 20, 1 UNION ALL
SELECT 103, 20, 1 UNION ALL
SELECT 104, 20, 1 UNION...
July 23, 2010 at 7:16 am
This uses the original data set:
-- change the name of the working table to #_hhrsales2 for testing
-- add a new column ([original_cost] [money] NULL) to the working table
-- There's no...
July 23, 2010 at 6:06 am
LadyG (7/23/2010)
Here you go Chris.Thanks
There are a few errors in here - the only one which appears to matter is the CREATE INDEX..statement which references a column which doesn't exist...
July 23, 2010 at 3:09 am
LadyG (7/23/2010)
Here you go Chris.Thanks
Lovely job LadyG, thanks for this!
July 23, 2010 at 2:49 am
Jeff Moden (7/22/2010)
Chris Morris-439714 (7/21/2010)
July 23, 2010 at 2:36 am
LadyG (7/22/2010)
Sent PM again. HAve you received it??
Yes thank you, but there is still no script to populate a table with data to use for testing.
Typically it would be something...
July 22, 2010 at 10:14 am
LadyG (7/22/2010)
Sent via PM. Would appreciate your ideas. Thanks
No PM received. Without table creation scripts and some sample data, it's difficult to proceed.
July 22, 2010 at 7:48 am
LadyG (7/22/2010)
July 22, 2010 at 5:00 am
In the absence of scripts to create the tables and populate them with data, it's very difficult to tell.
July 22, 2010 at 4:30 am
LadyG (7/22/2010)
Hi Chris,Does this means I will have to introduce a new column, newcost, to the tmp_hhrsales2 table?
You will need at least one new column, probably oldcost. If you can...
July 22, 2010 at 2:06 am
You're welcome Matt, thanks for the feedback.
July 21, 2010 at 9:44 am
SELECT MyPrettyNumber = REPLACE(STR(MyNumber*100,11,0), ' ', '0')
FROM (
SELECT MyNumber = CAST(11.24 AS DECIMAL(18,6))
UNION ALL SELECT 100.290000
UNION ALL SELECT 1000.290000
) d
July 21, 2010 at 9:36 am
LadyG (7/21/2010)
HAve attached the table attributes which includes indexes. Pls let me know your thoughts.What do the two changes you've made do, how do they affect the data??
The changes I've...
July 21, 2010 at 5:37 am
Jeff Moden (7/20/2010)
Chris Morris-439714 (7/20/2010)
July 21, 2010 at 2:24 am
mpradeesh (7/20/2010)
Thank you all. I will go will the row_id for each positiion and join it to the both columnsThanks
Forget table 1 with the ID, it's meaningless and...
July 20, 2010 at 10:21 am
Viewing 15 posts - 7,621 through 7,635 (of 10,144 total)