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
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
diamond diamond
NA
133
55.4k
Sql command does not give output
Sep 8 2013 7:42 AM
Hi,
I have 2 tables, which are not have any primary key.
I want to add info field of one of the tables which contains 'no such name' string in it to other ones when 2 fileds of tables be the same
this is my code but it does not give any output.
INSERT INTO [p2p].[dbo].[salityv1$] ( info)
SELECT [test123].[dbo].[salityv1] .["Info"]
FROM [test123].[dbo].[salityv1] Inner JOIN [p2p].[dbo].[salityv1$]
on ([p2p].[dbo].[salityv1$].dport=53 and [test123].[dbo].[salityv1].["Source"] = [p2p].[dbo].[salityv1$].daddr AND [test123].[dbo].[salityv1].["Destination"] =[p2p].[dbo].[salityv1$].saddr and [test123].[dbo].[salityv1].["Info"] LIKE 'no such name%');
please help me,
Thanks in advance
Reply
Answers (
2
)
Master Table and Transaction Table
Making QUErY from stored procedure to SQL