Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Query (take availbale operations)

Author  Topic 

john_InFlames
Starting Member

2 Posts

Posted - 2010-05-22 : 12:15:33
hi,i am new to sql programming and i have the following problem.I have two tables named Operations and Unit_supported_operations.The tables are :

1)Unit_supported_operations
UnitID|OperationID
Robot2 Unloading
Fixture Unloading
Fixture SpotWelding
Robot2 Loading
Fixture Loading
Robot3 Fixturing
Robot33Clinching
Robot4 ArcWelding

2)Operations
OperationID |OperationType
ArcWelding Joining
LaserWelding Joining
Loading Handling
SpotWelding Joining
Unloading Handling

I want to take the available operations where i give a specific UnitID
.example:i want to select the available operations of fixture.
the results must be ArcWelding,LaserWelding.any ideas how to do this??
thanks everyone in advance.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-05-22 : 14:04:34
I can't see a relation between Fixture and ArcWelding,LaserWelding - sorry.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

john_InFlames
Starting Member

2 Posts

Posted - 2010-05-22 : 17:49:35
Operation ID is the relation between the two tables
Go to Top of Page
   

- Advertisement -