Wrox Programmer Forums
|
BOOK: Professional SQL Server 2000 Programming
This is the forum to discuss the Wrox book Professional SQL Server 2000 Programming by Robert Vieira; ISBN: 9780764543791
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server 2000 Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 28th, 2006, 09:04 AM
Registered User
 
Join Date: Jun 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help for beginner on Chapter 5

Hello all,

I'm new to SQL Server 2000 and I'm reading through Vieira's Book.

At pag 121 I tried to do the exercice about authors and titles. I tried to do it with what I learnt in the previous pages but I cannot solve the problem.

Could anyone run the query I wrote in the pubs demo database and tell me whats wrong?

Thanks!!!

My Query





USE pubs
DECLARE @MyTitle Table
(
    au_id text,
    Title text
)
INSERT INTO @MyTitle
SELECT titleauthor.au_id, Titles.Title
FROM titleauthor
INNER JOIN Titles
    ON titleauthor.title_id = Titles.title_id
--SELECT * from @MyTitle
SELECT authors.au_lname, @MyTitle.Title
FROM authors
INNER JOIN @MyTitle
    ON authors.au_id = @MyTitle.au_id





Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner Needs Help Leanne Java Basics 1 September 27th, 2006 09:16 AM
c++ beginner, need help please jmarsh56 Visual C++ 0 December 7th, 2005 10:38 AM
Beginner [email protected] Beginning PHP 4 December 23rd, 2004 03:22 PM
Beginner programmed XML 3 February 21st, 2004 05:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.