SELECT p.*, po.OrderedQty, po.TotalAmount 
FROM tblPurchaseOrder  AS p
INNER JOIN PODetails  AS po ON p.PONo = po.PONo
WHERE po.PONo = '1';
I have 2 rows to display for this code, when I run this, it returns 4 rows, 2 original and 2 duplicates (same as first 2 rows) actual answer is only two rows. Why am I getting like this?
Please help me to know.
There are 2 tables, tblpurchaseorder and podetails. I need only one row from podetails table. But the confusing thing is why it shows only 4 rows, return.
4   1   1   2014-04-24  2014-04-24  Whole Sale Price                1   Nokia001    0   0   0   190 570 3   918
5   1   1   2014-04-24  2014-04-24  Whole Sale Price                1   item 1  0   0   0   87  348 3   918
4   1   1   2014-04-24  2014-04-24  Whole Sale Price                1   Nokia001    0   0   0   190 570 4   918
5   1   1   2014-04-24  2014-04-24  Whole Sale Price                1   item 1  0   0
0   87  348 4   918
tblpurchaseorder
POID    PONo    POReference CreatedDate DeliveryDate    PaymentMethod    SupplierID ItemCode    IsCommit    IsPending   IsDelete    SubTotal    TotalValue
4         1        1        2014-04-24   2014-04-24   Whole Sale Price        1     Nokia001        0           0         0            190            570
5         1        1        2014-04-24   2014-04-24   Whole Sale Price        1     item 1          0           0         0             87            348
tbl podetails
PODId   PONo    OrderedQty  SupplierID  TotalAmount PriceLevel        PaidAmount
3        1           3           1          918     Whole Sale Price      900
4        1           4           1          918     Whole Sale Price      900
 
     
     
     
    