HI all
SELECT Rtrim(CUST_ACID),rtrim(pmt_id),rtrim(AC_NAME),rtrim(txn_amt),rtrim(pmt_rmks) from payawdb.dbo.pmts,acmt where payawdb.dbo.pmts.cust_acid=acmt.acid and bill_ref_info in
('57263259')
1.this query is taking long time for execution and what should i do ?[production server ]
2. it actually takes form one table to another from two databases
3. can i check the indexes of these tables and if i rebuild will it increase performance ?
4 or whether it will effect on production ??