The error is very simple.
There are 3 Tables,
Lets name them A, B, C - All of them have 7 rows.
A has the following data
1 2 3 4 5 6 7
with Id = 1
B has the following data
8 9 10 11 12 13 14
with Id = 1
C has the following data
15 16 17 18 19 20 21
with Id = 1
Now i am selecting them as : select A.col1,B.col1,C.col1 from A,B,C where A.ID= B.ID and C.ID= A.ID and B.ID= C.ID.
So the output thats coming is 343.
now what i want the output to be is simply number from 1 to 21 like :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Please help me get out of this trouble and suggest me a fine tune query.