Viewing 15 posts - 91 through 105 (of 463 total)
Not sure if this is what you are looking for?
select convert(int, 0xFFFF)
Select convert(varbinary, 65535)
---------------------------------------------------------------------------------
January 6, 2010 at 12:27 am
you'd use len as suggested by GSquared if its a variable length value,
Select RIGHT(wday,LEN(wDay)-1)+ LEFT(wDay,1) FROM @tday
---------------------------------------------------------------------------------
January 6, 2010 at 12:08 am
Not sure what you are describing here(images are not displayed), but looking at the topic subject, i think this is what you are looking for?
http://www.sqlservercentral.com/articles/Crosstab/65048/
---------------------------------------------------------------------------------
January 5, 2010 at 11:59 pm
thlubbe (1/4/2010)
Might be your worth reading this article on SSChttp://www.sqlservercentral.com/articles/Large+Data+Sets/68930/
A broken link
---------------------------------------------------------------------------------
January 5, 2010 at 6:06 am
or may be this?
select name,city,email, sum(amount) as amt
from tb1
group by name,city,email
Having sum(amount) > 500
---------------------------------------------------------------------------------
January 5, 2010 at 12:35 am
You gotta give some test data in a consumable format (sorry if you are just asking for a direction/suggestion only?)
http://www.sqlservercentral.com/articles/Best+Practices/61537/
Edit: Sorry, dint see the post from Chris.
---------------------------------------------------------------------------------
January 4, 2010 at 6:47 am
I guess u were close ( if i am not wrong about your requirement).
(Please read this for your future posts, (u might get quicker and varied responses)
http://www.sqlservercentral.com/articles/Best+Practices/61537/)
DOes this help?
Create...
---------------------------------------------------------------------------------
January 4, 2010 at 6:40 am
Your insert throws an error I guess(may be because of the identitiy insert)
Anyhow, if I am anywhere close to what you are looking for, see if this helps please.
Select...
---------------------------------------------------------------------------------
January 4, 2010 at 3:15 am
If the difference between start and end is within the limit of 2047, then this is 'one' of the method,
Declare @start int
SET @start = 12000
Declare @End int
SET @end =...
---------------------------------------------------------------------------------
December 24, 2009 at 1:06 am
dupe I guess,
http://www.sqlservercentral.com/Forums/Topic838859-338-1.aspx?Update=1
---------------------------------------------------------------------------------
December 24, 2009 at 12:05 am
Not that I know the answer completely, but it would help all of us here if you can post the data like this and on what basis the amount(last column)...
---------------------------------------------------------------------------------
December 24, 2009 at 12:04 am
sean_denney (12/22/2009)
I'm trying to create output that looks likeEmail, favorite color, product preference...
You want these to act as columns of your resultset?
---------------------------------------------------------------------------------
December 23, 2009 at 1:27 am
Not sure what your problem is, but just to help you to help us to help you,(:-)) post the data like this and show us whats your problem
CREATE TABLE...
---------------------------------------------------------------------------------
December 23, 2009 at 1:21 am
Its all about formatting the data I guess, have you tried anything?
---------------------------------------------------------------------------------
December 22, 2009 at 5:14 am
'BlKBy' column of sp_who2 (stored procedure) should tell you that!
---------------------------------------------------------------------------------
December 22, 2009 at 5:08 am
Viewing 15 posts - 91 through 105 (of 463 total)