G
Guest
Greetings everyone. I am having trouble understanding how to get a cross
join to work properly. I am experimenting with a running total and grand sum
feature using cross joins. My problem is that all the help articles I have
read make reference to 'tablename a' and 'tablename b' or something to that
effect, basically calling the same table two different names in the query and
sub-query. Is this some kind of table alias, and if so how do I do it? I
have tried adding the same table twice in the query window using the add
table button, but when I do this the second instance of the table is called
'mytable_1'. Then, when I try to use 'mytable_1' in the sub-query I get an
error saying 'mytable_1' is not a valid object. I am trying this in
Enterprize Manager of SQL2K. Can anyone clear this up any, or point me to a
help article that will not assume I know anything? Thanks to all.
join to work properly. I am experimenting with a running total and grand sum
feature using cross joins. My problem is that all the help articles I have
read make reference to 'tablename a' and 'tablename b' or something to that
effect, basically calling the same table two different names in the query and
sub-query. Is this some kind of table alias, and if so how do I do it? I
have tried adding the same table twice in the query window using the add
table button, but when I do this the second instance of the table is called
'mytable_1'. Then, when I try to use 'mytable_1' in the sub-query I get an
error saying 'mytable_1' is not a valid object. I am trying this in
Enterprize Manager of SQL2K. Can anyone clear this up any, or point me to a
help article that will not assume I know anything? Thanks to all.