Link to home
Start Free TrialLog in
Avatar of Nyana22
Nyana22Flag for Canada

asked on

T-SQL Union queries

Hello,
I have 2 tables in Sql server 2005.
t1 with 9675 record
t2 with 777 record

If i execute a query on t1, let's say q1, it returns 9472 records
and if i execute another one, q2 on t2 i have only 2 records returned.

the 2 queries have the same schema, so i execute them in a union quey, only 9273 records are returned,

Can someone tell me what's happening here, please ????
thanks
Avatar of Nyana22
Nyana22
Flag of Canada image

ASKER

why it's 9273 and not 9472+2 = 9474, so there is some missing records!!
ASKER CERTIFIED SOLUTION
Avatar of Einstine98
Einstine98

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial