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.
Author |
Topic |
MikeB
Constraint Violating Yak Guru
387 Posts |
Posted - 2003-10-23 : 14:05:36
|
tblOneLoadNumbertblTwoLoadNumber | Component1 | B-1tblThreeLoadNumber | Component1 | 4011 | 402SELECT tblTwo.Component, tblThree.ComponentFROM tblTwoComponent, tblThreeComponentWHERE tblTwo.LoadNumber = 1 OR tblThree.LoadNumber = 1This returns:B-2 401B-2 402I need it to returnB-2401402How can this be achieved or is two separate SQL calls neccessary?MikeB |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-10-23 : 14:12:54
|
Can you use a UNION in Access?SELECT tblTwo.ComponentFROM tblTwoComponentWHERE tblTwo.LoadNumber = 1 UNIONSELECT tblThree.ComponentFROM tblThreeComponentWHERE tblThree.LoadNumber = 1Tara |
 |
|
MikeB
Constraint Violating Yak Guru
387 Posts |
Posted - 2003-10-23 : 14:26:07
|
WHY YES YOU CAN!!!! THANK YOUI will probably have more questions, but thank you very much for such a quick responce!Thank youMike B |
 |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-10-23 : 14:29:16
|
I don't know Access, so hopefully any future solutions for you will be able to be used in Access. Other members here have a bit of Access experience though.Tara |
 |
|
|
|
|