![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all SQL is without a doubt my downfall, and I'm not gettin any younger, or smarter in that stable either... That Said....!!!!! Can anyone help with the following plz..... (This works fine) SELECT [txtMainActor] AS [Actors] FROM tblDVDList UNION SELECT [txtOtherActor] FROM tblDVDList; (This on the other-hand, does not) SELECT [txtMainActor] AS [Actors] FROM tblDVDList, [txtGender] AS [Gender] FROM tblDVDList UNION SELECT [txtOtherActor] AS [Actors] FROM tblDVDList, [txtGender] AS [Gender] FROM tblDVDList; (I get a SYNTAX error in FROM) Essentially, I would like to include the gender of each in the UNION if at all possible... TIA |
#3
| |||
| |||
|
|
Hi all SQL is without a doubt my downfall, and I'm not gettin any younger, or smarter in that stable either... That Said....!!!!! Can anyone help with the following plz..... (This works fine) SELECT [txtMainActor] AS [Actors] FROM tblDVDList UNION SELECT [txtOtherActor] FROM tblDVDList; (This on the other-hand, does not) SELECT [txtMainActor] AS [Actors] FROM tblDVDList, [txtGender] AS [Gender] FROM tblDVDList UNION SELECT [txtOtherActor] AS [Actors] FROM tblDVDList, [txtGender] AS [Gender] FROM tblDVDList; (I get a SYNTAX error in FROM) Essentially, I would like to include the gender of each in the UNION if at all possible... TIA Too many Froms. It is Select the fields (columns) first then the From |
#4
| |||
| |||
|
|
Hi all SQL is without a doubt my downfall, and I'm not gettin any younger, or smarter in that stable either... That Said....!!!!! Can anyone help with the following plz..... (This works fine) SELECT [txtMainActor] AS [Actors] FROM tblDVDList UNION SELECT [txtOtherActor] FROM tblDVDList; (This on the other-hand, does not) SELECT [txtMainActor] AS [Actors] FROM tblDVDList, [txtGender] AS [Gender] FROM tblDVDList UNION SELECT [txtOtherActor] AS [Actors] FROM tblDVDList, [txtGender] AS [Gender] FROM tblDVDList; (I get a SYNTAX error in FROM) Essentially, I would like to include the gender of each in the UNION if at all possible... TIA |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |