How to make the simple query for this scenario... ?

Hello:

Dummy table provided for simplicity.

It's my database table (Table_A)

Date1 | Plane1 | Category | Duration | Fees
01/01/2011 | A | Gold | 5. 2
01/01/2011 | C | Money | 4. 11
01/01/2011 | B | Gold | 6. 2
01/01/2011 | D | Gold | 2. 4
01/01/2011 | B | Gold | 3. 5
01/01/2011 | A | Money | 4. 8
01/01/2011 | B | Gold | 1. 3

I need to write a query to get the result below:

Date1 | Plane1 | Sum_Duration | Sum_Charge | Sum_Gold_Duration | Sum_Gold_Charge | Sum_Silver_Duration | Sum_Silver_Charge
01/01/2011 | A | 9. 10. 5. 2. 4. 8
01/01/2011 | B | 10. 10. 10. 10. 0 | 0
01/01/2011 | C | 4. 11. 0 | 0 | 4. 11
01/01/2011 | D | 2. 4. 2. 4. 0 | 0

This query will provide the 1st four columns:

SELECT Date1,
base1,
Sum (Duration) Sum_Duration,
Sum (load) Sum_Charge
FROM TABLE_A
GROUP BY date1, rarateplan

But I need to know how to get the rest of the columns (i.e. Summary according to categories; from 5 to 8 columns)? Is this can be done in a single query without writing subqueries?

Please let me know, (with code), the best way.

Thank you-
Tanvir

Use like this:

SELECT Date1,
base1,
Sum (Duration) Sum_Duration,
Sum (load) Sum_Charge,
SUM (decode(Category,'Gold',duration,0)) Sum_Gold_Duration,
SUM (decode(Category,'Gold',charge,0)) Sum_Gold_charge,
SUM (decode(Category,'Silver',duration,0)) Sum_Silver_Duration,
SUM (decode(Category,'Silver',charge,0)) Sum_Silver_charge
FROM TABLE_A
GROUP BY date1, rarateplan

Published by: SANT007 on August 11, 2011 11:04

Tags: Database

