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

Why you need indexing? Where that is stored and what you mean by schema object? For what purpose we are using view?

0 Answers  


Do you know what is similarity and difference between truncate and delete in sql?

0 Answers  


What is the difference between a local and a global variable?

5 Answers  


How many cores do I need for sql server 2016?

0 Answers  


What is for xml in sql server?

0 Answers  






What are the different types of stored procedures?

0 Answers  


what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

0 Answers  


You schedule a job to run every minute what will happen if the first job runs more than 1 min? Will the second instance of the job start?

0 Answers  


What is user defined stored procedures?

0 Answers  


You want to implement the one-to-one relationship while designing tables. How would you do it?

0 Answers  


Explain about SQLOS?

0 Answers  


Can we update data in a view?

0 Answers  


Categories