How do i create a view in designer?

I want to create views in designer to mimic the queries existing in the old access database but I can't figure out how to do it. As a last resort I can create the views manually with SQL after generation but I would like to do it at design time if I can.
Does anyone know how to do this? Presumably I would need to do it in the server model?
thx
adam

You can create views in the design editor. Same way as you would create tables there.

Similar Messages

  • How can i create i view?

    Hi
    how can i create i view? give me some docs regarding this

    Hi,
    go thro this link
    /thread/450007 [original link is broken]
    <u></u>Re: i view
    Regards
    Bhargava
    pts r welcome

  • How do I create a view in SQL Server in Visual Studio Express 2013 for Desktop?

    Hi
    I've got a SQL Server database set up using the internal SQL Server in Visual Studio Express 2013 for Desktop. I want to create a view (using tables with one to many relationships) but I don't
    know how to do it.
    Where can I find a good tutorial on creating views in SQL Server in Visual Studio Express 2013 for Desktop? I think Visual Studio Express 2013 for Desktop doesn't have some view designer that
    exists in the non-express version of Visual Studio (if I'm not mistaken). So I think I'd need a tutorial on how to do the actual SQL, unless there is some tool I don't know about.
    Thanks

    Hi ,
    According to your description, if you install SQL Server SQL Server 2014 Express and SQL Server Manager Studio tools (SSMS), if you want to create a view, you can use SSMS. Then if you want to connect to and Diagram your SQL Express Database in Visual Studio
    2013, you can attach the database file by using the .NET Framework Data Provider for SQL Server in Visual Studio, and create a database diagram via expanding the “Database Diagrams” node.
     For more information, there is similar issue about how to connect to and Diagram your SQL Express Database in Visual Studio 2012 , you can review the following article,
    http://blogs.msdn.com/b/bethmassi/archive/2011/10/27/how-to-connect-to-and-diagram-your-sql-express-database-in-visual-studio-lightswitch.aspx.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How can i create a view with jdevlopper 10132

    hi,
    i want to know how to create a view with JDeveloper 10132.
    thanks

    Sorry, but I had to jump in here.
    7rouz - you've certainly violated the 10 commandments for posting here...
    Do you want to:
    1). Create a database view directly in the database
    2). Model a database view using the database modeller
    3). Create an ADF BC View Object
    4). Create some type of visual object (web page, Swing panel)
    5). something else.
    Your question is too ambiguous to yield an answer, unless by luck.
    Regards,
    John

  • Creating materialized view in Designer 9i

    When I create a materialized view in Designer 9i it is created with 'WITH ROWID' while Oracle default is 'WITH PRIMARY KEY'.
    Can I configure Designer to generate mviews 'WITH PRIMARY KEY'?

    When I create a materialized view in Designer 9i it is created with 'WITH ROWID' while Oracle default is 'WITH PRIMARY KEY'.
    Can I configure Designer to generate mviews 'WITH PRIMARY KEY'?

  • How can i create i-views?

    Hii
    Give me some explanation on how to create i-views??

    Hi Subin,
    Please go through this links
    Creating iviews
    http://help.sap.com/saphelp_nw04/helpdata/en/f5/eb50360e6a11d7b84900047582c9f7/frameset.htm
    /people/arunkumar.sampathkumar/blog/2006/09/08/configuring-ep-for-connecting-to-bw
    /people/arunkumar.sampathkumar/blog/2006/09/07/configuring-ep-for-connecting-to-sap-r3
    /people/arunkumar.sampathkumar/blog/2006/08/09/publishing-bw-workbooks-into-portal
    Here is the link to creata a BSP iview.
    http://help.sap.com/saphelp_nw04/helpdata/en/30/1b62799d786445a72ad85acb4fd55b/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/13/81a66d100011d7b84b00047582c9f7/frameset.htm
    Thanks N Regards
    Santosh
    Reward if helpful !!!

  • Please Help - How do I create a VIEW through a trigger

    I'm trying update a view under the following circumstances
    I have a table, TABLE1, with about 50 columns. I have another table, TABLE2, with a list of columns from TABLE1 that I want to include in the view. Whenenver I add or delete an entry in TABLE2, I want to update the view with the new set of columns from TABLE1.
    I'm getting "cannot commit in trigger" (ORA-04092) error.
    Please help
    I tried the following trigger and the procedure
    TRIGGER
    CREATE OR REPLACE TRIGGER MAPPING_FIELDUPDATE
    AFTER insert or DELETE OR update of DISPLAY_COLUMN_NAME, TABLE1_COLUMN_NAME
    on TABLE2
    begin
    TABLE1_MAPPING;
    end;
    Procedure TABLE2_MAPPING
    IS
    CURSOR MYCUR IS SELECT * FROM MYDATBASE.TABLE1;RowInfo MYCUR%ROWTYPE;
    FIELDLIST VARCHAR2(5000);
    SQLSTRING VARCHAR2(5000);
    BEGIN
    OPEN MYCUR;
    LOOP
    FETCH MYCUR INTO RowInfo;
    EXIT WHEN MYCUR%NOTFOUND;
    IF (FIELDLIST IS NULL) THEN
    FIELDLIST :=RowInfo.TABLE1_COLUMN_NAME||' '||RowInfo.DISPLAY_COLUMN_NAME;
    ELSE
    FIELDLIST :=FIELDLIST||','||RowInfo.TABLE1_COLUMN_NAME||' '||RowInfo.DISPLAY_COLUMN_NAME;
    END IF;
    END LOOP;
    CLOSE MYCUR;
    SQLSTRING:= 'CREATE OR REPLACE VIEW SELECTTABLE1 AS SELECT '||FIELDLIST||' FROM TABLE1';
    DBMS_OUTPUT.PUT_LINE(SQLSTRING);
    EXECUTE IMMEDIATE SQLSTRING;
    END;

    or does anybody know any work-around.Sure. Don't use a trigger to create a view. Build a view that selects from a function that returns a ref cursor. Have the function assemble the query dynamically from the values in TABLE 2.
    Although I still think this kind of dynamic configuration is a design smell.
    Cheers, APC

  • How to implement Creating a View

    Hi,
    Please help me i cant run my View statement, how can I done this,
    Create View [dbo].[View] AS
    SELECT CONVERT (DATETIME, Null) AS TXNDATE ,
           CONVERT (NUMERIC(19,6), 0) AS Qty,
           CONVERT (NUMERIC(19,6), 0) AS Amt,
           CONVERT (NUMERIC(19,6), 0) AS Qty2,
           CONVERT (NUMERIC(19,6), 0) AS Amt2
    Thank you very much,
    CLint

    Dear Clint,
    The View is a created based on existing tables and the general syntax of the same is as follows :
    CREATE VIEW  view_name  AS select_statement
    For example :
    CREATE VIEW hiredate_view
    AS
    SELECT c.FirstName, c.LastName, e.EmployeeID, e.HireDate
    FROM HumanResources.Employee e JOIN Person.Contact c on e.ContactID = c.ContactID ;
    GO
    Please do not that the above statement has  afull fledged SELECT statement which also states the table name.
    If you still face any errors, please let us know the error and also let us know where you are trying to create the view.
    Regards
    Arshdeep

  • HOW CAN I CREATE A VIEW FROM SAME TABLE WHERE I NEED COLUMNS DETAILS FROM DIFFERENT ROWS IN THE SAME TABLE

    i have a table1 on the top, but i want to create a view from table 1 as  view mentioned beneath the table 2. Could any of you please help me.
    table1
    ID
    office
    employee
    activity
    1
    246
    -9999
    698
    2
    ##-99
    21480
    698
    3
    104
    -9999
    7025
    4
    ##-99
    88908
    7025
    5
    108
    -9999
    2415
    6
    ##-99
    17135
    2415
    7
    246
    -9999
    698
    8
    ##-99
    21480
    698
    9
    104
    -9999
    7025
    10
    ##-99
    88908
    7025
    11
    108
    -9999
    2415
    12
    ##-99
    17135
    2415
    view
    ID
    office
    ID1
    employee
    activity
    1
    246
    2
    21480
    698
    3
    104
    4
    88908
    7025
    5
    108
    6
    17135
    2415
    7
    246
    8
    21480
    698
    9
    104
    10
    88908
    7025
    11
    108
    12
    17135
    2415

    declare @forumsTable table (ID int, officeID int, employeeID INT, activityID int)
    insert into @forumsTable (ID, officeID, employeeID, activityID)
    values
    (1 ,246, -9999, 698 ),
    (2 ,-99, 21480, 698 ),
    (3 ,104, -9999, 7025),
    (4 ,-99, 88908, 7025),
    (5 ,108, -9999, 2415),
    (6 ,-99, 17135, 2415),
    (7 ,246, -9999, 698 ),
    (8 ,-99, 21480, 698 ),
    (9 ,104, -9999, 7025),
    (10 ,-99, 88908, 7025),
    (11 ,108, -9999, 2415),
    (12 ,-99, 17135, 2415)
    select f1.ID, f1.officeID, f2.ID as ID1, f1.employeeID, f1.activityID
    from @forumsTable f1
    inner join @forumsTable f2
    on f1.activityID = f2.activityID
    and f1.officeID > 0
    and f2.employeeID > 0
    and f1.id - f2.id = -1
    You really need to improve the relationship here.
    Perhaps you could make office and activity an exclusive pair.

  • Informix ODBC driver error while creating a view in Designer

    I nedd to ceate a view in a universe (Business Objects XI R2) that is connected to an Informix database. I use the 3.34 ODBC Informix driver.
    When I write the select statement (select column from table) and check the syntax I have the following error:
    "Exception: DBD, [Informix][Informix ODBC Driver][Informix]A syntax error has occurred.State: 42000"
    Is there anybody who has solved this problem??
    Thanks in advance to anyone who can give me hints on how to solve problem.
    Fabrizio

    Hi Fabrizio,
    The error state 42000 indicates that there is a syntax error or access violation. If you are using an Informix native client connection then add the following parameter <Parameter Name>"Force SQLExecute">Always</Parameter> in the informix.sbo file. Restart Designer and then try to create a derived table with a simple select statement.
    If you are using an ODBC connection, then add the above mentioned parameter in the Generic section of odbc.sbo file.
    Regards
    Arun Sasi

  • How can I create a view of top five teams averages based on individual averages of that team?

    I have created a list that groups teams by their Team name (Team column) with the individuals members (participants column) averages and their team average (total average view option).  I want to only display the top five teams that have the overall
    top team averages.  I have a list that contains a team name, average minutes, week, and participant. The team manager plugs in each week a new entry for each participant on the team.  I have a view that computes each team average but I want a view
    of the top five teams based on the top averages of the team (not individual participant average).  Unfortunately, I can only seem to get all teams grouped with individuals of that team, their individual averages and the team average but can't figure out
    only how to show the top five teams top average.  Because it's a total (team average) and not a separate column, I can't get a view by team based on total average.  I can by top individual average but not by the team.  Can some one help me figure
    out a solution?

    A calculated column won't work because a calculated column can only reference the individual item, not the entire list or a subset.
    You could do javascript to build this, but to me it's easier to just use Excel.
    Andy Wessendorf | Solution Foundry [email protected]

  • How do I create Bookmarks in LiveCycle Designer?

    I've created a fillable form using Adobe Live 8 Pro, I distribute the form using Acrobat. I haven't found a way to create bookmarks in LiveCycle so I create them using Acrobat first before I distribute the form...Is there another way?
    The problem I'm running into with this approach is that I cannot auto-enable the bookmarks when the PDF is opened because File > Properties > Initial View is disabled.
    So given that I've created a form using Adobe Live, what do I have to do to get bookmarks to launch in the initial view?
    Does anyone out there know how to do this?
    thanks in advance.
    Jon

    Thanks. I have a Mac and had to do one more step, which was to go to the top line of symbols, click on the cog wheel (organize bookmarks) and then select "new folder." You got me in the right place to start looking.

  • How can I create updateable views

    Hi,
    When I create a new page using form --> master detail form, I put one view as the master table and another view as the detail table. By default, the detail table is set as the type SQL Query(updateable report). I guess this is the reason I can add row to the detail table. Then, on the same page, I wanna create another detail table based on another view that will relate to the master table, but this time, I don't have the option to set this detail table as the type(updateable report), just SQL Query and I couldn't add row to this detail table as well.
    So, I just wonder if there is a way to assign more than one view to a master table and the views in the detail table are all updateable(meaning I can insert or delete).
    Thanks!!

    Okay, Here's a quick rundown on how to build a manual form using APEX_ITEM and collections. The process goes in 4 steps: gather the data, display the data, update based on user input, then write the changes. Each step requires it's own piece of code, but you can extend this out as far as you want. I have a complex form that has no less than a master table and 4 children I write to based on user input, so this can get as complex as you need. Let me know if anything doesn't make sense.
    First, create the basic dataset you are going to work with. This usually includes existing data + empty rows for input. Create a Procedure that fires BEFORE HEADER or AFTER HEADER but definitely BEFORE the first region.
    DECLARE
      v_id     NUMBER;
      var1     NUMBER;
      var2     NUMBER;
      var3     VARCHAR2(10);
      var4     VARCHAR2(8);
      cursor c_prepop is
      select KEY, col1, col2, col3, to_char(col4,'MMDDYYYY')
        from table1
        where ...;
      i         NUMBER;
      cntr      NUMBER := 5;  --sets the number of blank rows
    BEGIN
      OPEN c_prepop;
        LOOP
          FETCH c_prepop into v_id, var1, var2, var3, var4;
          EXIT WHEN c_prepop%NOTFOUND;
            APEX_COLLECTION.ADD_MEMBER(
            p_collection_name => 'MY_COLLECTION',
            p_c001 => v_id,  --Primary Key
            p_c002 => var1, --Number placeholder
            p_c003 => var2, --Number placeholder
            p_c004 => var3, --text placeholder
            p_c005 => var4 --Date placeholder
        END LOOP;
      CLOSE c_prepop;
      for i in 1..cntr loop
        APEX_COLLECTION.ADD_MEMBER(
            p_collection_name => 'MY_COLLECTION',
            p_c001 => 0, --designates this as a new record
            p_c002 => 0, --Number placeholder
            p_c003 => 0, --Number placeholder
            p_c004 => NULL, --text placeholder
            p_c005 => to_char(SYSDATE,'MMDDYYYY') --Date placeholder
      end loop;
    END;Now I have a collection populated with rows I can use. In this example I have 2 NUMBERS, a TEXT value, and a DATE value stored as text. Collections can't store DATE datatypes, so you have to cast it to text and play with it that way. The reason is because the user is going to see and manipulate text - not a DATE datatype.
    Now build the form/report region so your users can see/manipulate the data. Here is a sample query:
    SELECT rownum, apex_item.hidden(1, c001),  --Key ID
         apex_item.text(2, c002, 8, 8) VALUE1,
         apex_item.text(3, c003, 3, 3) VALUE2,
         apex_item.text(4, c004, 8, 8) VALUE3,
         apex_item.date_popup(5, null,c005,'MMDDYYYY',10,10) MY_DATE
    FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = 'MY_COLLECTION'This will be a report just like an SQL report - you're just pulling the data from the collection. You can still apply the nice formatting, naming, sorting, etc. of a standard report. In the report the user will have 3 "text" values and one Date with Date Picker. You can change the format, just make sure to change it in all four procedures.
    What is critical to note here are the numbers that come right before the column names. These numbers become identifiers in the array used to capture the data. What APEX does is creates an array of up to 50 items it designates as F01-F50. The F is static, but the number following it corresponds to the number in your report declaration above, ie, F01 will contain the primary key value, F02 will contain the first numeric value, etc. While not strictly necessary, it is good practice to assign these values so you don't have to guess.
    One more note: I try to align the c00x values from the columns in the collection with the F0X values in the array to keep myself straight, but they are separate values that do NOT have to match. If you have an application you think might get expanded on, you can leave gaps wherever you want. Keep in mind, however, that you only have 50 array columns to use for data input. That's the limit of the F0X array even though a collection may have up to 1000 values.
    Now you need a way to capture user input. I like to create this as a BEFORE COMPUTATIONS/VALIDATIONS procedure that way the user can see what they changed (even if it is wrong). Use the Validations to catch mistakes.
    declare
      j pls_integer := 0;
    begin
    for j1 in (
      select seq_id from apex_collections
      where collection_name = 'MY_COLLECTION'
      order by seq_id) loop
      j := j+1;
      --VAL1 (number)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>2,p_attr_value=>wwv_flow.g_f02(j));
      --VAL2 (number)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>3,p_attr_value=>wwv_flow.g_f03(j));
      --VAL3 (text)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>4,p_attr_value=>wwv_flow.g_f04(j));
      --VAL4 (Date)
      apex_collection.update_member_attribute (p_collection_name=> 'MY_COLLECTION',
          p_seq=> j1.seq_id,p_attr_number =>5,p_attr_value=>wwv_flow.g_f05(j));
    end loop;
    end;Clear as mud? Walk through it slowly. The syntax tells APEX which Collection (p_collection_name), then which row (p_seq), then which column/attribute (p_attr_number) to update with which value (wwv_flow.g_f0X(j)). The attribute number is the column number from the collection without the "c" in front (ie c004 in the collection = attribute 4).
    The last one is your procedure to write the changes to the Database. This one should be a procedure that fires AFTER COMPUTATIONS AND VALIDATIONS. It uses that hidden KEY value to determine whether the row exists and needs to be updated, or new and needs to be inserted.
    declare
    begin
      --Get Hourly Loads from Collection
      for y in (select TO_NUMBER(c001) x_key, TO_NUMBER(c002) x_1,
                 TO_NUMBER(c003) x_2,
                 c004 x_3,
                 TO_DATE(c005,'MMDDYYYY') x_dt
               FROM APEX_COLLECTIONS
               WHERE COLLECTION_NAME = 'MY_COLLECTION') loop
        if y.x_key = 0 then  --New record
            insert into MY_TABLE (KEY_ID, COL1,
                COL2, COL3, COL4, COL5)
              values (SEQ_MY_TABLE.nextval, y.x_1,
                  y.x_2, y.x_3, y.x_4, y.x_dt);
        elsif y.x_key > 0 then  --Existing record
            update MY_TABLE set COL1=x_1, COL2=x_2, COL3=x_3, COL4=x_4, COL5=x_dt
             where KEY_ID = x_key;
        else
          --THROW ERROR CONDITION
        end if;
      end loop;
    end;Now I usually include something to distinguish the empty new rows from the full new rows, but for simplicity I'm not including it here.
    Anyway, this works very well and allows me complete control over what I display on the screen and where all the data goes. I suggest using the APEX forms where you can, but for complex situations, this works nicely. Let me know if you need further clarifications.
    And there you have it.

  • How can I create 2 catalogues (same design but different languages)

    Hello,
    I have to launch 2 catalogues (32 pages) in Indesign, with an equal layout but different languages. My client will need to start them both and won't wait for a agreement on a Master file. He'll update the layout all along the realisation (color, pictures and graphic design).  To avoid waisting time by correcting twice, would you have a tip to link both composition and enhance automatically the background layout and ajustements over and above the languages ?
    What would be the best method ?
    Thanks a lot for your advices !
    Caro.

    Welcome to the discussions.
    In the Accounts tab of Mail's preferences, you can set the Full Name (I don't know how it will be labelled in French - it is the 3rd field in Account Information). This is the name that will be displayed in the From column of the recipient's mail client.
    But if the mail accounts are for two different users, it would be better to set up a separate login account on the mac for each of them, and then set up the mail preferences for the separate users.
    AK

  • [ADF Help] How to create a view for multiple tables

    Hi,
    I am using Jdeveloper 11G and ADF framework, and trying to create a view to update multiple tables.
    ex:
    Table A has these fields: ID, Name
    Table B has these fields: ID, Address
    A.ID and B.ID are primary keys.
    B.ID has FK relationship with A.ID
    (basically, these tables have one-to-one relation)
    I want to create a view object, which contains these fields: B.ID (or A.ID), A.Name, B.Address.
    So I can execute C,R,U,D for both tables.
    I create these tables in DB, and create entity objects for these tables.
    So there are 2 entity objects and 1 association.
    Then I create a view object based on B and add fields of A into the view:
    If the association is not a "Composition Association",
    when I run the model ("Oracle Business Component Browser") and try to insert new data, fields of A can't edit.
    If the association is a "Composition Association", and click the insert button, I will get
    "oracle.jbo.InvalidOwnerException: JBO-25030: Failed to find or invalidate owning entity"
    If I create a view object based on A and add filed of B into the view:
    When I run the model and try to insert new data, fields of B can't edit, no matter the association is or is not a composition association.
    So... how can I create a view for multiple tables correctly?
    Thanks for any advices!
    Here are some pictures about my problem, if there is any unclear point, please let me know.
    http://leonjava.blogspot.com/2009_10_01_archive.html
    (A is Prod, B is CpuSocket)
    Edited by: user8093176 on Oct 25, 2009 12:29 AM

    Hi Branislav,
    Thanks, but the result is same ....
    In the step 2 of creating view object, I can select entity objects to be added in to the view.
    If I select A first, and then select B (the "Source Usage" of B is A), then finishing the wizards.
    When I try to create a new record in the view, I can't edit any properties of B (those files are disabled).
    If I select B first, and then select A in crating view object, the result is similar ...
    Thanks for any further suggestion.
    Leon

Maybe you are looking for