Viewing 12 posts - 16 through 27 (of 27 total)
First would be based on the ID and SubID fields combined
September 20, 2011 at 12:57 pm
Ok - after reading more I'm still stuck. This is what I was trying to emulate:
http://www.sqlservercentral.com/articles/Test+Data/61572/
Mytable:
ID (identity/key field)
PID (non unique number field)
FILE_NO (6 character field that I...
October 20, 2009 at 6:20 pm
Florian Reischl (9/1/2009)
UPDATE m SET
m.Date = t.Date
,m.Description =...
September 1, 2009 at 2:24 pm
Hmm.....that link isn't helping me - it's looking like a foreign language to me. I guess I could figure out how to set a column to "1" based on...
September 1, 2009 at 2:15 pm
Sorry - I should have noted there are a couple extra fields in the MYDATA table that I don't care about - so it isn't a one to one push...
September 1, 2009 at 2:08 pm
The datatype is nvarchar(20) for the partnumber and nvarchar(100) for the description - so this works perfectly: SELECT PartNumber + ',' + Description EXCEPT that it has a...
February 25, 2009 at 5:37 pm
sorry - I should have said I'm doing this sql statement from an external tool. Is there any way to pass something in the sql statement to do this?
February 25, 2009 at 1:12 pm
It's returning: Line 3:Incorrect syntax near '('.
when I copy what you wrote.
Update: got rid of the parens around the one and it worked - thanks!!!
February 9, 2009 at 1:42 pm
Almost there!!!! Thank you gsquared!
I have:
select ver AS TOPVER from mytable
where partnumber = 'P7029'
order by len(ver) desc, substring(ver, 1, 1) desc, substring(ver, 2, 1) desc
which works and puts...
February 9, 2009 at 1:01 pm
nope - that doesn't work.
Let's say I have a version "BT" (and everything below ....from A to Z, AA to AZ, and BA to BT)
I need to find...
February 9, 2009 at 12:37 pm
hmmm....not working. I feel so clueless.
I'm trying to call this SQL from an external source (Visual Build) and here is the message I get:
Msg 156, Level 15, State 1,...
January 7, 2009 at 7:31 pm
The value I'm expecting with the cast statement should be '5636' (converting 1604 from hex to dec)
But it keeps inserting '1604' into the table. I can't get it to...
January 7, 2009 at 2:47 pm
Viewing 12 posts - 16 through 27 (of 27 total)