How do you find value of first column before inserting value
into the second column in the same table for checking that second column must have different value than first column.

Answers were Sorted based on User's Feedback



How do you find value of first column before inserting value into the second column in the same tab..

Answer / ankita upadhyay

by using lookup function
syntax-
LOOKUP(lookup_value,lookup_vector);

lookup_value-contain the name of field(like id) about which you have to find info

lookup_vector-contain a range of row or column which contain value of respective ids

Is This Answer Correct ?    2 Yes 0 No

How do you find value of first column before inserting value into the second column in the same tab..

Answer / satish

Please help me.
Does we write trigger.
Or procedure or
anything else.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More SQL Server Interview Questions

How to create logins using windows Authentication mode?

2 Answers  


Write a code to select distinct records without using the DISTINCT keyword.

0 Answers   Aspiring Minds,


What is the use of sql profiler in sql server 2012?

0 Answers  


How to connect ms access to sql servers through odbc?

0 Answers  


What is merge replication?

0 Answers  






What are the operating modes in which database mirroring runs?

0 Answers  


How to rename an existing column with the "sp_rename" stored procedure in ms sql server?

0 Answers  


How many levels of sp nesting are possible?

0 Answers  


What is importing utility?

0 Answers  


What are the new features in sql server 2016?

0 Answers  


What is an indice?

0 Answers  


can an automatic recovery be initiated by a user? : Sql server administration

0 Answers  


Categories