How to know the registration State in SQL
I want to use a database trigger that will push the data into a table of audit use from one table to another table can you please tell me the order how can I recognize the status of the registration, is it INSERT, UPDATE or DELTEbecause I want to PUSH 'I' to insert "D" to delete and 'U' for update
So what is the command for the status of the record in sql and I want only 1 trigger that will do
Thank you
Hello
the status of the registration, is it INSERT, UPDATE or DELTE
It is not on the status of the record, but if your trigger fires wile insert/update / delete.
You can code in your trigger:
some pseudo-code of trigger:
If the insertion
then
: NEW. ACTION: = 'I '.
elsif update
then
: NEW. ACTION: = "U".
elsif removal
then
: OLD. ACTION: = A '
end if;
You can find many examples on this forum, just do a search on "audit trigger."
See f.i.: the implementation of triggers to audit on several tables
Tags: Database
Similar Questions
-
How to know the version of the built-in weblogic Server
Hi experts,
use jdev11.1.1.5.0
I h had big doubt ;)
How to know the version of the built-in weblogic Server
I think I'm using weblogic10.1.3. but am not sure?
so, how can I found out.
This diary. but I don't see any information on the version.
http://127.0.0.1:7101/console/login/LoginForm.jsp. He said that the administration weblogicserver 11g console*** Using port 7101 *** "C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\bin\startWebLogic.cmd" [waiting for the server to complete its initialization...] . . JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m . WLS Start Mode=Development . CLASSPATH=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sys_manifest_classpath\weblogic_patch.jar;C:\Oracle\MIDDLE~1\JDK160~1\lib\tools.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic_sp.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.jar;C:\Oracle\MIDDLE~1\modules\features\weblogic.server.modules_10.3.5.0.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\webservices.jar;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1/lib/ant-all.jar;C:\Oracle\MIDDLE~1\modules\NETSFA~1.0_1/lib/ant-contrib.jar;C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\common\derby\lib\derbyclient.jar;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\xqrl.jar . PATH=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\native;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\native;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\bin;C:\Oracle\MIDDLE~1\modules\ORGAPA~1.1\bin;C:\Oracle\MIDDLE~1\JDK160~1\jre\bin;C:\Oracle\MIDDLE~1\JDK160~1\bin;C:\DevSuiteHome_1\jdk\jre\bin\classic;C:\DevSuiteHome_1\jdk\jre\bin;C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Oracle\MIDDLE~1\WLSERV~1.3\server\native\win\32\oci920_8 . *************************************************** * To start WebLogic Server, use a username and * * password assigned to an admin-level user. For * * server administration, use the WebLogic Server * * console at http:\\hostname:port\console * *************************************************** starting weblogic with Java version: java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b50) Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode) Starting WLS with line: C:\Oracle\MIDDLE~1\JDK160~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=C:\Oracle\MIDDLE~1\WLSERV~1.3\server\lib\weblogic.policy -Djavax.net.ssl.trustStore=C:\Oracle\Middleware\wlserver_10.3\server\lib\DemoTrust.jks -Duser.timezone="+05:30" -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -da -Dplatform.home=C:\Oracle\MIDDLE~1\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Dweblogic.home=C:\Oracle\MIDDLE~1\WLSERV~1.3\server -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=C:\Oracle\MIDDLE~1\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1 -Djrockit.optfile=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1\servers\DefaultServer -Doracle.domain.config.dir=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1 -Digf.arisidbeans.carmlloc=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\config\fmwconfig\jps-config.xml -Doracle.deployed.app.dir=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\servers\DefaultServer\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~1\ORACLE~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=C:\DOCUME~1\ADMINI~1\APPLIC~1\JDEVEL~1\SYSTEM~1.13\DEFAUL~1\oracle\store\gmds -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\Oracle\MIDDLE~1\patch_wls1035\profiles\default\sysext_manifest_classpath;C:\Oracle\MIDDLE~1\patch_jdev1111\profiles\default\sysext_manifest_classpath weblogic.Server <Feb 17, 2012 5:50:39 AM GMT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true> <Feb 17, 2012 5:50:39 AM GMT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true> <Feb 17, 2012 5:50:39 AM GMT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 19.1-b02 from Sun Microsystems Inc.> <Feb 17, 2012 5:50:40 AM GMT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.5.0 Fri Apr 1 20:20:06 PDT 2011 1398638 > <Feb 17, 2012 5:50:42 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> <Feb 17, 2012 5:50:42 AM GMT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool> <Feb 17, 2012 5:50:42 AM GMT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> <Feb 17, 2012 5:50:42 AM GMT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log00220. Log messages will continue to be logged in C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log.> <Feb 17, 2012 5:50:42 AM GMT> <Notice> <Log Management> <BEA-170019> <The server log file C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultServer.log is opened. All server side log events will be written to this file.> <Feb 17, 2012 5:50:48 AM GMT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> <Feb 17, 2012 5:50:50 AM GMT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\access.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> <Feb 17, 2012 5:50:50 AM GMT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\access.log00102. Log messages will continue to be logged in C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\access.log.> <Feb 17, 2012 5:50:56 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> <Feb 17, 2012 5:50:56 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> <MessageLocalizationHelper> <getLocalizedMessage> The resource for bundle "oracle.jrf.i18n.MBeanMessageBundle" with key "oracle.jrf.JRFServiceMBean.checkIfJRFAppliedOnMutipleTargets" cannot be found. <Feb 17, 2012 5:51:02 AM GMT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application GeneralLedger is not versioned.> <Feb 17, 2012 5:51:07 AM GMT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application Rapppdf is not versioned.> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <LoggingService> <BEA-320400> <The log file C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log00208. Log messages will continue to be logged in C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log.> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> <Feb 17, 2012 5:51:27 AM GMT> <Warning> <Server> <BEA-002611> <Hostname "rmsys0061", maps to multiple IP addresses: 192.168.0.161, 192.168.2.161> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:7101 for protocols iiop, t3, ldap, snmp, http.> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 192.168.2.161:7101 for protocols iiop, t3, ldap, snmp, http.> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.0.161:7101 for protocols iiop, t3, ldap, snmp, http.> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> <Feb 17, 2012 5:51:27 AM GMT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> IntegratedWebLogicServer startup time: 51640 ms. IntegratedWebLogicServer started. [Running application frmtesting on Server Instance IntegratedWebLogicServer...] [11:21:30 AM] ---- Deployment started. ---- [11:21:30 AM] Target platform is (Weblogic 10.3). [11:21:31 AM] Retrieving existing application information [11:21:31 AM] Running dependency analysis... [11:21:31 AM] Deploying 2 profiles... [11:21:32 AM] Wrote Web Application Module to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\frmtesting\ViewControllerWebApp.war [11:21:32 AM] Wrote Enterprise Application Module to C:\Documents and Settings\Administrator\Application Data\JDeveloper\system11.1.1.5.37.60.13\o.j2ee\drs\frmtesting [11:21:32 AM] Deploying Application... <Feb 17, 2012 5:51:33 AM GMT> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application frmtesting is not versioned.> [11:21:40 AM] Application Deployed Successfully. [11:21:40 AM] The following URL context root(s) were defined and can be used as a starting point to test your application: [11:21:40 AM] http://192.168.0.161:7101/frmtesting-ViewController-context-root [11:21:40 AM] Elapsed time for deployment: 11 seconds [11:21:40 AM] ---- Deployment finished. ---- Run startup time: 10812 ms. [Application frmtesting deployed to Server Instance IntegratedWebLogicServer] Target URL -- http://127.0.0.1:7101/frmtesting-ViewController-context-root/faces/untitled6.jspx
At the base (copy of right section) 10.3.5.011.1.1.5 JDev will use WLS 10.3.5 as its built-in Server
-
How to know the database uses pfile or spfile?
Hi guru
How to know the database uses pfile or spfile?
Thank youThank you for this question of doc!
Please type in sql * show spfile parameter.
If it is empty, you do not use a spfile.--------------
Sybrand Bakker
Senior Oracle DBA -
How to solve the problem of Oracle SQL Developer Connection?
People,
Hello. I use the Oracle 11 GR 1 material database. The database https://localhost.localdomain:1158 control console / em works correctly. I can create a database and a table with success.
My OS is Linux and connects to the internet successfully.
In order to execute SQL statements. We use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection name: DB1 (is my database name)
User name: SYS (this is the user name I used to connect to the Console)
Password: SYS (this is the password used to connect to the Console)
Connection type: basic
Host name: localhost
Port: 1158
SID: DB1 (it is created during the installation of the database)
But the error message: "status: failed - IO exception Connection Reset."
Can any folk tell me how to solve the problem of Oracle SQL Developer Connection?user8860348 wrote:
People,Hello. I use the Oracle 11 GR 1 material database. database Control Panel https://localhost.localdomain:1158 / em works correctly. I can create a database and a table with success.
My OS is Linux and connects to the internet successfully.
In order to execute SQL statements. We use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection name: DB1 (is my database name)
User name: SYS (this is the user name I used to connect to the Console)
Password: SYS (this is the password used to connect to the Console)
Connection type: basic
Host name: localhost
Port: 1158
SID: DB1 (it is created during the installation of the database)But the error message: "status: failed - IO exception Connection Reset."
Can any folk tell me how to solve the problem of Oracle SQL Developer Connection?
user name: sys
password: enter_your_correct_password given at the time of the installation of oraclerole: select sysdba if you would connect as sysdba otherwise select normal for users other than the sys
HostName: Enter your ip or hostname of the oracle example server address:-192.168.11.12
to find the terminal/command prompt open hostname in oracle installed machine
type---> hostnametype ping hostname--->
You can find the IP address of the server
Port number: 1521 (default)---> I guess, otherwise check the port number in the file tnsnames.ora under your ORACLE_HOME/network/admin folder
SID: DB1
try it
Good luck -
How to block the registration of files with a windows xp-specific extension
How to block the registration of files in windows xp with a specific extension, example the user cannot save a file with the extension exe or mp3 or another, as management on the filtering of files, windows 2003 server, I can't find the steps for the blocking process I mean in windows xp prof
Windows cannot do natively. A file name is simply a file name and you can not prevent the registration of a file based on its extension.
You can change file associations, such as a double click on a file with a particular extension will not automatically launch an application given, however, but that's not what you asked.
You may also schedule a program to run from time to time which will erase all files with a given as well. but until this program is executed, such a file might exist on your disk.HTH,
JW -
I forgot my password for windows 7... and please tell me how to know the password to open with?
I forgot my password for windows 7... and please tell me how to know the password to open with?
Keep passwords secure - Microsoft on passwords strategy
http://support.Microsoft.com/kb/189126What to do if you forget your Windows password:
http://Windows.Microsoft.com/en-us/Windows-Vista/what-to-do-if-you-forget-your-Windows-password -
How to know the product key for windows7
How to know the product key for windows7
Look for the COA sticker attached to your computer, usually downstairs or in the battery compartment if it of a laptop and is preinstalled on your computer. Or upper/side if it's a desktop computer.
If you bought Windows 7 from the Microsoft Store:
Find your key product if your purchase of Microsoft Store:
http://store.Microsoft.com/Help/FAQ?Err=T2#AT2You can find your Windows product key on the label supplied with the package provided with your copy of Windows
-
How to know the tables used in packages of a schema.
How to know the tables used in packages of a pattern that I have connected.
SELECT DISTINCT referenced_owner, referenced_name
Of all_dependencies
Owner WHERE = "MY_USER_NAME".
AND type ('PACKAGE', 'BODY of PACKAGE')
AND referenced_type = 'TABLE '.
-
How to know the schema of BIEE instance repository
I have several BIEE instance and equivalent manner several repositories created by RCU. How to know the link between the repository and POET?
Thank you
Take a look on
$FMW_HOME/user_projects/domains/bifoundation_domain/config/jdbc/mds-owsm-jdbc.xml
The jdbc-driver-params shows you the database and the schema that it uses, which tells you what you want to know.
-
How to know the name of the file in the file/FTP adapter
IAM again at the file/FTP adapter,
whenever we use files by ftp/adpter,
afrter choose system of remote/local server file.
How I can well filename?
How can we handle a fault, if the file selected, but the data is wrong?
How to know the date, when where selected file?
Please give me the solution
Check this: http://docs.oracle.com/cd/E25178_01/integration.1111/e10231/adptr_propertys.htm#CHDJBDHC
Search this topic: properties of table A-5 JCA for Oracle file adapter: standard properties.
Once the file has been picked up, you can easily extract the details of file using "jca.file.FileName" etc. (see above).
Rest should be treated by you, depending on the scenario you have.
HTH
-
How to know the version of the AMS
Hello community of AMS.
I would like to know how to know the version of the AMS, installed on the server to the client. I guess I could find opt/adobe/fms, but I had no success to find (I looked in the conf and license file).
Thanks for your help
The call for admin API getLicenseInfo gives this information:
Its also printed at the top of the log files:
[root@ams ~] # sed n 3 p' /mnt/logs/admin.00.log
#Software: adobe Media Server 5.0.1 r1076 x 64
-
Hi all
I wich know how can I know the position of the first character to the story of his mother, after a findGrep replace?
As an example my story contain:
Lorem ipsum dolor sit amet, adipiscing elit computer.
I get dolor and replace it with TEST
Lorem ipsum dolor sit amet, adipiscing elit computer TEST.
How to know the position of T compared to history, when I get a PointInsertion after changeText?
THX
"PointInsertion" defines all the positions that you could ever want - see http://jongware.mit.edu/idcs5js/pc_InsertionPoint.html
For "position relative to history" you may want to the index, which is 0 for the first character, 1 for the next (uh, and so on).
petiout wrote:
[...] When I get a PointInsertion after changeText?
In fact, you do not get 'a PointInsertion', you get an array of references to objects in plain text. But the text is a superclass of PointInsertion (and much more "texty" classes), so, in general, it would be prudent to use any PointInsertion method and property as if you InsertionPoints.
-
How to know the degree of optimal parallelism for my database?
I have an important application on my (Oracle 10,2,0) databae and the box has 4 CPU. All tables are not partitioned. Should I set the parallel degree by myself?
How to know the degree of optimal parallelism for my database?As far as I am concerned there is no optimum degree of parallelism at the database level. The optimal value depends on the query based on the plan in use. This may change over time.
It is not so difficult to abuse of the PQO and end up harming the overall database performance. PQO is a brute force methodology and should be applied with caution. Otherwise, you end up with results inconsisten.
You can let Oracle manage, or you can manage it on the level of education through advice. I do not have to specify the degrees of parallelism to the object level. As I said, no two queries are exactly alike and what is right for a query on a table cannot be good for another query on the table.
In the case of doubt put in place the system to let Oracle manage. If you ask really, it's how many sessions to allocate PQO then look at your reports Statspack or AWR and judge your system load. Monitor v$ px_session and v$ pq_slave to see how these views show activity.
IMHO - Mark D Powell-
-
How to convert the hierarchical query of SQL Server (CTE) to Oracle?
How to convert the hierarchical query of SQL Server (CTE) to Oracle?
WITH cte (col1, col2) AS
(
SELECT col1, col2
FROM dbo. [tb1]
WHERE col1 = 12
UNION ALL
SELECT c.col1, c.col2
FROM dbo. [tb1] AS c INNER JOIN cte AS p ON c.col2 = p.col1
)
DELETE one
FROM dbo. [tb1] AS an INNER JOIN b cte
ON a.col1 = b.col1Hello
Something like this maybe:DELETE FROM dbo.tb1 a WHERE EXISTS ( SELECT 1 FROM dbo.tb1 b WHERE a.co11 = b.col1 AND a.col2 = b.col2 START WITH b.col1 = 12 CONNECT BY b.col2 = PRIOR b.col1)
Although you need to do here is to check that CONNECT it BY SELECT, returns records you wait first, then the DELETION should work too.
-
How to avoid the SEPARATE in OBIEE SQL
Hello...
For the issue I posted previously...
Problem with the data type LONG in responses
I executed the query into a FROG, and I've identified the error because of what this error is coming... because of SEPARATE...
I took care to avoid this column in ORDER BY putting order on another column...
Now my question is how to avoid the DISTINCT clause in SQL generated by OBIEE...
If the first column of criteria is then it avoids the SEPARATE... but if I use measure... Group of will come... and group of should not be used here...
If it's done... my problem is solved...
Of course... I get duplicate rows...
However, I want the answer how avoid SEPARATE?
Waiting for the response from your...
Thanks and greetings
Kishore GuggillaKishore,
In the physical layer, open the properties of physical catalog and in the features tab find DISTINCT_SUPPORTED and remove the check box value.
who removed separate in each query generated for this database.
-Madan
Maybe you are looking for
-
Y at - it somewhere that I can find a list of explanations or definitions of applications that are running in the monitor of activity as well as a list of items that should raise red flags? I realize account from the list will vary depending on the
-
Satellite P100-119: need driver GeForce Go for Windows Vista
Hello I'm new here and got my first problem ;) I want to install Windows Vista Beta 2 on my Satellite P100-119, got a Nvidia Geforce Go7600 with 256 MB of ram on Pci - E in it and I want to ask if toshiba already has a driver for Vista? If all goes w
-
WAG160N without internet connection
Before I throw it I thought it might be useful to post here to see if anyone knows more than me about this problem. In the meantime, I have another wireless modem of va - working ATM I write/post - isn't all that urgent. My WAG160N router/modem I bou
-
I have a router in 1721 at home and I'm putting in place so that I can vpn inside via the cisco vpn client. I got to where I could successfully vpn, but I could not access all networks inside. All I could do was one of the servers, 172.16.0.10, ping
-
HelloI am running windows 8.1 and CC 2015.When I try to export a cineform QT I get error thefollowing:The trial for the Codec in Quicktime Cinform period has expired. Please Contact Cineform press to activate the software. (Invalid activation code)I