Viewing 15 posts - 2,821 through 2,835 (of 3,544 total)
CAST(REPLACE(qtyavail,',','') as numeric(9,2)) + CAST(REPLACE(qtyavail and qtyatbranchavail) as numeric(9,2))
Far away is close at hand in the images of elsewhere.
Anon.
January 30, 2004 at 7:03 am
Personally I would preprocess the data outside of sql then load.
But if you want to use sql
1. DTS the data into staging table (varchar columns as Mike suggested) including an...
Far away is close at hand in the images of elsewhere.
Anon.
January 30, 2004 at 6:58 am
SELECT table1.name,table2.name
FROM table1
INNER JOIN table2
ON CHARINDEX(table2.name,table1.name) > 0
Far away is close at hand in the images of elsewhere.
Anon.
January 30, 2004 at 6:43 am
I agree with Frank, use a single table with id, otherwise you will have to use dynamic sql.
Far away is close at hand in the images of elsewhere.
Anon.
January 29, 2004 at 6:52 am
The simple solution for copying data is
to create the table and insert
SELECT *
INTO newdatabase..newtable
FROM olddatabase..oldtable
WHERE ...
to insert into an existing table
INSERT
INTO newdatabase..newtable
(col1,col2,col3...)
SELECT col1,col2,col3......
Far away is close at hand in the images of elsewhere.
Anon.
January 29, 2004 at 6:40 am
"Btw, Access exposure can be treated, and maybe some day you will get your normal life back."
Yeh but I hated those padded cells. ![]()
Far away is close at hand in the images of elsewhere.
Anon.
January 28, 2004 at 5:43 am
How about this
SELECT TOP 24
i.codigoind,
i.mesind,
i.anoind,
i.numeroind,
(i.numeroind - m.numeroind) / m.numeroind AS 'varmesind',
(i.numeroind - y.numeroind) / y.numeroind AS 'varanoind',
(i.numeroind - a.numeroind) / a.numeroind AS 'vardozemesind',...
Far away is close at hand in the images of elsewhere.
Anon.
January 28, 2004 at 5:40 am
OK, OK, short reply just to keep you happy.
The only reason I did not respond before is that I am not well versed...
Far away is close at hand in the images of elsewhere.
Anon.
January 28, 2004 at 4:52 am
Dates cannot contain 'empty' string, as you found out sql will set id to '1900-01-01'. If your input is not datetime (eg varchar) then use NULLIF, eg
DECLARE @string varchar(10)
SET @string =...
Far away is close at hand in the images of elsewhere.
Anon.
January 27, 2004 at 7:00 am
Without structure can only guess. Assume that row contains a date and all months present then
SELECT TOP 24 a.[date],a.CPI,
(a.CPI / b.CPI,1) AS 'Increase'
FROM a
INNER JOIN ...
Far away is close at hand in the images of elsewhere.
Anon.
January 27, 2004 at 6:39 am
It is the drop statement not object_id that is the problem. You will have to use dynamic sql like
SET @sql='If Object_ID(''NBP'+@yearcount+''') is not NULL Drop View NBP'+@yearcount
EXEC(@SQL)
SET @sql='CREATE...
Far away is close at hand in the images of elsewhere.
Anon.
January 26, 2004 at 6:27 am
Having not used SQL2K (but will be soon), collation is more of a black art than a grey area for me. I thought that SQL2K allowed different collations for different...
Far away is close at hand in the images of elsewhere.
Anon.
January 23, 2004 at 6:42 am
My shortcut shows
Target
C:\WINNT\System32\hh.exe sql80en.col
Start In
"C:\Program Files\Microsoft SQL Server Books Online\1033\"
The Start In dir contains
123 File(s) 39,038,612 bytes
Far away is close at hand in the images of elsewhere.
Anon.
January 21, 2004 at 8:17 am
Have a look at the properties for the shortcut (if there is one) on the programs menu, it should tell you where the files are.
Far away is close at hand in the images of elsewhere.
Anon.
January 21, 2004 at 8:02 am
My link is
©1988-2002 Microsoft Corporation. All Rights Reserved.
and shows
Version: 8.00.002 ![]()
Gonna try your url now ![]()
Far away is close at hand in the images of elsewhere.
Anon.
January 21, 2004 at 7:42 am
Viewing 15 posts - 2,821 through 2,835 (of 3,544 total)