I need assistance with a select statement
so far i have this
"SELECT table1.lastname as ln1, table1.firstname as fn1, table2.lastnameas ln2, table2.firstname as fn2 FROM table1, table2 ORDER BY ln1, ln2";
which produces this
ln1 fn1 ln2 fn2
lastname firstname lastname firstname
lastname firstname lastname firstname
lastname firstname lastname firstname
dupename dupename lastname firstname
dupename dupename lastname firstname
dupename dupename lastname firstname
with duplicate names on the colums that are not the same length
what i would like is somthing like so
ln1orln2 fn1orfn2
lastname firstname
lastname firstname
lastname firstname
lastname firstname
lastname firstname
lastname firstname
lastname firstname
with no duplicates
thanks in advance for any help
ive scouered the net most examples seem so veg with one example but no resulting example
so far i have this
"SELECT table1.lastname as ln1, table1.firstname as fn1, table2.lastnameas ln2, table2.firstname as fn2 FROM table1, table2 ORDER BY ln1, ln2";
which produces this
ln1 fn1 ln2 fn2
lastname firstname lastname firstname
lastname firstname lastname firstname
lastname firstname lastname firstname
dupename dupename lastname firstname
dupename dupename lastname firstname
dupename dupename lastname firstname
with duplicate names on the colums that are not the same length
what i would like is somthing like so
ln1orln2 fn1orfn2
lastname firstname
lastname firstname
lastname firstname
lastname firstname
lastname firstname
lastname firstname
lastname firstname
with no duplicates
thanks in advance for any help
ive scouered the net most examples seem so veg with one example but no resulting example