SQL in SQL expressions declarative mode your - possible?

Hi all

I intend to create a declarative SQL VO and wonder if I would be able to use SQL expressions in the select clause - for ex-SUBSTR(col1,1,10). Is this possible?

I searched and could not find any reference.

Thank you
Srini

Srini, @chris hope that you don't mind not in
Just checked this in 11.1.1.4.0 and 11.1.1.6.0 and it worked for me.
I used the HR schema and the table Departments

...
  
  
...

The nnn attribute I added to display only the first 5 characters of the name of the Department.

Timo

Tags: Java

Similar Questions

  • Is it possible to use the default value as sql expression in obiee 11g report?

    Hi all

    Is it possible to use the default value as sql expression in obiee 11g report?. Actually what I'm trying to make is that we send an ibot users. They want the same default values that are assigned in the command prompt in the report. So when we send the ibot it shows the report for default values assigned in the report criteria which is obsolute. As a solution, I kept the report in a dashboard page and send the dashboard like ibot page. But the problem here is that I can send only pdf format. Is it possible to do so at the level of the report (without using session variables). I want something like that

    Date between Date ' @{PV1} {Timestampadd (SQL_TSI_DAY,-90, CURRENT_DATE)} and Date ' @{PV2} {CURRENT_DATE}

    Thanks in advance

    Thank you

    AJ

    http://www.w3.org/2001/XMLSchema-instance"container ="http://www.w3.org/2001/XMLSchema"xmlVersion ="201201160' xmlns:sawx="com.siebel.analytics.web/expression/v1.1" > "

    "Question time '." Date '.

    "Question time '." Date '.

    BOX WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 1) THEN TIMESTAMPADD (SQL_TSI_DAY,-2, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 2) THEN TIMESTAMPADD (SQL_TSI_DAY,-3, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 3) THEN TIMESTAMPADD (SQL_TSI_DAY,-4, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 4) THEN TIMESTAMPADD (SQL_TSI_DAY-5 (, cast (max (CURRENT_DATE) date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 5) THEN TIMESTAMPADD (SQL_TSI_DAY,-6, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 6) THEN TIMESTAMPADD (SQL_TSI_DAY, 0, cast (max (CURRENT_DATE) as date)) WHEN (DAYOFWEEK (cast (max (CURRENT_DATE) date)) = 7) THEN TIMESTAMPADD (SQL_TSI_DAY-1, cast (max (CURRENT_DATE) date)) END

  • Limitations of SQL Express 2005 with vCenter linked mode servers


    Hello

    We have a problem at the moment whereby we have reached the limit of 4 GB of SQL Express 2005 and you want to move the database to a dedicated SQL Server. However, one of my colleagues advised he read somewhere that figures recommended for 5 guests and 50 guests for SQL Express are related vCenters signifcantly increased (he thinks a dozen times).

    Is anyone able to confirm/deny this and if confirming point me in the direction of the supporting documentation? I have searched, but am not able to find information reinforcing the above figures.

    Thank you

    Chris.

    Hello

    Recommend VMware SQL Express for small environment, the limit is 5 guests and 50 comments. If you have a linked vcenter environment, you will have a second database for this vcenter. So this vcenter will be able to have 5 guests and 50 comments too.

    But your first database will not increase the limit, you have always the same.

    You can get more information here: VMware KB: vCenter Server 5.0 installation best practices

    Microsoft SQL Server 2008 R2 Express is intended for small deployments of up to 5 servers and/or 50 virtual machines.

    This is for vsphere 5 but the limitation is the same thing on v4.

    Julien.

  • vCO and MS SQL Express not connect

    Hi, I installed vCO and MS SQL Express locally. But I can not not to connect to SQL from the server configuration CO v.

    On the database tab, I use these settings:

    Type of database: SQL Server

    Username: VM-ORCHESTRATOR\Administrator - as the BOD of DB - Oct

    Password: xxxxxxx

    Use SSL: NO

    DNS or ip address of the Server DB

    Name: localhost

    Port: 1433

    Name of the database: DB - vCO

    Instance name: SQLExpress

    Area: white

    Use Windows auth. mode: YES

    Journal:

    Unable to connect to jdbc:jtds:sqlserver://localhost:1433 / DB - vCO; instance = SQLExpress; useNTLMv2 = true.  Failed to connect to the user 'VM-ORCHESTRATOR\Administrator.

    SQL server is running, SQL browser, I can to connect to SQL server as a local VM-ORCHESTRATOR\Administrator, I created the database DB - vCO, dbo = VM-ORCHESTRATOR\Administrator.

    Host VM ORCHESTRATOR is a member of the field of MS, but I installed vCO as the local administrator.

    Can you help me please?

    Milan

    You can get this working... to change your user name 'administrator' and instead of letting the empty field, enter "VM ORCHESTRATOR" (I guess it's the name of your workstation) - when you use is not a field, this field must be the name of your workstation as well, whenever I install on vCO on a Windows Server , I never checked the use of NTLM authentication box... so if my first note does not help, also clear this check box.

  • VAMT 3.0 does not appear after installation of SQL Express 2012 and Powershell separately of ADK

    Hello

    I tried to install 3.0 the VAMT tool on a server for a week now and after that installation of the pre-reqs VAMT 3.0 option is gone to install.

    I installed powershell 3.0 and the guys installed DB 2012 SQL express and SQL 2008 management tool.

    It won't let me download pictures, so I guess you'll just I think the VAMT 3.0 is not displayed when I run adksetup.exe the VAMT tool tool 3.0 is not installed. I already rebooted the server.

    The only thing I can think is that I have to delete SQL and install it in pair. That is not sensible, but as Microsoft article says you can install VAMT without SQL express tool.

    My date limit is the end of this month, so any help would be greatly appreciated,

    Thank you!

    Hi Jeff,

    Thank you for your response.

    The problem is related to Powershell 3.0. As this is a complex question, you must post your query in Microsoft TechNet forums.

    You can check the link to post your question:

    http://social.technet.Microsoft.com/forums/en/category/w7itpro

    It will be useful.

  • SQL Express 2012 synchronization with SQL Server Azure

    I need to be able to periodically synchronize SQL Express 2012 running on the Surface to Azure SQL Server 2012.   Something special to know or do - because we want in synchronization with the server SQL Azure?

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums:

    http://social.technet.Microsoft.com/forums/en-us/SQLExpress/threads

  • Dynamic action with multiple values of PL/SQL Expression as a condition

    Hel

    I am currently using Apex 4.0 for a schoolproject.

    I have two selectlists (P8_BUSINESSRULETYPE - which has al businessruletypes) and (P8_OPERATOR) that has a select statement based on the businessruletype.

    I want to hide the selectlist operator when P8_BUSINESSRULETYPE = 7,8,9 and 10 or P8_OPERATOR = 9

    When: change

    SelectionType article (s)

    Elements P8_BUSINESSRULETYPE

    condition: equal to 10

    Real actions: hide items p8_operator

    False actions: show p8_operator items

    ConditionType PL/SQL EXPRESSION

    : P8_BUSINESSRULETYPE = 10 OR: P8_BUSINESSRULETYPE = 8 OR: P8_BUSINESSRULETYPE = 7 OR: P8_BUSINESSRULETYPE = 9

    What is the problem with my dynamic action? Because he does not hide the operatorfield when businessruletype 10 or 9 are selected in the selectlist. Sessions has also said operator = 9 and Businessruletype = 10

    I hope you guys can help out me.

    Thank you very much.

    2843640 wrote:

    Please update your forum profile with a real handle instead of '2843640 '.

    I am currently using Apex 4.0 for a schoolproject.

    I have two selectlists (P8_BUSINESSRULETYPE - which has al businessruletypes) and (P8_OPERATOR) that has a select statement based on the businessruletype.

    I want to hide the selectlist operator when P8_BUSINESSRULETYPE = 7,8,9 and 10 or P8_OPERATOR = 9

    When: change

    SelectionType article (s)

    Elements P8_BUSINESSRULETYPE

    condition: equal to 10

    Real actions: hide items p8_operator

    False actions: show p8_operator items

    ConditionType PL/SQL EXPRESSION

    : P8_BUSINESSRULETYPE = 10 OR: P8_BUSINESSRULETYPE = 8 OR: P8_BUSINESSRULETYPE = 7 OR: P8_BUSINESSRULETYPE = 9

    What is the problem with my dynamic action? Because he does not hide the operatorfield when businessruletype 10 or 9 are selected in the selectlist. Sessions has also said operator = 9 and Businessruletype = 10

    The first thing is that a Condition that is applied to a control of dynamic action if the dynamic action is made the see page. She has therefore no impact on the question of whether the actions of true or false are performed. Control conditions which are those defined in the when the properties of the dynamic action. As they are evaluated in the browser, they must be specified as JavaScript.

    Secondly, this expression is not valid because it is a space between the colon and the identifiers. Link the names of rating, the colon and the variable element must be contiguous:

    :P8_BUSINESSRULETYPE = 10 OR :P8_BUSINESSRULETYPE = 8  OR :P8_BUSINESSRULETYPE = 7 OR :P8_BUSINESSRULETYPE = 9
    

    However the latter is only of academic interest, in this case you need to remove the condition of dynamic action.

    In the dynamic of change when action section, P8_BUSINESSRULETYPE, P8_OPERATOR, Condition of JavaScript Expressionand value to the value of the item (s)

       ($v('P8_BUSINESSRULETYPE') == '7')
    || ($v('P8_BUSINESSRULETYPE') == '8')
    || ($v('P8_BUSINESSRULETYPE') == '9')
    || ($v('P8_BUSINESSRULETYPE') == '10')
    || ($v('P8_OPERATOR') == '9')
    

    If you are using a browser that supported, this can be simplified to

       (['7', '8', '9', '10'].indexOf($v('P8_BUSINESSRULETYPE')) >= 0)
    || ($v('P8_OPERATOR') == '9')
    
  • Is it necessary to keep the SQL Express database on vCenter?

    We have 6 guests, about 50 virtual machines, and SQL SERVER 2005 Express with two database databases: one for vCenter Update Manager.

    A few days ago, I have a problem with vSphere client, sometimes it works very slowly and sometimes it disconect vCenter.

    I have not found the reason for this behavior, but I suspect on sql. Sql databases has a low amount of space available, and the Task Manager sql service is about 900 MB (I guess that's the amount of RAM).

    I know that vmware would recommend max 5 guests and 50 virtual machines on sql express database, but I'm interesting what can do to increase the performance and space this database.

    I've already put the retention policy of database of 120 days and heard it is possible to purge old data, but I would like to hear some tips.

    Thank you

    You need not reinstall. Here (http://kb.vmware.com/kb/1028601) you have instructions in an example of migration of Enterprise Express - just point the DSN in the right place.

    Good luck!

    Marcelo Soares

  • Move the database for VirtualCenter of SQL Express to SQL 2008 on another server

    Hi all

    First of all, I spent some time trying to figure how to move our current VirtualCenter database to our production (currently the DB is stored on the server using SQL Express real VirtualCenter) SQL server. Before any way suggests the obvious, I searched the VMware knowledge base and tried to follow the steps in the following KB:

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 7960893

    I have successfully completed the first 2 steps, but when I see the data source in the ODBC Administrator, I don't see anything (I have connected with each account who has already logged on to this server just in case). To work around this problem, I tried everything simply create a new DSN pointing to the new SQL Server. I even modified registry settings in order to force him to watch the new SQL Server. Despite this, I can not start the VirtualCenter service because it does not connect to the new database. When I reinstall the database local, everything is good.

    I did much research on similar questions, but not once I saw someone mention that no data source was present. I don't know if this was due to an option selected during initial installation or anything else.

    We are currently running version 4.0.0 vCenter. Any help would be amazing!

    Thanks in advance

    Dean

    Is your operating system 64 bit or 32 bit - because it affects the DSN, you see:

    To work around this problem, use the appropriate version of the ODBC Administrator tool. If you build and then run an application as a 32-bit application on a 64 bit system, you must create the ODBC data source using the ODBC Administrator in % windir%\SysWOW64\odbcad32.exe. To indicate the type of DSN, you can add '_32' to the user 32-bit DSN and "_64" to the 64-bit DSN user.

  • SQL Express OK?

    About to begin the new vSphere deployment.  Four ESX host, projecting VMs of no more than 30-35.

    Any reason, we should not use vCenter with the bundled SQL Express and save money on SQL hand full?

    Thank you.

    I see questions starting with SQL Express in your case. According to the official documentation, SQL Express is ok for environments with up to 5 guests and 50 VMs. see http://kb.vmware.com/kb/1022101

    Once you're in the future, you can always move to the full SQL Server.

    André

  • Cleaning of the space of SQL Express 2005 database; Sound to its fullest.

    Hi all

    Here's a question I need help. I have a vCenter Server, which has a database of maxed out of 4 GB on SQL Express 2005. It won't let me restart the service for vCenter Server if I restart the computer. Fortunately, I somehow got it upward after the restart, but not until I spent 3 hours on medium with HP/VMware. I went through the Article (KB1025914) showing the script that cleans your database, but it has not cleaned enough space to work. Now support tells me that I need to truncate the database, but I have to call Microsoft for support because they do not support problems with SQL even if it is a database of VMware and VMware the data that I need to clean all the partners. Go figure!

    After that go through all of these reasons, I realized that the table that uses my space is the dbo. Table VPX_EVENT of the 1.2 GB and dbo. Table VPX_EVENT_ARG to 995MB. I was able to come back in vCenter and I found that my database retention policy has been set to never delete for events and tasks, and now I have put in 90 days. Although it has not cleaned all the space in the database, I guess that's my question is. Can someone give me any indication on how I can clean these two tables? I want to delete all events and tasks that are more than 90 days from these two tables, which should give me should I want to shrink my database of at least 50%.

    Thanks for the help.

    After you change the setting, it will remove the events, but the size of the DB's not going down. You will need to run a full backup of the DB to truncate the logs. This will be relase little space but not automatically, it will just remove balls and add instead of whitespace. You can reduce the database and then you would see the size of the DB down. In SQL 2005 Express, you may need to run the cut several times, as I've experienced it won't shrink until the 3rd or 4th attempt.

  • Limits for vCenter with SQL Express

    If you use the built in free MS SQL Express with vCenter so often said that it would limit the size of the environment 5 guests and 50 virtual machines. My question is if it is a "hard" limit that controls vcenter or if it's just a risk to run in SQL Express size limit if you use increasingly large amounts of hosts and virtual machines?

    Yes, nothing will stop you, just the limit of size of 4 GB and other normal express limitations as 1 CPU usage only, 1 GB max RAM, etc.

    Just watched a small DB vCenter with 9 manageg ESX and ESXi VM of 50-60. It is 6, 6 GB DB size, just for your information.

    Concerning

  • Displays the dates of diff using PL/SQL expression for the item "display only"?

    Hello
    I have a single display element -: P2_FROM_Date. If his game, Fri, sat or Sun I want to put the date of the last Monday date. If its Mon, Mar or sea, it must be this date of Monday.

    Ex: Today is Friday and last Monday was 18.
    So yesterday, today, tomorrow and Sunday, the date appear as June 18, 2012.
    Since Monday to Wednesday, the date has to be the next that is Monday, June 24, 2012

    I tried under 'Source' from the element using PL/SQL expression and the body of the PL/SQL function. Does not

    Can anyone help?

    Thanks and greetings
    Umer

    1. you must set 'used source' "Always".
    2 If you use a PLSQL function as source type body should set a 'RETURN' statement like this:

    declare
    lv_date number;
    begin
    select to_char(sysdate,'D') into lv_date from dual;
    if lv_date=2 then
      return to_char(sysdate-1);
    end if;
    end;
    

    Published by: mario1977 on June 27, 2012 11:44

  • The upgrade to vSphere + SQL Express to SQL 2005 + new vCenter Server

    Hello world

    It's the scénarion that I have today:

    A node just two HA/DRS cluster with vCenter 2.5 update 4 and two esx 3.5 update 4.

    The environment has increased enough to move from SQL Express to SQL 2005 standard. In the process, I want to upgrade the environment to vSphere and the vCenter move another box.

    I'm quite familiar with the process of vSphere upgrade but I donít know how to move the vCenter to another machine AND I do not know how to go from Express to the standard version of SQL in the process. (I have a SQL machine ready for use)

    I do not know how to handle all the changes here, I thought it would be nice to all move to the new machine and DB so that I could continue with the upgrade to vSphere, if this has meaning or not, I'm waiting for your ideas.

    I hope someone will give me some guidance on moving from SQL Express to SQL and how to move vCenter to another server (of course with a different server name and IP address)

    Thanks in advance for your support.

    I just did something very similar a few Sundays ago and it was really easy.  Refer to the section of the Upgrade Guide that talks about upgrading to vCenter on another Machine... (starts at p. 49).  We went from SQL 2003 32 bits on 32-bit Windows 2003 to SQL 2005 64-bit on Windows 2008 R2 64-bit.  Both are running as VMs - vCenter 2.5 is still there only as a license server - until I get all my hosts upgraded.

  • Integrated SQL Express on separate disk

    Hi all

    We are dipping our toes into the pool of virtualization for the first time and I could use a little help.

    I'm putting in place our vCenter as a virtual machine, I opted to use the supplied SQL Express DB because our environment is very low. Only 3 pservers with ESXi4U1 and VM 20 or more. I fully acknowledge the need with a complete recommended SQL should expand and will be the budget accordingly.

    I want to do is to store the DB on a separate drive (5 GB LUN on SAN FC) to unload the burden of the I/O of my "boot" LUNS which will share several virtual machines. Any advice on how to achieve this?

    Thank you for your time,

    Tom.

    step 1

    Installing vCenter with the default options, the default installation place vCenter DB to the default location c:\program file\Microsoft SQL Server\MSSQL1\Data

    step 2

    install SQL Server Management Studio express (it will allow you to work with the database)

    step 3

    stop the vCenter Server service

    step 4

    connection to SQL serve management studio, you can find a database named VIM_VCDB. Right click the VIM_VCDB-> tasks-> out-> select 'Drop connections.

    concerning

    Maniac

Maybe you are looking for