troubleshooting Question

Msg 8114, Level 16, State 5, Line 1 Error converting data type varchar to numeric.

Avatar of Stevie Zakhour
Stevie Zakhour asked on
Microsoft SQL ServerCSQL* varchar
11 Comments1 Solution11169 ViewsLast Modified:
Hi All

When running the below query SQL reports back saying "Msg 8114, Level 16, State 5, Line 1 Error converting data type varchar to numeric."

QUERY
select
a.first_name as First_Name
,a.last_name as Last_Name
,a.e_mail as E_Mail
,b.trans_no as Transaction_Number
,c.item
from guests a
inner join
trs_info b on
a.guest_no = b.trans_no
inner join
transact c on
b.trans_no = c.item

The table trs_info, column trans_no is all numeric, such as "2100200" whereas the table transact, column item is either numbers, such as "15:30" is varchar (mix of numbers or words\letters).

Any help is greatly appreciated!
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros