Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > SQL Language
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language 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 December 9th, 2005, 12:08 PM
Registered User
 
Join Date: Sep 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help me with a sql query plzzz

Hi this question was there in my exam. Please see if my solution to the question was right or wrong. There were 4 tables

S(S#, SNAME, STATUS, CITY) PRIMARY KEY (S#)

P(P#, PNAME, COLOR, WEIGHT, CITY)PRIMARY KEY (P#)

J( J#, JNAME) PRIMARY KEY (J#)

SPJ( S#, P#, J#, QTY) PRIMARY KEY (S#,P#,J#)

Question: Write a command to get project numbers for projects supplied with at least all parts available from supplier S1

My Ans:

Select J# from J Left outer join SPJ
on J.J# = SPJ.J#
Where s# = s1


Please let me know if im right or no.





Similar Threads
Thread Thread Starter Forum Replies Last Post
JSTL String comparison probem! Plzzz help !! shimmeringtrinkets JSP Basics 0 February 26th, 2008 10:05 AM
sql query ldp101068 SQL Server 2000 7 December 18th, 2007 04:52 PM
Output Query to txt file from SQL Query everest SQL Server 2005 4 November 22nd, 2007 01:49 AM
sql query plug_samir SQL Server 2000 1 May 17th, 2005 08:26 AM
SQL Query help ruthless Classic ASP Basics 1 December 21st, 2004 06:06 AM





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