ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
How do I compare two values when one value(data type) is 
char and the other is an integer?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do I compare two values when one value(data type) is char and the other is an integer?
Answer
# 1
use the CONVERT Function.
 
Is This Answer Correct ?    0 Yes 0 No
Guest
 
  Re: How do I compare two values when one value(data type) is char and the other is an integer?
Answer
# 2
You Can USe Either Convert or Cast Function for this
 
Is This Answer Correct ?    0 Yes 0 No
Rajeevrohilla
[Vibhava Technologies]
 
 
 
  Re: How do I compare two values when one value(data type) is char and the other is an integer?
Answer
# 3
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 ?    0 Yes 0 No
Sagun Sawant
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
About types of indexes in SQL server ? Cognizent1
Which command using Query Analyzer will give you the version of SQL server and operating system?  3
what is the out put of below queries? a. select * from Emp where null = null; b. select * from Emp where 1=1; Patni6
I need a query that retrieves info from an Oracle table and a query that retrieves info from a SQL Server table. The info has to be joined together according to Record ID numbers. I have very limited access to the Oracle database but full control of the SQL Server database.How do I join two different queries from two different databases?  1
create procedure proc1 (@a int) as begin if @a=1 create table #temp(a1 int) else create table #temp(a1 int) end while executeing the above code it shows error like '#temp already exist' .why it shows an error? IBM1
What r sql reporting services and analysis services? how can we use it.  2
what is the purpose of creating view is sql server 2000 Wipro6
what are batch in sql server? Satyam2
How m-m relationships are implemented?  1
SQL stops working in every 15 days displaying message that database log file is full. Log file size is 3.95 GB. It is happening after shrinking the database also. What is solution to overcome this problem. Please help me as it's urgent.  2
What is the difference between temp table and table variable? Microsoft3
how to connect sybase to sql server 2005?. ABC1
How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode? HCL2
Name three version of sql server 2000 and also their differences?  1
Can you explain the role of each service?  1
What is the difference between 2-Tier architecture and 3-Tier architecture Oracle5
How to write query to Delete the records in child table and corresponding records in parent table Semantic-Space7
how many type of subquery?  1
Explain some DBCC commands?  3
What's the purpose of Stored Procedure? Wipro3
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com