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 is the maximum row of a size?

0 Answers  


What is BCP? When do we use it?

2 Answers  


How you can get a list of all the table constraints in a database?

0 Answers  


Hi, I have a table A which has four rows as follows Table A ------- empname salary ------- ------ A 1000 B 2000 C 3000 A 1000 B 2000 D 5000 I need the following output: empname salary ------- ------ A 1000 A 1000 B 2000 B 2000 Thanks in advance

10 Answers   IBM,


What are the new features in SQL Server 2005 when compared to SQL Server 2000?

0 Answers  






How to retrieve data from log files in SQL SERVER ?????

1 Answers  


Can a table be created inside a trigger?

0 Answers  


Write a sql query to display the current date?

0 Answers  


Explain active/passive and active/active cluster configurations?

0 Answers  


Can multiple columns be used in sql group by clause in ms sql server?

0 Answers  


What are the 10 characteristics of data quality?

0 Answers  


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

0 Answers  


Categories