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.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of grouping data in a report?

547


How to start sql server browser service?

565


Which table keeps the locking information?

530


What is logon trigger?

554


Can group by and orderby be used together?

599






What is 'Join' and explain its various types.

630


What are unicode character string data types in ms sql server?

609


Explain the usage of floor function in sql server.

508


How do I shrink an ldf file?

572


What is the difference between sdf and mdf?

681


Explain about Views?

607


Explain transaction server isolation?

553


What is #temp and @table variable in SQL server?

589


Explain about nested stored procedure?

608


Which is the latest version of sql server and when it is released?

550