Hi Friends,

I have a table in which there are thousands of records and
in city field there is NULL value for all records now i want
to change that null value with distinct values in each
record say delhi, bihar, agra, jaipur etc, what will be the
query for that?????

its not possible to update thousands of records one by one.
is there any alternative ...?

Plz help ... its urgent

Thanx in advance

Answer Posted / kiran kumar

it is not possible.since you have to provide 1000(if table
have 1000 records) city Name based on certain condition.So
there is no alternative.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What method is used by the Command classes to execute SQL statements that return single values?

606


How to grant a permission in ms sql server using "grant execute" statements?

569


What is the status of services on passive node for failover cluster in sql server? : sql server database administration

639


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

658


What are the pre-defined functions in the sql server?

522






A trigger can reference objects outside the current database? State true or false.

559


How to use old values to define new values in update statements in ms sql server?

686


Do you know what are various aggregate functions that are available?

529


What is the difference between a function and a trigger?

577


List out the differences between global and local temp tables in sql server?

578


What options are available to audit login activity? : sql server security

639


Explain cross join or cartesian product in sql?

546


How to create an identity column?

644


What is the log shipping?

588


What is the difference between count () and rowcount ()?

525