How do I compare two values when one value(data type) is
char and the other is an integer?

Answers were Sorted based on User's Feedback



How do I compare two values when one value(data type) is char and the other is an integer?..

Answer / guest

use the CONVERT Function.

Is This Answer Correct ?    5 Yes 0 No

How do I compare two values when one value(data type) is char and the other is an integer?..

Answer / sagun sawant

I will convert column with integer datatype to char because
i can not convert char to integer if column contains any
alphabet and then i will compair two values

Is This Answer Correct ?    4 Yes 1 No

How do I compare two values when one value(data type) is char and the other is an integer?..

Answer / rajeevrohilla

You Can USe Either Convert or Cast Function for this

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More SQL Server Interview Questions

What does it mean to normalize a database and why would you do it?

0 Answers  


What are the transaction properties?

0 Answers  


Can we add our custom code in ssis?

0 Answers  


What are audit control procedures?

0 Answers   Ernst Young, Thomson Reuters,


what is meant by sql injection with example and one more question how to catch the errors in sqlserver

2 Answers  






How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?

0 Answers  


List out the difference between union and union all in sql server?

0 Answers  


What is store procedure? How do they work?

0 Answers  


How to use values from other tables in update statements in ms sql server?

0 Answers  


What is the difference between row_number and dense_rank?

0 Answers  


What are the different types of lock modes in sql server 2000?

0 Answers  


1. How to fetch all the duplicate records from the table. 2. How to fetch the second highest salary from the table.

12 Answers   Accenture,


Categories