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

what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

0 Answers  


What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.

0 Answers  


What are the different types of sql server replication? : sql server replication

0 Answers  


diffrence between Cluster Index and non Cluster Index

3 Answers   Wipro,


What is Lock table in SQL?

0 Answers   Wipro,






How to download and install microsoft sql server management studio express?

0 Answers  


The Difference between 'Count' and 'Count(*)'

13 Answers  


What are locks in sql?

0 Answers  


How do you delete duplicate rows in sql server?

0 Answers  


Explain sql delete command?

0 Answers  


Explain important index characteristics?

0 Answers  


let's assume you have data that resides on sql server 6.5. You have to move it sql server 7.0. How are you going to do it? : Sql server database administration

0 Answers  


Categories