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
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 |
Answer / satish
Please help me.
Does we write trigger.
Or procedure or
anything else.
| Is This Answer Correct ? | 0 Yes | 2 No |
Explain the steps to create and execute a user-defined function in the sql server?
How to fetch records from a One to Many relationship table. eg: wanna get details of all orders for a specific customer. (do not want repeatation of master table records for child table records)
What is blocking in SQL Server? If this situation occurs how to troubleshoot this issue
What is the size of transaction log file?
What is a non equi join?
what is a major difference between sql server 6.5 and 7.0 platform wise? : Sql server database administration
In the below query i have performed the commit transaction statement but still the values after the save are not saved. Can you please let me know why are the statements after save are rolled back even after commiting the data. help me with the understanding declare @trans2 varchar(10)='transaction2' begin transaction @trans2 insert into emp values(100,'xy',600); save transaction @trans2 insert into emp values(200,'pq',700); insert into emp values(300,'pq',800); commit transaction @trans2 rollback tran @trans2
How to create a Master database in SQL server ?
Do you know what are acid properties of transaction?
What are number line correlation administrators will use while working with a subquery?
Can you type more than one query in the query editor screen at the same time?
In which tcp/ip port does sql server run? Can it be changed?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)