TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
COLLATE DATABASE_DEFAULT Against An IN () Clause
Pintoo Yadav
Aug 20
2016
Code
798
0
1
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
SELECT
[ITEM_KEY],
max
([REVISION]) Rev
INTO
#rev
FROM
SERVER2.[BOMSystem].[dbo].[ITEM]
WHERE
ITEM_KEY
COLLATE
DATABASE_DEFAULT
IN
(
SELECT
LTRIM(ItemNumber )
FROM
#ShipTemp)
AND
DATE_EFF_FROM <= @shipedon
GROUP
BY
ITEM_KEY
COLLATE DATABASEDEFAULT