Similar Questions

  • Query for this scenario

    Name ID Startdate Enddate
    AMIT a 1st October 09 3 October 09
    AMIT a 3 October 09 5 October 09
    AMIT B 5 October 09
    BANU C 1st October 09 3 October 09
    BANU D 3 October 09
    CAREN E 1st October 09 2 October 09
    CAREN F 2 October 09 5 October 09
    CAREN E 5 October 09

    Required result

    Name ID Date
    AMIT 5 October 09
    AMIT B
    BANU C 3 October 09
    BANU D
    CAREN E 2 October 09
    CAREN F 5 October 09
    CAREN E

    My required result is I should list the names that changed the ids.for for example if amit is having has as ID in the third row the name should not be displayed in the result itself because amit is having the same ID.
    How to query for this scenario?
  • How to make the SSD intel for the express purpose of starting applications on Vista

    Hello

    start the passage of the hhd to ssd?

    You have a problem. I installed an ssd intel in the express purpose of starting applications and vista X 64. I tried the drive cloning, but wouldn't start. I tried a new install and it was going to move files into that, won't boot from either by car, but win wonder what version of the win even he wants me to start from and restarts any computer to the same query form. The SSD is disabled in the bios to get the boot. Had to disable the RAID to use trim to ssd so function.

    What I want to do: start just from the ssd. The only things I want written on this disc are applications or the os updates/fixes. Want to earn for knows to go for hard drives for data, and make all other write here.

    Is this possible... or what I am doing wrong? BTW due to config sata raid or ide Diane to get started.

    w/thanks... Duke

    Hi ssdprob,

    I suggest you to install the SSD as a stand-alone drive and do a clean format installation.

    When installing, do not select the SSD. After completing the installation adds the old hard drive in the system.

    Note: If you have Sata or Raid enabled, so make sure you have the drivers available for the same thing. During the installation, you may need to install the drivers, otherwise choose IDE to proceed to the installation.

    IMPORTANT: before attempting an installation format for Windows Vista on the SSD, make sure you also have a good backup of all the information stored on your computer, because this process completely removes the previous installation and the data stored on the system.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forumand let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to make the Apache configuration for two different areas

    Hello

    I was trying just a few clustering on weblogic workshop. I was facing a problem... Here's the scenario:

    I have two clusters:

    CLUSTER1: 3 managed servers (server1, server2, serveur3)
    Cluster2: 2managed servers (server4, Server5)

    I have two examples of applications I have made on these two clusters i.e on cluster1 app1 and app2 on cluster2.

    These two applications are deployed all as I am able to open these browser applications by calling the individual run as server port: http://localhost:7003 / app1.

    Now, I have installed an apache server on my laptop and configured the http.conf file.


    Question: I am not able to call the application of apache. If there is only a single cluster then it works very well and for an application two that a single cluster (application) only works too which port is set in the last.

    Here are the contents of my httpd.conf file:

    #
    # This is the main Apache HTTP server configuration file. It contains the
    configuration directives # that give the server its instructions.
    # See < URL: http://httpd.apache.org/docs/2.2 > for more information.
    # See especially
    # < URL: http://httpd.apache.org/docs/2.2/mod/directives.html >
    # for an analysis of each configuration directive.
    #
    # Do NOT simply read the instructions here without understanding
    # what they do. They are there only as advice or reminders. If you do not know
    # consult the online documentation. You have been warned.
    #
    # Configuration and logfile names: If the file names that you specify for a lot
    number of files in server control begin by "/" (or "drive: / 'for Win32 '), the
    # server uses this explicit path. If the file names do not start
    # with "/", the value of ServerRoot directive is preceded by - so "logs/foo.log.
    # with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2. 2' will be interpreted by the
    # Server as "C:/Program Files/Apache Software Foundation/Apache2.2/logs/foo.log".
    #
    # NOTE: Where file names are specified, you must use forward slashes
    # instead of backslashes (e.g. "c:/apache" instead of "c:\apache").
    # If a drive letter is omitted, the drive on which httpd.exe is located
    # will be used by default. It is recommended that you always provide
    # an explicit drive letter in absolute paths to avoid confusion.

    #
    # ServerRoot: The top of the directory under which the server tree
    # configuration, error and the log files are kept.
    #
    # Do not add a bar slash at the end of the directory path. If you point
    # ServerRoot to non-local disk, remember to point the LockFile directive
    # to a local disk. If you want to share the same multiple ServerRoot
    demons of # httpd, you will need to change at least the LockFile and PidFile.
    #
    ServerRoot "C:/Program Files/Apache Software Foundation/Apache2. 2. "

    #
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    ports #, instead of the default value. See also the < VirtualHost >
    directive #.
    #
    # Change this to listen on specific IP addresses below for
    # prevent Apache glomming on all related IP addresses.
    #
    #Listen 12.34.56.78:80
    Listen 80

    #
    # Dynamic Shared Object (DSO) Support
    #
    # To be able to use the features of a module that was built as a DSO you
    # duty place corresponding 'LoadModule' lines at this location until the
    # the directives that it contained are actually available before their use.
    # Modules statically compiled (those listed by "httpd-l") is not necessary
    # to be responsible here.
    #
    # Example:
    # LoadModule foo_module modules/mod_foo.so
    #
    LoadModule modules/mod_actions.so actions_module
    LoadModule alias_module modules/mod_alias.so
    LoadModule modules/mod_asis.so asis_module
    LoadModule auth_basic_module modules/mod_auth_basic.so
    #LoadModule auth_digest_module modules/mod_auth_digest.so
    #LoadModule authn_alias_module modules/mod_authn_alias.so
    #LoadModule authn_anon_module modules/mod_authn_anon.so
    #LoadModule authn_dbd_module modules/mod_authn_dbd.so
    #LoadModule authn_dbm_module modules/mod_authn_dbm.so
    LoadModule modules/mod_authn_default.so authn_default_module
    LoadModule authn_file_module modules/mod_authn_file.so
    #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
    #LoadModule authz_dbm_module modules/mod_authz_dbm.so
    LoadModule modules/mod_authz_default.so authz_default_module
    LoadModule modules/mod_authz_groupfile.so authz_groupfile_module
    LoadModule modules/mod_authz_host.so authz_host_module
    #LoadModule authz_owner_module modules/mod_authz_owner.so
    LoadModule modules/mod_authz_user.so authz_user_module
    LoadModule autoindex_module modules/mod_autoindex.so
    #LoadModule cache_module modules/mod_cache.so
    #LoadModule cern_meta_module modules/mod_cern_meta.so
    LoadModule modules/mod_cgi.so cgi_module
    #LoadModule charset_lite_module modules/mod_charset_lite.so
    #LoadModule dav_module modules/mod_dav.so
    #LoadModule dav_fs_module modules/mod_dav_fs.so
    #LoadModule dav_lock_module modules/mod_dav_lock.so
    #LoadModule dbd_module modules/mod_dbd.so
    Modules/mod_deflate.so deflate_module #LoadModule
    LoadModule modules/mod_dir.so dir_module
    #LoadModule disk_cache_module modules/mod_disk_cache.so
    #LoadModule dumpio_module modules/mod_dumpio.so
    LoadModule env_module modules/mod_env.so
    #LoadModule modules/mod_expires.so expires_module
    #LoadModule ext_filter_module modules/mod_ext_filter.so
    #LoadModule file_cache_module modules/mod_file_cache.so
    #LoadModule filter_module modules/mod_filter.so
    #LoadModule modules/mod_headers.so headers_module
    #LoadModule ident_module modules/mod_ident.so
    #LoadModule imagemap_module modules/mod_imagemap.so
    LoadModule modules/mod_include.so include_module
    #LoadModule info_module modules/mod_info.so
    LoadModule modules/mod_isapi.so isapi_module
    #LoadModule ldap_module modules/mod_ldap.so
    #LoadModule logio_module modules/mod_logio.so
    LoadModule log_config_module modules/mod_log_config.so
    #LoadModule log_forensic_module modules/mod_log_forensic.so
    #LoadModule mem_cache_module modules/mod_mem_cache.so
    LoadModule mime_module modules/mod_mime.so
    #LoadModule mime_magic_module modules/mod_mime_magic.so
    LoadModule negotiation_module modules/mod_negotiation.so
    #LoadModule modules/mod_proxy.so proxy_module
    #LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
    Proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule
    Modules/mod_proxy_connect.so proxy_connect_module #LoadModule
    Proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule
    Modules/mod_proxy_http.so proxy_http_module #LoadModule
    #LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
    #LoadModule reqtimeout_module modules/mod_reqtimeout.so
    #LoadModule rewrite_module modules/mod_rewrite.so
    LoadModule setenvif_module modules/mod_setenvif.so
    Modules/mod_speling.so speling_module #LoadModule
    Modules/mod_ssl.so ssl_module #LoadModule
    #LoadModule modules/mod_status.so status_module
    #LoadModule substitute_module modules/mod_substitute.so
    #LoadModule unique_id_module modules/mod_unique_id.so
    #LoadModule userdir_module modules/mod_userdir.so
    #LoadModule usertrack_module modules/mod_usertrack.so
    #LoadModule version_module modules/mod_version.so
    #LoadModule vhost_alias_module modules/mod_vhost_alias.so
    LoadModule modules/mod_wl.so weblogic_module



    * < IfModule mod_weblogic.c > *.
    WebLogicCluster 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7003, 127.0.0.1:7103, 127.0.0.1:7104
    MatchExpression /app1
    * < / IfModule > *.
    * < location /weblogic > *.
    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7103, 127.0.0.1:7104
    DebugConfigInfo WE
    PathTrim /weblogic
    * < / location >. *

    * < IfModule mod_weblogic.c > *.
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    MatchExpression /app2
    * < / IfModule > *.
    * < location /weblogic > *.
    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    DebugConfigInfo WE
    PathTrim /weblogic
    * < / location >. *


    < IfModule! mpm_netware_module >
    < IfModule! mpm_winnt_module >
    #
    # If you want httpd to run as a different user or group, you must run
    # httpd as root initially and it will pass.
    #
    # Group / user: the name (or #number) of the user/group to run httpd as.
    # It is generally advisable to create a dedicated and aggregatable for user
    # httpd, as with most system services are running.
    #
    Demon of the user
    Daemon group

    < / IfModule >
    < / IfModule >

    Server configuration # 'hand '.
    #
    # The directives in this section implement the values used by the 'hand '.
    # Server, which meets all demands that are not managed by a
    definition of # < VirtualHost >. These values also provide defaults for
    # all < VirtualHost > containers you can set later in the file.
    #
    # All these directives may appear inside containers < VirtualHost >,.
    # in which case the value default parameters will be substituted for the
    virtual host of # being defined.
    #

    #
    # ServerAdmin: Your address, where problems with the server should be
    # e-mail. This address appears on some generated by the page server, such
    # as error documents. for example [email protected]
    #
    ServerAdmin < adminurl >
    #
    # ServerName gives the name and the port used by the server to identify itself.
    # This can often be determined automatically, but we recommend that you specify
    # explicitly to avoid problems during startup.
    #
    # If your host doesn't have a registered DNS name, enter its IP address here.
    #
    #ServerName < servername >
    # DocumentRoot: The directory you are going to use your
    documents #. By default, all requests are taken from this directory, but
    aliases and symlinks # can be used to point to other locations.
    #
    DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs".

    #
    # Each directory that Apache has access can be configured in respect
    # to which services and features are allowed and/or disabled in this
    # Directory (and its subdirectories).
    #
    # Everything first, we configure the 'default' to be a very restrictive of game
    features #.
    #
    < directory / >
    Options FollowSymLinks
    AllowOverride None
    Order deny, allow
    Refuse to all the
    < / Book >

    #
    # Note that, from this point forward you must precisely enable
    features special # to be enabled - so if something doesn't work not as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #

    #
    # This should be replaced by what you set DocumentRoot.
    #
    < directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs" >
    #
    # Possible values for the Options directive are "None", "All."
    # or any combination of:
    # Indexes includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named explicitly -'all Options '.
    # is not give it to you.
    #
    # The Options directive is complex and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # For more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be 'All', 'None', or any combination of key words:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride None

    #
    # Controls who can get stuff from this server.
    #
    Order allow, deny
    Allow all the

    < / Book >

    #
    # DirectoryIndex: sets the file Apache will serve if a directory
    # is requested.
    #
    < IfModule dir_module >
    DirectoryIndex index.html
    < / IfModule >

    #
    # The following lines prevent the .htaccess and .htpasswd files to be
    # seen by customers of the Web.
    #
    < FilesMatch "^ \.ht" > "".
    Order allow, deny
    Refuse to all the
    Meet all
    < / FilesMatch >

    #
    # ErrorLog: The location of the error log file.
    # If you do not specify an ErrorLog directive in a < VirtualHost >
    # container, error messages related to this virtual host will be
    # logged here. If you do define a for a < VirtualHost > error log
    container of #, that host errors will be logged there and not here.
    #
    ErrorLog logs / 'error.log '.

    #
    # LogLevel: Control the number of messages in the error_log.
    # Possible values include: debug, info, notice, warn, error, crit,.
    # emerg, alert.
    #
    LogLevel warn

    < IfModule log_config_module >
    #
    # The following directives define some nicknames format for use with
    # a directive CustomLog (see below).
    #
    "LogFormat '%%u %t \"%r\ hour' % > s \"%{Referer}i\ %b" \"%{User-Agent}i\" "handset"
    "LogFormat '%%u %t \"%r\ hour' % > s %b "commune

    < IfModule logio_module >
    # You must enable mod_logio.c use %I and frequency
    "" LogFormat '%%u %t \"%r\ hour' % > s %b \"%{Referer}i\ "\"%{User-Agent}i\ "%I %o "combinedio
    < / IfModule >

    #
    # The location and format of the access (Common Log Format) log file.
    # If you do not have any logfiles access set in a < VirtualHost >
    container of #, they will be saved here. On the other hand, if you the do
    # define per - < VirtualHost > access logfiles, transactions will be
    # logged there and not in this file.
    #
    Common CustomLog "logs/access.log.

    #
    # If you prefer a log file of access, agent, and referer information
    # (Combined logfile format) you can use the following directive.
    #
    #CustomLog "logs/access.log' combined
    < / IfModule >

    < IfModule alias_module >
    #
    # Redirect: Allows to tell clients the documents used for
    # exist in your server's namespace, but no more. The customer
    # make a new request for the document at its new location.
    # Example:
    # Redirect permanent/foo http:// < url >/bar

    #
    # Alias: Maps web paths into paths of file system and is used to
    # access content that don't live under the DocumentRoot directive.
    # Example:
    # Alias /webpath/full/filesystem/path
    #
    # If you include a trailing / on /webpath, then the server will be
    # require that he be present in the URL. It is also likely that
    # duty provide a < Directory > section to allow access to
    # the path to the file system.

    #
    # ScriptAlias: This controls which directories contain server scripts.
    # ScriptAliases are essentially the same as assumed names, except that
    # documents in the target directory are treated as applications and
    # executed by the server on demand, rather than as documents sent to the
    client of #. The same regulation on flight "/" applies to the ScriptAlias
    # as for the Alias directives.
    #
    ScriptAlias/cgi-bin / "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/".

    < / IfModule >

    < IfModule cgid_module >
    #
    # ScriptSock: On threaded servers, refers to the access path to the UNIX
    decision # used to communicate with the CGI mod_cgid daemon.
    #
    Newspapers/cgisock #Scriptsock
    < / IfModule >

    #
    # "C:/Program Files / Apache Software Foundation/Apache2.2/cgi-bin" should be replaced by everything that your ScriptAlias
    # CGI directory exists, if you have set up.
    #
    < directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" >
    AllowOverride None
    None of the options
    Order allow, deny
    Allow all the
    < / Book >

    #
    # DefaultType: Server default MIME type used for a document
    # If it cannot establish also as file name extensions.
    # If your server contains mainly text or HTML documents, it is "text/plain".
    # a good value. If your content is binary, such as applications
    # or images, you can use "application/octet-stream" instead of
    # Keep browsers try to view binary files, as if they were
    # text.
    #
    DefaultType text/plain

    < IfModule mime_module >
    #
    # TypesConfig points to the file containing the list of mappings from
    # MIME file extension - type.
    #
    TypesConfig conf/mime.types

    #
    # AddType allows you to add or replace the MIME configuration
    # the file specified in TypesConfig for specific file types.
    #
    #AddType application/x-gzip .tgz
    #
    # AddEncoding allows you to have certain browsers uncompress
    # information on the fly. Note: Not all browsers support this.
    #
    #AddEncoding x-compress. Z
    #AddEncoding x-gzip .gz .tgz
    #
    # If the AddEncoding directives above are commented out, then you
    # should probably define these extensions to indicate media types:
    #
    AddType application/x-compress. Z
    AddType application/x-gzip .gz .tgz

    #
    # AddHandler allows you to map certain "manipulators": file extensions
    # No actions associated with the file type. It can be either integrated into the server
    # or added to the directive of the Action (see below)
    #
    # To use CGI outside of ScriptAlias directories scripts:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    #AddHandler cgi-script .cgi

    # For maps of type (negotiated resources):
    #AddHandler type-plan of the var

    #
    # Filters allow you to process content before sending it to the client.
    #
    # To parse .shtml for server-side includes (SSI) files:
    # (You will also need to add "Includes" the "Options" directive.)
    #
    #AddType text/html .shtml
    #AddOutputFilter INCLUDES .shtml
    < / IfModule >

    #
    # The mod_mime_magic module allows the server to use various boards of the
    content of the file itself to determine its type. The MIMEMagicFile
    # directive tells the module where the definitions of suspicion.
    #
    #MIMEMagicFile conf/magic

    #
    # Customizable error responses come in three flavors:
    ((# 1) text 2) local redirects 3) external redirects
    #
    # Examples:
    #Error Document 500 "The server made a boo boo".
    #Error Document 404 Missing.html
    #Error Document 404 "/cgi-bin/missing_handler.pl"
    #Error Document 402 subscription_info.html < url >
    #

    #
    # EnableMMAP and EnableSendfile: on systems that support.
    projection in memory # or the sendfile syscall is used to deliver
    # files. Usually, this improves the performance of the server, but must
    # turn off when mounted network is served
    # file systems or if support for these functions is also
    # broken on your system.
    #
    #EnableMMAP off
    #EnableSendfile off

    # Additional configuration
    #
    # The configuration files in the conf/extra/directory can be
    # included to add additional features or change the default configuration
    # the server, or you can simply copy their content here and change as
    # necessary.

    # Server-pool management (MPM specific)
    #Include conf/extra/httpd-mpm.conf

    # Multilingual error messages
    #Include conf/extra/httpd-multilang-errordoc.conf

    # Entries to the fancy directory
    #Include conf/extra/httpd-autoindex.conf

    # Language settings
    #Include conf/extra/httpd-languages.conf

    # User directories
    #Include conf/extra/httpd-userdir.conf

    # Info in real time on the applications and configuration
    #Include conf/extra/httpd-info.conf

    # Virtual hosts
    #Include conf/extra/httpd-vhosts.conf

    # Local access to the manual for the Apache HTTP Server
    #Include conf/extra/httpd-manual.conf

    # Distributed authoring and versioning (WebDAV)
    #Include conf/extra/httpd-dav.conf

    # Various default settings
    #Include conf/extra/httpd-default.conf

    # Secure connections (SSL/TLS)
    #Include conf/extra/httpd-ssl.conf
    #
    # Note: The following text should be present to support
    # start without SSL on platforms without equivalent/dev/random
    but # a statically compiled in mod_ssl.
    #
    < IfModule ssl_module >
    SSLRandomSeed startup builtin
    SSLRandomSeed connect builtin
    < / IfModule >

    This is so for the app2 only configuration above, I am able to call and app1 his adage "404 page not found".

    Can soomebody help me cofiguring apache so that I can call the two applications.


    Thank you
    Ankit

    >

    WebLogicCluster 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7003, 127.0.0.1:7103, 127.0.0.1:7104
    MatchExpression /app1


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7103, 127.0.0.1:7104

    DebugConfigInfo WE
    PathTrim /weblogic


    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    MatchExpression /app2


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    DebugConfigInfo WE
    PathTrim /weblogic

    >

    This configuration is a little weird. He has /app1 MatchExpression and MatchExpression /app2 and at the same time two sections . Are you sure you understand what means that the configuration?

    Try something like this...


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007, 127.0.0.1:7103, 127.0.0.1:7104
    DebugConfigInfo WE


    SetHandler weblogic-Manager
    WebLogicCluster 127.0.0.1:7003, 127.0.0.1:7005, 127.0.0.1:7007
    DebugConfigInfo WE

    where /app1 and /app2 are your weblogic applications contexts.

    http://download.Oracle.com/docs/CD/E11035_01/WLS100/plugins/Apache.html
    http://httpd.Apache.org/docs/2.0/mod/core.html#location

  • What can be the SQL query for this requirement?

    Hello
    I have a table with the fields like this:

    ID DESC PARENT
    01 02 ABC
    02 01 ABC1
    03 01 ABC2
    04 02 ABC4


    In the table above column PARENT refers to the column ID, but actually in the SQL query, I want to have ID DESC and PARENTDESC (i.e., desc ID value corresponding)

    Output real I need is

    SELECT ID, DESC? from table where ID = someValue. Now, if I provided ID = 01 then output should be like this:

    ID DESC PARDESC
    ABC1 ABC 01


    Can anyone help on what may be the required sql query?

    Published by: bootstrap on April 29, 2011 06:15

    SELECT T1.ID, T1. DESC, T2. / / DESC
    FROM TABLEA T1, T2 TABLEA
    WHERE T1.ID = '01'
    AND T2.ID = T1. PARENT;

  • How to write the select query for it

    Hello

    I had an html form and the area I drop down and he needs to select several values in the drop-down box. When I select multiple values then I have to write the query to SQL select statement.

    When I try to write the select statement and trying to run I get the error message.

    Select * from Table

    where emo_no = '1,2,3 '.

    That's how I write the query please suggest me how to write the query to select several values in the drop-down box.

    Thank you

    Use the keyword sql 'in '.  If you don't know how, I've heard good things about the book Teach Yourself SQL in 10 Minutes by Ben Forta.

  • How can I write the SQL query for this requirement?

    Hello

    I have a table that looks like this:

    NAME | ANNUAL |     VALUE
    ==== | ====== | =====
    execno |     480.     000004
    step |      480.     0400
    SCNA |     480. cd_demo
    System |     480.     D47-010
    type |     480.     step
    free_text |     480.     stage 400
    rbare |     480.     RBA-1
    execno |     482. 000004
    SCNA |     482. cd_demo
    System |     482.     D47-010
    free_text |     482.     step 300
    step |          482.          0300
    type |      482.     step
    rbare |     482.     RBA-1
    execno |     483.     000001
    type |     483.     step
    rbare |     483.     rke1
    SCNA |     483.     rke10
    step |     483.     0240

    Now, say that I want to fetch ONLY annual with execno = '000004' and '400' = step and scna = "cd_demo" and system = "d47-010' and type = 'step', how to write SQL code?
    At first, it seemed like a simple writing query but I've been struggling with it for hours without success. I must admit though that I'm not strong in SQL :-)
    There, can anyone help? Please...

    Thanks in advance.

    Emmanuel

    Published by: user12138559 on October 30, 2009 03:05

    Hi, Emmanuel.

    Welcome to the forum!

    Here's a way to do what you asked:

    SELECT       doc_id
    FROM       table_x
    GROUP BY  doc_id
    HAVING       SUM (CASE WHEN name = 'execno' AND value = '000004'  THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'step'   AND value = '400'     THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'scna'   AND value = 'cd_demo' THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'system' AND value = 'd47-010' THEN 1 END) > 0
    AND       SUM (CASE WHEN name = 'type'   AND value = 'step'    THEN 1 END) > 0
    ;
    

    If you think that a WHERE clause would be used, but WHERE does apply to a single line. You need a condition that checks several rows in the same group.
    WHEN has an effect something like WHERE.

    Published by: Frank Kulash, October 30, 2009 06:26

    This solution assumes that (name, annual) is unique.

  • The Microsoft Silverlight plugin download page offers just a x 64 version plugin, when you access using Windows 7 x 64, even if Firefox 8.0.1 is a 32-bit application... How to make the correct version of this plugin?

    While making a plugin for the latest versions here routine check, I received the message that a newer version of the Microsoft Silverlight plugin is available from Microsoft. When I tried to download the Microsoft installation executable, download managed to lock up Firefox whenever I tried it (about 5 times or more)-in the process, the file to automatically download gave me has been identified as a 64 bit executable, despite the fact that Firefox 8.0.1 is a 32-bit application (I have the 64 bit version of Windows 7 Professional). At this point, I don't know what version of the plugin most recent that I need, or how to get it. Help!

    You can download the 32-bit version of Microsoft Silverlight plugin here: http://www.silverlight.net/downloads scroll down and click on "users final Runtime for Windows (32 bit). Or try this link: http://go.microsoft.com/fwlink/?LinkId=229320

    I hope this helps.

  • How to make the background image for a site

    Hello.

    First of all, thank you for reading this.

    I intend using a gradient image as background on a new site of black on the sides gradiating to blue in the Middle I created in Photoshop. The site is designed for 1024 (955) and upward. How the background image would handle so that no matter what the resolution above 1024, the visitor sees the gradient correctly, which means that Blue will be always exactly in the center of the page and the image not horizontal mosaic? (I don't want to repeat from left to right when the resolution someone is really high)

    I saw a couple of sites that use strong images that seem to stretch the background image according to the resolution, but were not able to understand the CSS code. In my case, I have a single image that has say 5 pixels high, how wide I need for the (reasonable) maximum resolution, and let repeat from top to bottom.

    Thank you.

    MFitz721

    To do what you ask would require CSS3.  This is because that the CSS3 added support for multiple background images.  What you would do, is to set a gradient to the left and the other to the right with a background color that arise in a vacuum.    Basically use you the abbreviation of "substance" and separate the different environments with a comma ","  See this example ( http://www.css3.info/preview/multiple-backgrounds/ ).  I think it's possible the long way as well (for example: position of background, background image, etc.), but you would need to write the values and who is 1 and 2 in order when you do this.

  • I want the query for this scenario will be someone help me?

    I have two tables table of markets and purchase...
    When a record is there in the market table, this means that pure Price shud be replaced by Mkt Price
    When I take the records between two particular date
    I shud get the mkt price if a record exists for a date between and to date in the table of mkt else I shud get price pure himself.
    How can I do this?
    Table Purchase
    Code date pure price
    A 2 01/01/2010
    A 3 01/05/2010
    A 4 10/01/2010
    A 6 15/01/2010
    B 15 15/01/20110


    Table of markets

    Code Date Mkt price
    A 10 01/05/2010
    A 5 01/12/2010

    When I take the records between 01/01/2010 and 01/04/2010

    my result should be as follows
    A 2 01/01/2010


    01/01/2010 and 01/10/2010

    A 01/01/2010 * 10 *.
    A 01/05/2010 * 10 *.
    A 4 10/01/2010

    01/01/2010 and 01/15/2010

    A 01/01/2010 * 5 *.
    A 01/05/2010 * 5 *.
    01/10/2010 * 5 *.
    A 6 15/01/2010
    B 15 15/01/20110

    Try this... NVL may not work in a scenario... also, if date of purchase is greater than the date of the contract, then he should show the purchase price and no market prices.

    PRAZY@11gR1> exec :from_date:='01/01/2010';
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> exec :to_date:='04/01/2010';
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.00
    
    select a.code,a.pur_date,
    case when pur_date <= mkt_date then
         DECODE(mkt_price,0,pur_price,mkt_price)
    else
         pur_price
    end  price
    from purchase_table a left outer join
    (
         select code,mkt_price,mkt_date from
         (
              select code,
              mkt_price,mkt_date,
              row_number() over (partition by code order by mkt_date desc) rn
              from market_table
              where mkt_date between to_date(:from_date,'DD/MM/YYYY') and to_date(:to_date,'DD/MM/YYYY')
         )
         where
         rn=1
    ) b
    on a.code = b.code
    where a.pur_date between to_date(:from_date,'DD/MM/YYYY') and to_date(:to_date,'DD/MM/YYYY')
    order by a.code,a.pur_date
    /
    
    C PUR_DATE       PRICE
    - --------- ----------
    A 01-JAN-10          2
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> exec :to_date:='10/01/2010';
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> /
    
    C PUR_DATE       PRICE
    - --------- ----------
    A 01-JAN-10         10
    A 05-JAN-10         10
    A 10-JAN-10          4
    
    Elapsed: 00:00:00.00
    PRAZY@11gR1> exec :to_date:='15/01/2010';
    
    PL/SQL procedure successfully completed.
    
    Elapsed: 00:00:00.01
    PRAZY@11gR1> /
    
    C PUR_DATE       PRICE
    - --------- ----------
    A 01-JAN-10          5
    A 05-JAN-10          5
    A 10-JAN-10          5
    A 15-JAN-10          6
    B 15-JAN-10         15
    
    Elapsed: 00:00:00.01
    PRAZY@11gR1>
    

    Decode added printing the purchase price if the market price is 0.

    HTH,
    Prazy

    Published by: Prazy on April 21, 2010 15:32

  • How to make the common control for all pages button in TABCONTROL?

    Hi all

    I use a TABCONTROL to my application. I'm going to STOP and REGISTER the control. I have to show this key to all pages in a TABCONTROL. How can I do?

    Kindly help me?...

    Hi srinivasan,.

    If you want to keep 'Save' and 'Stop' common, why would you keep the tab control? Your tab control takes all the space on the front panel? If so, you can have SAVE and STOP on other vi, and you can call this (MODAL) vi.

  • How to make the keyboard shortcut for a workspace

    I need to do with apples, preferably system. I know that you must enter words precisely, but don't remember how to do it. Thank you!

    You can do this with the keystrokes preferably Apple, but I don't remember what to do exactly.

    Mac OS system preferences / keyboard / shortcuts (is not the language of the international system, but it is the right of the two options) / choose applications / choose sign more and at the bottom of the list of the shows 'other' (or more) and click on it. in this list, choose Adobe Bridge and in this folder, choose the Bridge itself application.

    Then enter: reset the workspace

    and choose a key function or combination that suites you is free and you should be in business.

  • HP laptop laptop 15-ac122TU: how to get the driver wifi for this computer

    I mistakely deleted the Realtek RTL8723be 802.11 wifi card software bgn. How can I install it back?

    Download and install the following driver

    https://www.google.nl/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&uact=8&sqi=2&ved=0ahUKEwiSk7jH_P7KAhXlQJoKHb64AaIQFgg4MAI&url=http%3A%2F%2Fh20564.www2.hp.com%2Fhpsc%2Fswd%2Fpublic%2Fdetail%3FswItemId%3Dob_151589_1&usg=AFQjCNHNhxhnxDPnAd887BzDqdnXpvOZzg&bvm=bv.114195076,d.bGs

  • How to make the default player for Windows Media Player 11

    I have Windows Media Player 11 installed and I can open and play music with it. However, I can not do Media Player 11 the default player. He keeps back to Media Player classic. I tried the following:

    Panel-> Add Remove programs

    Select Set Program Access and Defaults

    Select the custom button

    Under Choose a default media player, I chose Windows Media Player, and then click OK.

    However if I insert a disc, and then opens it with Media Player Classic.

    If I come back in Set Program Access and Defaults button is to use current media player.

    I have also tried to restart the computer after the Windows Media Player and still does not work.

    Have found the answer. I'll post here for the benefit of others.

    Open Windows Explorer

    Right-click on Audio CD

    Select AutoPlay

    Select the audio CD set with Windows Media Player

    Check box "always do the selected action.

    Click OK

    Now whenever I insert an audio CD, play it with Windows Media Player

  • If an entry is a constant range, is a tool that can make the exit choose for this number

    I don't really know if it has a name, but I want to capture a constant between 0 and 7. I wish there will be 8 outputs, and according to the value of the entry, the corresponding output is selected. The output could be 1.0 or T/F. I think I could achieve the same goal with a lot of programming, but I was wondering if it was already a tool.  Thank you.

    Index table will do what you want.  Just all your outings possible in an array and index on any element you want.

Maybe you are looking for

  • Pavilion 15 PC laptop: HP 3D DriveGuard not work

    After the windows update 10 3D DriveGuard does not work, it manifests itself everywhere wherever you look for it, but it does not work, after having lived with her working for the last 9 months, that I know, it doesn't now, I am novice and confussed

  • Dv7-7240us envy: upgrade to windows 10

    I would like to know what that need updated on my laptop with Windows 8.1 before moving on to Windows 10 latest drivers. I have the latest drivers Intel HD 4000. I was not able to install HP Support Assistant for the past year (error message)

  • Question of sampling DAQ Assistant

    Hi all I have attached a VI that I used to record data from a few different voltage and the channels of the strain. All channels and sensors work perfectly and the VI reads data very well, but will be only newspaper for about 9 seconds. I found that

  • Isn't strange?

    Hi friends, look at my next code I m using this code to check if the internet connection is present or not (I do this check before showing mail composition window) int status = RadioInfo.getState(); if ( status == RadioInfo.STATE_OFF || status == Rad

  • I am not able to connect on one of my computers, my network error message saying: unknown username or bad password.

    Journal of the network questions I am not able to connect to my network to one of my computers.  I enter the username and password (same as to log the computer - correct?), and yet I get the newspaper no failure message saying unknown user name or ba