Innerjoin & view

what is innerjoin & view? diff ..between them?
which one is advantage,explain plzzzzzzzzzz

Innerjoin and database view basically does the same. JOin two tables based on a condition.
The difference is that the VIEW is defined in a permanent fashion in the dictionary and the innerjoin's life is within the program. After the program, the join's existence will not be there.
Regards,
Ravi

Similar Messages

  • View & innerjoin ?

    what is the difference between view & innerjoin ?explain plz ?

    innerjoin
    The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join. With an inner join, you only get the records of the cross-product for which there is an entry in all tables used in the view. With an outer join, records are also selected for which there is no entry in some of the tables used in the view.
    The set of hits determined by an inner join can therefore be a subset of the hits determined with an outer join.
    Database views implement an inner join. The database therefore only provides those records for which there is an entry in all the tables used in the view. Help views and maintenance views, however, implement an outer join.
    view
    A view describes the layout and behavior of a rectangular area of a user interface.
    Use
    Every Web Dynpro application has at least one view. The layout of a view is made up of different user interface elements, which can be nested in each other. The positioning of interface elements in one view is supported by the supplied layout variants.
    In addition to the visible part, the layout, a view also contains a controller and a context. The data to which the elements of the view can be bound are stored and managed in the view context, enabling them to be represented or used on the screen. The view controller can contain methods for data retrieval or for processing user input.
    Multiple views can be classified in view sets.
    A view also has inbound and outbound plugs so that views can connected with each other, or so that a view can be linked with an interface view. These plugs can be linked with each other using navigation links.
    Empty View
    The empty view is a special type of view. It is always generated automatically in a window or a view set area, provided that no view has been embedded manually. It may also be preferable to embed an empty view in a non-empty window as well. Just like a normal view, the empty view occupies a certain area of a window at runtime and can be used to hide a different view, for example, using specific controls.
    When you create an empty view, an inbound plug with the default name ShowEmptyView is created.

  • Need help with an innerjoin issue

    Hello;
    I am writting a small app for my web site and have run into
    an issue with an innerjoin. Let me explain what the function is for
    this so maybe you can understand what I am doing.
    There are 2 pages to this. Page 1, is a category selection
    page. It loads all the categories on the page with a link that
    passes a category ID to page 2. Page 2, then allows you to view all
    the projects that are associated to the specific category. There is
    a numbered navigation on this page, kind of like google, 1 2 3 4
    More> Next>
    Now what I am trying to do it create a select function that
    allows you to choose another category to look through on page 2 so
    you don't have to go back to page 1 and select another category
    there.
    Right now, I have the innerjoin working well with page 1
    going to page 2 and the numbered nav, it is doing what it is
    supposed to. BUT the select function is working off the where
    clause and not working independantly from what the numbered nav and
    body is supposed to be doing. There is also a spot I added to this
    page that kind of works like the select function, it puts the name
    of the category your viewing on the page.
    What is happening with the select function and this name
    function is lets say there are 5 project records tied to the
    category you selected, then the select function gets 5 names of the
    same category in it and so does the category name function.
    (Follow this?)
    Let me post the code for page 1 and page 2. also will add
    what the tables are in the db.
    DB tables:
    Table1: Categories
    Name (this is the actual category name), MYFile(the file that
    give an image of the category), Description(a description of this
    category), CategoryID (this is added to the projects table for each
    project that is connected to each category)
    Table 2: Projects
    ProjectID (this is the ID of the projects), Name (this is the
    name of the project) Body (thi sis the description and picture of
    the project), CategoryID (this is the id of what category the
    project falls under, also assigned to tproject from the categories
    table)
    There is a lot of code that goes in this, so I am going to
    post the code that is pertinent to this question, 90% of it is
    working at this time, just not the select function and category
    name on page 2.
    Page1 Code:
    <CFQUERY name="GetRecord"
    datasource="#APPLICATION.dataSource#">
    select Name, MYFile, Description, CategoryID
    FROM Categories
    </CFQUERY>
    <head>
    </head>
    <body>
    <cfloop query="GetRecord" startRow="#URL.startRow#"
    endRow="#endRow#"><cfoutput>
    <img src="../img/cat/#MYFile#" width="50" height="50">
    <a
    href="portfolio-detail.cfm?CategoryID=#CategoryID#">#Name#</a>
    #Description#
    </cfoutput></cfloop>
    <!--- there is a numbered nav on this page, it works nice
    so I didn't add the code, that is why I am using a cfloop --->
    Page2 code:
    <CFQUERY name="getProjects"
    datasource="#APPLICATION.dataSource#">
    SELECT Projects.ProjectID, Projects.Name, Projects.Body,
    Projects.CategoryID,
    Categories.CategoryID AS catID, Categories.Name AS cat_name
    FROM Projects
    INNER JOIN Categories
    ON Categories.CategoryID = Projects.CategoryID
    WHERE Projects.CategoryID = #categoryID#
    ORDER BY ProjectID
    </CFQUERY>
    <cfif getProjects.recordCount is 0>
    No projects in this category.
    <cfabort>
    </cfif>
    <head>
    <!--- this script is for the select function so when you
    make a selection, it goes to the next category without having to
    hit a submit button --->
    <script language="Javascript">
    function changeRecord(){
    document.category.submit();
    </script>
    </head>
    <body>
    <!--- here are the Category name and select functions that
    aren't working properly yet --->
    <cfoutput
    query="getProjects">#cat_name#</cfoutput>
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=true">
    <select name="CategoryID" size="1"
    onChange="category.submit();">
    <option value=""> --Select a Category--
    </option>
    <CFOUTPUT query= "getProjects">
    <option value="#CategoryID#">#cat_name#</option>
    </CFOUTPUT>
    </select>
    </form>
    <!--- this part is working properly, it also has a
    numbered nav, like google that is working properly at this point
    --->
    <cfoutput query="GetProjects" startRow="#startRow#"
    maxRows="#maxRows#">
    #Name#
    #Body#
    </cfoutput>
    <!--- next is the cfmodule for the nav, the nav is a lot
    of code, a whole page on it's own so I am not posting it --->
    <cfmodule
    template="../CFdocs/PageNav.cfm"
    totalItems="#numRows#"
    numPerPage="#maxRows#"
    startRow="#startRow#"
    url="#cgi.script_name#?categoryID=#categoryID#&startRow=#startRow#">
    The main part that is not working properly is the select, and
    category name. How to I get those to work independantly from my
    where clause? (I need the where clause for the numbered nav and
    cycling through the projects tied to the category you called up
    from page 1.
    Can someone help me tweek my code from this point? I am
    stumped, I looked at the cf docs and I can't find a solution. I am
    using CF 8.
    Any help would be appreciated. Thank you!
    CFmonger

    I fixed a lot of this since I posted it this morning. Now all
    that isn't working properly is the select, it isn't passing the
    proper variable to make the query work.
    This is what I have now:
    Page 2:
    <CFQUERY name="getProjects"
    datasource="#APPLICATION.dataSource#">
    SELECT Projects.ProjectID, Projects.Name, Projects.Body,
    Projects.CategoryID,
    Categories.CategoryID AS catID, Categories.Name AS cat_name
    FROM Projects
    INNER JOIN Categories
    ON Categories.CategoryID = Projects.CategoryID
    WHERE Projects.CategoryID = #categoryID#
    ORDER BY ProjectID
    </CFQUERY>
    <!--- I will add the <cfqueryparam> in a bit --->
    <cfif getProjects.recordCount is 0>
    No projects in this category.
    <cfabort>
    </cfif>
    <!--- This query populates the select nav --->
    <CFQUERY name="cata"
    datasource="#APPLICATION.dataSource#">
    select Name, MYFile, Description, CategoryID
    FROM Categories
    </CFQUERY>
    <head>
    <script language="Javascript">
    function changeRecord(){
    document.category.submit();
    </script>
    </head>
    <body>
    <!--- this output works well now, gives me what I need and
    changes when you select a category from page 1 --->
    <cfoutput query="getProjects"
    maxrows="1">#cat_name#</cfoutput>
    <!-- the select isn't passing the CategoryID properly, it
    is now throwing an error --->
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=#CategoryID#">
    <select name="CategoryID" size="1"
    onChange="category.submit();">
    <option value=""> --Select a Category--
    </option>
    <CFOUTPUT query= "cata">
    <option value="#CategoryID#">#Name#</option>
    </CFOUTPUT>
    </select>
    </form>
    <!-- the rest of the code goes after this, it ias all
    working --->
    The error I get when using the select is this:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Syntax error
    (missing operator) in query expression 'Projects.CategoryID ='.
    The error occurred in C:\Websites\folio\portfolio-detail.cfm:
    line 12
    10 : INNER JOIN Categories
    11 : ON Categories.CategoryID = Projects.CategoryID
    12 : WHERE Projects.CategoryID = #categoryID#
    13 : ORDER BY ProjectID
    14 : </CFQUERY>
    I also tried doing it this way:
    <form Name="category" method="post"
    Action="portfolio-detail.cfm?CategoryID=true"
    This way didn't work at all, it only made the numbered nav on
    the page cycle through all the projects in all the categories.
    What do I need to change to pass the proper variable from the
    select nav to the innerjoin query and my where statement?

  • How to include two different tables in view concept..

    I have to make the innerjoin between these two tables.. i.e, BUT000-PARTNER = PA0002-PERNR.. here PARTNER is CHAR(10) and PERNR is NUMC(8)..in this i had two probs..one is how to convert this PERNR into CHAR(10) and second is how to match those fields..in VIEWS concept..
    regards
    ravi..

    Kiran,
    Usually Views are created where there are two columns of the same type exist in the JOIN CONDITION. In this case your results when you create a VIEW in SE11, you cannot specify the offset so that it considers only the last 8 chars.
    So, in this case , you are better off taking care of this in the code, where you can mentiond to consider the first / last 8 chars of the string.
    Regards,
    Ravi
    Note :Please mark all the helpful answers

  • Can not refresh view data in STRUST

    I am using the JSP (STRUTS) for developing my App.
    I get a list of contact. In bellow it, I make a link for each contacts.
    When i view details of one contact. On click link below.
    My pages:
    listcontact.jsp
    contactdetails.jsp
    When i request a details of contact from list contact -> View successfull.
    But when i refresh the contactdetails.jsp page. I got a message error:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.7 logs.
    I have to use:
    response.setHeader("Cache-Control","no-store");
    response.setHeader("Pragma","no-cache");
    But can't refresh any way this page.
    Plase show me the way to solve it.
    Thanks
    Vu Nguyen

    hi,
    Here are codes
    listdata = new CompanyListData();
    companyList = (ArrayList) session.getAttribute("datalist_company");
    if (companyList == null)
    companyList = (ArrayList) listdata.getCompanyList(datasource);
    session.setAttribute("total", companyList.size()+ " companies");
    session.setAttribute("datalist_company", companyList);
    return (mapping.findForward("success"));
    And for details:
    if ((addressItem==null && companyName!=null)||(addressItem==null&& companyId!="0"))
    addressData = new AddressDetailData();
    addressItem = addressData.getAddressItem(datasource, companyId);
    session.setAttribute("addressDetail", addressItem);
    I got companyID by:
    String companyId = request.getParameter("companyId");
    return (mapping.findForward("success"));
    Please gest the problems that.
    Thanks,

  • Year-at-a-glance View in iCal

    Once again, I am filling out next year's year-at-a-glance wall calendar and wish I had this view in iCal. With today's screens, a year-at-a-glance view shouldn't be difficult to implement and would be very useful. My favorite layout has 12 rows (one for each month, January at the top) and blocks for each day running from left to right with weekends shaded. When is Apple going to improve iCal? or at least enable others to make such improvements?
    Message was edited by: Jim Putnam

    I can't believe this, I finally get round to organizing myself and ical doesn't do a year view.
    I have hunted online for some way to make this happen and have ended up making a pdf of a printout to be able to see it.
    This can only be a temp solution, as my diary changes a lot and printing/pdf is not very elegant or efficient or even that easy to read quickly.
    In my online search I have found posts requesting this as far back as 2003, and 6 years is to long to wait for something that surely must be such a simple solution.
    I'm also stunned by the lack of plugin/widget/app solutions from 3rd party developers, I would definitely pay a a buck or 2 for something to let me do this well within ical,
    And If I want it you can be sure there are at least another 100,000 who would also pay, maybe we could get the guy who wrote the ifart app for iphone to write it for us, about 2000 people a day were buying that at 99 cents a pop in the run up to christmas.
    Apple should embarrassed by this.
    If anyone knows the solution please post it.
    Brin

  • Hi, i am trying to open and view a report that comes from another server with different odbc connection

    hi, i am trying to open and view a report that comes from another server with different odbc connection
    i created a crystal report for a mysql database on my machine and everything works great
    but we have other reports that come from other machines with different odbc connection
    and this its not working when opens the report asks for credentials
    and i cannot use the remote ip for these reports that come from other machine
    question
    if i cannot connect to remote ip to open the report
    for each report i have to create a database the report database on my machine and then open the report ?
    or there is some other way to open the report ?
    i am using visual studio 2013 and mysql and
       <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
    thanks

    short
    i have a report that it was created on another server with a specific dsn
    now i am trying to open the report on my machine
    the database from the other server does not exist on my machine
    the server machine where the report was created the ip its not accessible
    question ?
    can i open the report on my machine or its impossible ?
    thanks

  • Mini-DVI to Video Adapter: For TV Viewing?

    The Apple-Salesperson sold me a Mini-DVI to Video Adapater to send pictures to the TV from my MacBook. I get sound on the TV but not the slids. The TV picture only displays the computer's main screen.
    Is this the correct adapter? I see other threads here use something different. Is there a special setting I need to change?
    Thanks,

    With your TV hooked up to your Macbook, you should be able to view anything on your computer. If you have all of your pictures in iPhoto, your best option is to use FrontRow by using the remote.
    (make sure your displays are mirroring eachother, Preferences>Displays)

  • Refreshing the Data from a embed view in a view container

    Hi everybody
    I would like to know how can I do to refresh all data from a View with a view container the problem is:
    that I have a window that has a view at the same time this has a view container.  The Main view brings the data of editable elements when I select one element of the main view the view container brings a list for that element (dependencies) but only the first time a choose an element loads the correct data, when I choose another one it brings the same old data and doesn't make the call for the wdDoInit() method.
    The question is:
    How do I force the view to refresh all the data or call again the wdDoInit() method?
    Thank you for your help

    Aida,
    Lets say you have two components C1 and C2 and you want method from C1 to be available in C2 then follow these steps:-
    1) Goto the Interface Controller of C1 and create a method there lets say doSomething
    2) Then goto C2. There you can see Used Web Dynpro Components --> Right click Add Used Component --> Give some name say C1Comp --> Click browse and select C1 --> Click Finish.
    3) Next goto Component Controller of C2 --> Properties --> Click Add and check if C1 is added. If not then select the checkbox and select OK.
    4) Now goto Implementation tab of C2 and lets say wdDoInit you can write following code:-
    wdThis.wdGetC1CompInterface().doSomething();
    Chintan

  • How to load a specific view in a browser

    Hi Guys,
          In my application, I hav 3 views..I need to set particular view at window level..So How can I do that..Thanks in advance

    Good day,
    Please check my reply in the following thread.
    Re: Change of default view in a web dynpro window
    Regards and Best wishes.

  • Possible to see at a glance who has/has not viewed pdf via the 'Tracker'?

    We are working on setting up procedures for Browser-based reviews. We were hoping we'd be able to see at-a-glance who had/had not viewed or sent back comments, and the date they sent them in the Tracker, but it seems to be just a list of who it was sent to originally. How do you know who has sent comments, other than manually scrolling through all the comments to see people's names?

    Hi;
    No, there isn't a way for you to see anything about who has saved progress.
    Thanks,
    Josh

  • Mini Month View in iCal

    Can't say I like the new iCal running on Lion. One feature that I can't seem to find is the mini month view. I did away with my paper calendar for viewing full months because of the mini month calendars on my Macs.
    Is that functionality gone? I've searched preferences and menus and can't find a way to turn it on.
    So many things about this new iCal that I find I do not like. I sure hope updates are coming to fix it.
    CJ

    Last thing about iCal which I think could be fixed, is that it would be easier to type down events and making line-breaks if one whouldn't have to hold 'Alt' in while doing it.  I make line-breaks much more often than I finish editing an event (in which case you just press enter or click outside the event you were editing).  It would be better to press 'alt' + 'enter' in order to finish editing an event, and reserve the action of just pressing 'enter' for line-breaks.  This, btw, was also this way in iCal 4.
    Ok, last last thing: in the preferences of iCal one can add a default alert to all new timed events and invitations and one can specify how many minutes before one wants to be alerted.  I do not want to add a default alert to all new events/appointments, but I would like to be able to specify the default number of minutes put on all new alerts that I put on events.  It seems quite intuitive to me that the default number of minutes one can specify for every alarm added to events by defult (if that option is checked in the preferences), should be the defult number of minutes set to alarms one manually puts on events, in stead of the '15 minutes before' default that is in the system and which seems to be unchangable.
    If it says '0 minutes before the start time' there, then all alerts that I manually put on events should have this value put to zero by default! 

  • Printing list view in ical

    I use mail and ical for everything now. Everything is fine except When I want to print the "list view" which shows my “to dos”. It displays the URL the “do to” is attached to in mail. I use notes often in mail and enter to dos in the notes so they will have URL links. The link only becomes a nuisance when I want to print, otherwise it’s very useful.
    Why would the long URL paths display when in print view???!!!!! It doesn’t make any sense.
    Is there anything I can do?
    Thank you

    ecernek,
    There is no event list option on iCal like the one on the iPhone.
    That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification.

  • Weekly "List View" in iCal

    Hello - my family has recently converted to Mac, and my wife and I have been long-time Outlook users in our workplaces...
    Trying to help my wife get her calendar data to iCal - one of the few things that we miss from Outlook is the "Week" view, which shows like Outlook's (7-Day view), which has a large grid of the 7 days in the current week, and all events displayed in a text-based "list" format, and clearly displaying numerical start and end times, rather than the graphical "block" method of iCal's default Week view.
    The Month view on iCal comes close, but it is rather cramped when you want a closer-in look, and also omits end time.
    Any suggestions?
    Thanks!

    ecernek,
    There is no event list option on iCal like the one on the iPhone.
    That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification.

  • Hiding a Maintenance View in a View Cluster

    Hello ABAP Experts,
    We have a scenario where we would like to hide a maintenance view to an existing view cluster based on condition.
    Is it possible via events of a view cluster, where i can hide the view at runtime based on some condition before the view cluster is displayed ?
    Is there any way as well, which help achieve this hiding of views ?
    For example in the below View Cluster, i would like to hide "Define object links" view from the main view cluster "Define document Types".
    Thanks,
    Naresh

    Hi Naresh,
    Yes, you can do it in events of a view cluster, define a subroutine and bounding it to event(02) in SE54,
    when you define the subroutine, it will ask you creat a mian program, in this main program, you need  'INCLUDE lsvcmcod'.
    Then you can access some standard data, http://help.sap.com/saphelp_nw04/helpdata/en/62/c302c7de8e11d1a5960000e82deaaa/frameset.htm
    INCLUDE lsvcmcod.
    FORM yourSubroutineName.
    DATA: viewname TYPE vclstruc-object,
            error_flag TYPE vcl_flag_type,
      viewname = 'ZTEST_VIEW1'.
    *  PERFORM vcl_set_table_access_for_obj USING    viewname
    *                                       CHANGING error_flag.
      ----> according your condition to change the view.
    IF xxx = yyy.
      DELETE vcl_struc_tab WHERE object = viewname.
    ENDIF.
    ENDFORM.
    regards,
    Archer

Maybe you are looking for