I have a table called Transfer
. When I try to perform LEFT JOIN
it's not detecting that table from database.
Here is my query:
Select
tmp.ID,
tmp.Name,
st.Store,
Number
FROM
#tmpStore tmp
LEFT JOIN #store st on st.ID = tmp.ID
LEFT JOIN Transfer tr on tr.number = st.number --Here is error
ERROR
Incorrect syntax near the keyword 'Transfer'.
When I move the mouse on tr.number, it throws
The multi part identifier
tr.number
couldn't be bound
Only this particular table is showing an error while doing LEFT JOIN. When I do join with another table, it's not showing an error.
Transfer
? Use[Transfer]
– Ilyes May 26 '17 at 17:43Transfer
? – ollie May 26 '17 at 17:44select top 1 * from transfer
, but when try right click and select top 1000, it's retrieving. why? – Liam neesan May 26 '17 at 17:49