SELECT p.PublisherID, b.ProductID
FROM Books b
INNER JOIN Publishers p ON p.PublisherID = b.PublisherID
More Related Contents:
- Is it possible to write single query on two table which are not connected to each other?
- select yesterday date in where condition
- Can I Comma Delimit Multiple Rows Into One Column? [duplicate]
- Is there a combination of “LIKE” and “IN” in SQL?
- SQL query to select dates between two dates
- is there an advantage to varchar(500) over varchar(8000)?
- Selecting COUNT(*) with DISTINCT
- Effect of NOLOCK hint in SELECT statements
- What is best tool to compare two SQL Server databases (schema and data)? [duplicate]
- SQL Server – stop or break execution of a SQL script
- What is the difference between using a cross join and putting a comma between the two tables?
- Bulk DELETE on SQL Server 2008 (Is there anything like Bulk Copy (bcp) for delete data?)
- Replacing NULL with 0 in a SQL server query
- How do I calculate a running total in SQL without using a cursor?
- Equivalent of Oracle’s RowID in SQL Server
- Concat field value to string in SQL Server
- Months between two dates
- Why can’t I use alias in a count(*) “column” and reference it in a having clause?
- How to store image in SQL Server database tables column [duplicate]
- How to find third or nᵗʰ maximum salary from salary table?
- SQL “between” not inclusive
- Benefits Of Using SQL Ordinal Position Notation?
- sql group by only rows which are in sequence
- SQL Server replace, remove all after certain character
- Does UNION ALL guarantee the order of the result set [duplicate]
- Inserting rows into a table with one IDENTITY column only [duplicate]
- How to find sum of multiple columns in a table in SQL Server 2005?
- How to retrieve field names from temporary table (SQL Server 2008)
- When using GETDATE() in many places, is it better to use a variable?
- What’s the correct name for an “association table” (a many-to-many relationship) [closed]