I am having table Title with TITLE id,Author ID, Publiser
ID , table AUTHOR with Author ID, Author Name, table
PUBLISER with Pub ID, Pub name Here hot to find out the
publiser id who have relesed the books of patriticular
author?

Answers were Sorted based on User's Feedback



I am having table Title with TITLE id,Author ID, Publiser ID , table AUTHOR with Author ID, Author..

Answer / mythili

select Publisherid from title where Authorid =(select Authorid from authour where Authourname='Aut3' )

Is This Answer Correct ?    3 Yes 0 No

I am having table Title with TITLE id,Author ID, Publiser ID , table AUTHOR with Author ID, Author..

Answer / vrinda

SELECT t1.PUBID,t3.AuthorName
FROM Publisher t1 join Title t2
on t1.PUBID = t2.PUBID
join Author t3
on t3.AuthorID = t2.AuthorID.

Is This Answer Correct ?    3 Yes 1 No

I am having table Title with TITLE id,Author ID, Publiser ID , table AUTHOR with Author ID, Author..

Answer / saravanan p

select [Publiser ID] from Title where [Author ID] in(select
[Author ID] from Author where [Author Name]='AuthorName')

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Which is the latest version of sql server and when it is released?

0 Answers  


What is change tracking in sql server?

0 Answers  


Can group by and orderby be used together?

0 Answers  


when inserting to a table how many rows will be effected using triggers

2 Answers  


What is a View ? Can we insert, Update and delete a view?

0 Answers   Arigo Infotech,






What are the difficulties faced in cube development? : sql server analysis services, ssas

0 Answers  


What are the new security features added in sql server 2012? : sql server security

0 Answers  


Who is the owner of a schema in ms sql server?

0 Answers  


What does select 1 mean?

0 Answers  


Explain try...catch with sql server?

0 Answers  


How can you swap values between two rows in a table using single- SQL statement?

1 Answers   Tavant Technologies, Virtusa,


What is dbcc command in sql server?

0 Answers  


Categories