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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

List all the types of user-defined functions?

596


What is the difference between createstatement and preparedstatement?

583


How to read data in a table with "select" statements?

635


Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?

659


Explain what stored procedure sp_replcounters is used for? : sql server replication

1125






Can group by be used without aggregate functions?

568


What is a result set object returned by mssql_query()?

659


Explain external key management in sql server 2008

598


Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?

632


Can you explain about buffer cash and log cache in sql server?

582


What according to you is the difference between mysql and sql server performance?

653


What have included columns when we talk about sql server indexing?

666


What is the status of services on passive node for failover cluster in sql server? : sql server database administration

713


How can you list all the columns in a database?

621


What is spatial and temporal data?

620