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

What are indexers?

0 Answers  


How to transfer Logins from SQL Server 2000 to 2005

2 Answers  


Data table as parameter in sql server?

0 Answers  


What is executereader?

0 Answers  


What is a table called, if it has neither cluster nor non-cluster index? What is it used for?

0 Answers  






Describe triggers features and limitations?

0 Answers  


What is resultset concur_updatable?

0 Answers  


how to write test cases for testing databases,especially for testing and writing test cases for stored procedures.any real time database testers.please answer me.

0 Answers  


What is the datatype of rowid?

0 Answers  


How many triggers are possible per table?

0 Answers  


How to skip remaining statements in a loop block using continue statements?

0 Answers  


What is the standby server?

0 Answers  


Categories