Can I create a view based on two tables that have the same column name?

I have two tables A and B. Each table has 50+ columns.
I want to create a view that includes all the columns in A and all the columns in B. I created a view with a select statement that says
Select A.*, B.*
From A, B
where A.id = B.id
It returns an error because in each table I have a column that keeps track if a record has been changed called Modified_By. That's where it chokes up on I figure. I would like to write the view without explicitly writing each column name from A and B as part of the select statement. The actual select statement works fine and only bombs when trying to turn the select statement into a view.

You will have to type the full column list at least once. You can save a few keystrokes (i.e. alias. on every column) by providing the column names to the CREATE part instead of in the SELECT part. Something like:
SQL> desc t
Name                                      Null?    Type
ID                                                 NUMBER
NAME                                               VARCHAR2(10)
SQL> desc t1
Name                                      Null?    Type
T_ID                                               NUMBER
LOC_ID                                             NUMBER
NAME                                               VARCHAR2(15)
SQL> CREATE VIEW t_v (id, t_name, t_id, loc_id, t1_name) AS
  2  SELECT t.*, t1.*
  3  FROM t, t1
  4  WHERE t.id = t1.t_id;
View created.HTH
John

Similar Messages

  • My mac book pro got stolen and i just purchased a new one is there any way i can recover my purchased songs from i tunes. I have the same account name, password and everything

    my mac book pro got stolen and i just purchased a new one is there any way i can recover my purchased songs and movies from i tunes. I have the same account name, password and everything

    Yes. Update to iTunes 10.3.1
    Then go to the iTunes Store and click Purchased "new" under Music Quick Links on the right side of the iTunes window.
    You can re download your purchased content from the next window.

  • Can two I-4phones have the same user name and password?, Can two I-4phones have the same user name and password?

    Can my husband and I share the same user name and password on our I-4 phones?

    Yes.. but it can introduce complications.
    If you're going to use the same Apple ID for iCloud, contacts, calendars, and photo stream are all shared if enabled.

  • Can we create a hierarchy based on two logical table in 10g RPD

    Hi,
    I have a question, please give me some clarity, about creating hierarchy,
    I know we can create a hierarchy based on one logical table which is form by two physical table...
    Can we create a hierarchy based on two logical table? If yes, and how?
    Thanks in advance!
    anne

    Use preffered drill paths...
    -suman

  • Can we create a view involving a standard table and a ZTable ?

    Hi,
    I created a view based on 2 tables : EKKO and a Ztable having EBELN field in common.
    Now, when i try to create a PO in ME21N , this view should get updated.But,It doesn't happen so.
    So i want to confirm that is it not possible to create a view on a Ztable...
    Also can anyone suggest any other option to do so...

    Hi,
       Yes you can create a view using a standard view using a standard Data base table and a custom data base table. But this getting updated would not be done by the standard program of Tcode ME21N, I reckon you need to write the logic of updation in an enhancement.
    Regards,
    Murthy.

  • Can we create two dashboard prompts for the same column in the samepage

    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideas

    863997 wrote:
    hi ,
    can we create two dashboard prompts for the same column on the same page,
    I have a date column and I am trying to create 2 dashboard prompts on the same page one as from date and the other one as to date.Is this possible to create.When I am trying to create it is giving me error like cannot use same column for creating the prompt
    Any suggestions or ideasYou are correct. You cannot build two prompts on the same column. Use this link for instructions on how to build a "between prompt" because of this fact:
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/

  • I have an iCloud email address on my iMac. How can I create an icloud email address for my wife on the same computer?

    I have an iCloud email address on my iMac. How can I create an icloud email address for my wife on the same computer?

    If all you want is an additional email address you can create up to three 'email aliases'  - these are additional addresses (not accounts) which deliver into the same inbox as the main account.
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account, move it to another account, or reactivate it if you delete it.
    More information on aliases here:
    http://help.apple.com/icloud/#mm6b1a490a
    If you want to keep her email separate from yours she will need to create a new Apple ID, and use it to create a new iCloud account either on a separate computer or on a separate User Account on your Mac.

  • Is it possible to have two DADs that access the same database?????

    Hello,
    Is it possible to have two DADs that access the same database?
    One DAD would be password protected with Authentication mode Per Package and the other DAD would not require a password/login
    If it is possible can you also give suggestions about how to do this
    Thanks
    Doug

    I HAD THE SAME PROBLEM WITH SHARING MY LIBRARY WITH MY SON. WHAT I DID WIAS CREATED A LIBRARY FOR HIS USE ONLY. IN ITUNES CLICK--FILE--NEW PLAYLIST AND THIS SHOULD ADD AN UNTILED PLAY LIST IN YOUR SIDE BAR. CLICK ON IT AND RENAME IT. HE CAN KEEP ALL OF HIS MUSIC IN THIS LIBRARY. SELECT ALL OF HIS MUSIC FROM YOUR LIBRARY AND DRAG IT INTO HIS. ONCE THIS IS DONE YOU CAN THEN REMOVE HIS SONS FROM YOU PLAY LIST. MAKE SURE YOU ONE REMOVE IT FROM YOUR PLAY LIST AND NOT DELETE THE FILE.
    HOPE THIS HELPS
    G4   Mac OS X (10.3.9)  

  • Two R3 servers have the same logical system name?

    Can two R3 servers have the same logical system name present in the same network? We plan to clone our production server and let the clone reside in the same network. The clone is identical with the production server with the same SID, hostname, logical system name, but different IP address.

    Hi
    Check this  [Link|http://help.sap.com/saphelp_nw70/helpdata/EN/da/5990df015b5b43a36f6ce7fa1ee8c0/content.htm]will cleare you doubt
    Regards
    Uday

  • Can itune and ipad have the same user name?

    Setting up new ipad, can ipad and itunes have the same user name being my email? 

    What do you mean by "user name"? They can, probably will, use the same iTunes Apple ID, if that's what you're asking.

  • Why can I not access My iPhone on my Air - they have the same cloud account - same iTunes - logged onto the same wifi network... and connected via USB - difficult much?!its killing me ahhh my screen smashed and i want access to my iPhone on my macbook

    Why can I not access My iPhone on my Air - they have the same cloud account - same iTunes - logged onto the same wifi network... and connected via USB - difficult much?!its killing me ahhh my screen smashed and i want access to my iPhone on my macbook..
    why is it sooo hard still --- can anyone inform me on this miracle app please
    thank you
    sincerely
    Theigalaxy

    find my iphone is something one needs to activate on the phone itself using the same appelID is nowhere near enough
    if it is then one can track, play a sound and remote whipe it from
    www.icloud.com
    if your screen is smashed and you think you can use find my iphone to get any data from your phone you are sadly mistaken

  • Ever since I upgraded my iMac to the latest software I can't seem to burn any cd's does anyone have the same problem?

    Ever since I upgraded my iMac to the latest software I can't seem to burn any cd's does anyone have the same problem?

    Care to share which latest software you installed?

  • Why can't I send messages to my friends that have the same thing as me?  t

    Why can't I send messages to my friends that have the same thing as me? They can send to me. It says that they aren't registered and they are though.

    What phone do you have?  And how, exactly, are you trying to send pictures to Facebook?  It sounds like you need to log into Facebook on the phone or re-enter your username and password for Facebook.  Somehow the connection between your photos and Facebook has been lost, and you need to get them connected again (verify your login information)

  • How can I maintain two tables content at the same time with SM30

    Hi all,
    I created two customizing tables that I would like to link together for maintenance in SM30. Table 1 is the header and table 2 can have multiple detail records.
    They are linked via the ID key field. I would like to run the Table Maintenance Generator on the first table in SE11 and be able to maintain both table data at the same time in SM30.
    How can I do that without any ABAP programming? Should I use Append or Include structure or else?
    Thank you for giving as much detail as possible.
    Regards,
    Sylvain

    Hi,
    You cant do it w/t abap programing.
    You can code in "EVENT" to achive the same.
    Open table maintainance generator of first table through se56 or se11.
    follow the path: environment>Modification>Event.
    Select sutaible event from drop down like Before Save... and do coding.
    In this way data will be saved in second table automatically when you save in first table.
    In case of any query, please revert.
    regards,
    Dhan

  • Two tables that have both "many-to-many" and "one-to-many" relationship

    i have the following two tables one represents the users and the other represents articles where each article can have one author(user) and of course the users can author many articles, so the relationship is one-to-many:-
    1. Users:-
    User_id (primary_key)
    User_name
    User_sex
    user_address
    2.Articiles:-
    Article_id
    Text
    Author_id (foreign key to the users.user_id)
    but the problem that i have faced is that on another requirement each articles can have multiple approval (users) before being published, so in this way the relation have became many-to-many, so i have created a third table named "approvals":-
    3.Approval:-
    approval_id (foreign key to the users.user_id)
    article_id (foreign key to the articles.article_id)
    level.
    so is this a good approach to flow , or there are another way that i can better build these tables.

    sb92075 wrote:
    approval_id (foreign key to the users.user_id) I am not clear on data element above.
    I thought USERS were really AUTHORS. yes the authors are users , and the author id is exactly the same as user id.
    and any user can be author if a flag in the users table is set to yes and he is involved in a workflow.
    so do authors approve their own articles? no
    do non-authors approve articles?
    What is "level" in APPROVAL table?
    What is PK for APPROVAL table? level indicates the workflow steps if there are multiple steps in the workflow ,for example the first approval is on level one, and the second approval is on level two,etc
    the primary key for the approval will be article_id and the user_id

Maybe you are looking for

  • Unknown error (0x666D743F) itunes wont open

    so i was trying to put some songs on my ipod and it would not accept my ipod,it said i needed the new version of itunes (7) so i go to download it. Then when i try to open itunes after it has been downloaded this comes up. The iTunes application coul

  • Goodwill and balance forward

    Dear All, I would be grateful if you wouldhelp me answer for my issue. I use AFD for investment and equity. Goodwill only has extraamortization method in the setting for Consolidation of Investment. When I perform task balance forward in a new year,

  • How to Get Barcode Report in Oracle Fusion Middleware.

    Hello Freinds, I am Using Oracle Reports 11g (Oracle Weblogic 10.3.3). I want to configure barcode report in this application server. Earlier in Oracle 10gAS it was oraclebarcode.jar file to enable the functionality. Please provide me the information

  • Open Hub Destination - SAP CRM

    Hi, We would like to transfer bulk data from SAP BI (Data Store Object) into SAP CRM. Performance of APD has been very poor. As an alternative, we are checking the feasibility of using InfoSpoke/Open Hub service to transfer data from data store objec

  • NoClassDefFoundError on WebLogicMBeanMaker

    Hi there, When I try to run the WebLogicMBeanMaker I get a NoClassDefFoundError. I'm calling commEnv.bat to set the env before running the command line: java -DMF=IBSAuthenticator.xml -DFiles=. -DcreateSTubs=true weblogic.managment.commo.WebLogicMBea