Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Let us suppose we have a table with structure in order

empno
empname
empdesig
empcountry

and now i want to re-organize the columns of this table to

empno
empdesig
empname
empcountry

how can i do this with queries ?

assume that table contains the data.

Answer Posted / jyothi

there is only one way to to re-arrange the table
that is views...

create view <view-name>as select <fields> from <tablename>
.........
for example..
create view vw as select empno,empdesig,empname,empcountry
from <tablename>...
(u can get message that is view created)
just display the data using viewname(vw)..

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sql queries used for?

982


What is the difference between pl and sql?

1039


Can we use update in sql function?

1010


How delete a row in sql?

929


How do you use a while loop in pl sql?

942


How to combine two stored procedures in sql?

1124


tell me about various levels of constraint. : Sql dba

991


What is pl sql in oracle?

992


How many sql commands are there?

1073


What are all the different normalization?

979


Explain lock escalation? : Transact sql

1144


What is the most restrictive isolation level? : Transact sql

1028


What is the difference among union, minus and intersect?

949


How would you convert date into julian date format?

949


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

957