Viewing 15 posts - 1,006 through 1,020 (of 2,171 total)
SELECT326.76 * 1.105 / 1.21,
CEILING(326.76 * 1.105 / 1.21 * 100.0) / 100
April 15, 2008 at 8:28 am
You did?
Then I didn't have to explain the algorithm here?
April 15, 2008 at 7:29 am
Why post the same question again when you got an answer here
April 15, 2008 at 2:09 am
April 15, 2008 at 2:06 am
SELECT CONVERT(CHAR(8), DATEADD(SECOND, @Seconds, '00:00:00'), 108)
April 15, 2008 at 2:01 am
Derek Dongray (4/14/2008)
The only thing I'm dubious about is whether the update will always get the records in...
April 14, 2008 at 2:53 pm
Add a
AND t1.id = t2.id
and you produce the same result too!
April 14, 2008 at 12:53 am
And if "= NULL"
do not work, try "IS NULL" instead.
April 14, 2008 at 12:47 am
Try this
UPDATEt
SETt.Img = s.Img
FROMMyTable AS t
INNER JOINOPENROWSET(BULK N'C:\Image1.jpg', SINGLE_BLOB) AS s(Img)
April 12, 2008 at 3:06 pm
An EXISTS might be a better choice depending on number of records.
SELECTp.*
FROML_RPT_INV_PERSON_INFO AS p
WHEREEXISTS (SELECT * FROM L_RPT_INV_INFO AS i WHERE i.INFORMATION_CHANGED_FLAG = 'Y' AND i.RPT_INV_ID = p.RPT_INV_ID AND i.RPT_INV_TP...
April 12, 2008 at 3:03 pm
From looking at the OP, I would guess a last closing paranthesis...
April 12, 2008 at 2:59 pm
Try this one...
;WITH Yak (id, st, date, rowid, col)
AS (
SELECTid,
st,
date,
ROW_NUMBER() OVER (ORDER BY id, date),
0
FROM#t
)
SELECTid,
MAX(CASE WHEN col = 0 THEN st ELSE '' END) AS sta,
MAX(CASE WHEN col = 0...
April 12, 2008 at 1:52 pm
chris.f (4/10/2008)
2. The script doesn't fit into an nvarchar(max) as there are hundreds of fields in the tables.Is there any way round this?
NVARCHAR(MAX) can hold 1 billion characters. I do...
April 11, 2008 at 2:06 pm
Viewing 15 posts - 1,006 through 1,020 (of 2,171 total)