Viewing 15 posts - 9,406 through 9,420 (of 10,144 total)
Garadin (11/18/2008)
Actually, the answer was coffee. Keep practicing!
Coffee? I was projecting an image of a well-hopped bitter on my desk but sadly it remained exactly that - an image!...
November 18, 2008 at 6:48 am
Hi Phil
This should do the trick, because it supplies the value of ProductCategory:
INSERT INTO [Training].[dbo].[ProductProductCategories]
([Product], ProductCategory)
SELECT p.Product, 5 AS...
November 18, 2008 at 5:44 am
Lorna Wheelhouse (11/18/2008)
Thank you very much - will try this and post an example in case anyone else is interested 🙂
You're welcome Lorna. Incidentally, both statements produce the same result...
ISNULL(DateAmended,...
November 18, 2008 at 5:37 am
Hi Phil
When performing an UPDATE ... FROM or an INSERT ... FROM, it will save you heaps of time to check the SELECT separately:
SELECT
...
November 18, 2008 at 5:32 am
Dooza (11/18/2008)
Jeff, your solution is working perfikly for me, thank you once again for the excellent help and advice. And thank you to Seph and Chris too!Steve
You're welcome Steve, thanks...
November 18, 2008 at 5:20 am
Hi Lorna
something like this should do the trick:
-- If the row has been amended, then the amended date will not be null; use the amend date.
-- If the row has...
November 18, 2008 at 4:28 am
Karthik
From BOL:
In the following table, the column on the left represents the style value for money or smallmoney conversion to character data.
Value Output
0 (default) No commas every three digits...
November 18, 2008 at 4:14 am
carlos.tapadinhas (11/18/2008)
I have a big problem and i cant resolve, i have one sp that insert on a table, but sometimes inserts two rows with the same results...
November 18, 2008 at 3:48 am
Jeff Moden (11/17/2008)
Chris Morris (11/17/2008)
Jeff, perfick solution as always!Serious or sarcasm? Can't tell from here.
Aw Jeff you should know me better than that!
This...
WHERE t.N BETWEEN CHARINDEX('(',@String) +1
...
November 18, 2008 at 1:08 am
Christopher Stobbs (11/17/2008)
There you have it Lynn beat me to the code post 🙂
You had it on the nose though! I'd still like to see the data, reckon there's something...
November 17, 2008 at 10:21 am
eflynn (11/17/2008)
Server: Msg 207, Level 16, State 3, Line 1
Invalid column name 'VOID'.
hmm..
PS: Thanks...
November 17, 2008 at 10:17 am
Hi Chris, don't mean to tread on your toes but the group by requires the whole expression used to generate the new column, rather than the name of the new...
November 17, 2008 at 10:11 am
Christopher Stobbs (11/17/2008)
could you please post the whole error message:-)
Some sample data from the table "timberstands" would be very handy too!
November 17, 2008 at 10:01 am
Hello
The syntax for UPDATE is
UPDATE tablename SET columnname
You have a columnname in place of a tablename:
db1.dbo.Users.WebLoginID
This will probably work, though it's untested:
UPDATE u SET WebLoginID = "VOID"
FROM db1.dbo.Users u...
November 17, 2008 at 9:42 am
Liam, you need to join the states table twice:
SELECT m.member, h.HomeState, m.WorkState
FROM master m
LEFT JOIN States h ON h.[ID] = m.HomeState
LEFT JOIN States w ON w.[ID] = m.WorkState
Cheers
ChrisM
November 17, 2008 at 9:36 am
Viewing 15 posts - 9,406 through 9,420 (of 10,144 total)