Viewing 15 posts - 271 through 285 (of 304 total)
rbarryyoung (8/21/2008)
I'm with Matt on this one. As far as I know, it should always ignore the trailing spaces. DATALENGTH is the solution that you want for this.
Here's...
August 21, 2008 at 5:51 pm
Both databases have 'ANSI Padding Enabled' set to false.
August 21, 2008 at 3:09 pm
Read the following article. It will solve your problem. http://www.sqlservercentral.com/articles/Advanced+Querying/61716/
Or, if you post some DDL and sample data we can give you better help 🙂
August 21, 2008 at 8:13 am
Do you want the results in order by the color id?
Or do you want the results returned in the input order?
July 29, 2008 at 12:43 pm
Personally, I have found that one of the best ways to learn T-SQL is by reading through the posts on this site. 🙂
I come on here every morning, read the...
July 28, 2008 at 7:53 am
chandra.pottipati (7/23/2008)
None mentioned about using the new rank , or row_number functions. It sure is possibe using them..
Sure it is. But I'm still not clear on if the OP wants...
July 23, 2008 at 8:46 am
Jeff Moden (7/9/2008)
July 9, 2008 at 9:08 am
Sorry, I missed that. :blush:
Will this work?
DECLARE @Table TABLE
( BatchID INT
,TransactionID INT
)
INSERT INTO @Table
SELECT 101, ...
July 9, 2008 at 8:55 am
Try this:
DECLARE @Table TABLE
( BatchID INT
,TransactionID INT
)
INSERT INTO @Table
SELECT 101, 1
UNION ALL SELECT...
July 9, 2008 at 8:03 am
harshil, you obviously have not read the requirements at all.
I think barry has done an excellent job explaining:
rbarryyoung (7/1/2008)
d_sysuk (7/1/2008)
LEAVES ONLY 1 COPY of ANY DUplicate ROW as wanted !!!
Except...
July 8, 2008 at 7:37 am
pradeepkk2003 (7/7/2008)
Thanks for your reply. The start date and end date are selected by the user, so what if he selects 1st July and 3rd July , will your...
July 7, 2008 at 8:13 am
Almost.
FULL OUTER JOIN =
RIGHT OUTER JOIN
UNION ALL
LEFT OUTER JOIN
- duplicates
Try running these two queries to see what I mean.
The second produces duplicate rows, while the...
July 3, 2008 at 11:44 am
sead.j (7/3/2008)
BTW. Now I'm breaking my...
July 3, 2008 at 11:10 am
Hmm... I don't see a difference between my code and yours.
What's different about yours? :ermm:
July 3, 2008 at 10:48 am
Here's Steve's answer using 2 temp tables and a loop.
I couldn't get the CTE to work properly.
DECLARE @Results TABLE
(
Title varchar(50),
CustomerId nchar(5)
)
DECLARE...
July 3, 2008 at 8:14 am
Viewing 15 posts - 271 through 285 (of 304 total)