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 store procedure? When do you use?

683


What is the purpose of grouping data in a report?

718


What are user-defined functions (udfs) in sql server?

731


What are the different index configurations a table can have?

692


What is the difference between dbcc indexdefrag and dbcc reindex?

707






How do I run a trace in sql server?

682


List some of the rules that apply to creating and using a ‘view’

671


How many tables can be joined in SQL Server?

759


How do I open port 1433?

694


How to view existing indexes on an given table using sp_help?

799


What is the difference between DataRow.Delete() and DataRow.Remove()?

948


What is extent? Types of extents?

789


What do you mean by an execution plan?

771


Name three of the features managed by the surface area configuration tool? : sql server security

713


How do I find the sql server version?

709