This query is running slw...please help to improve performance
SELECT Listnontranstextid,
Listnontransshort,
Listnontransmedium,
Listnontransextended
FROM (WITH TEXT_T
AS (SELECT /*+ index(TT pk_text_translation) */TT.TEXTID,
TT.short,
TT.medium,
TT.extended
FROM TEXT_TRANSLATION TT
WHERE TT.Active = 1
AND ( TT.Short <> 'Null'
OR TT.Medium <> 'Null'
OR TT.Extended <> 'Null')
AND TT.Languageid = @Langid
FUNC AS (SELECT FN.ID
FROM Function_ Fn
INNER JOIN Function_Type Fnty
ON Fn.Functiontype = Fnty.Functiontype
AND Fnty.Active = 1
INNER JOIN Operation_Step_Function Osf
ON (Osf.Functionid = Fn.Id)
AND Osf.Active = 1
INNER JOIN Operation_Step Os
ON Os.Id = Osf.Operationstepid
AND Os.Active = 1
INNER JOIN Operation Op
ON Op.Id = Os.Operationid
AND op.defaultoperationrevision = 1
AND Op.Active = 1
AND Op.Revisionstatusid NOT IN (2)
-- 2 means Operation Staus =Cancelled
WHERE FN.ACTIVE = 1
SELECT TT.Textid AS Listnontranstextid,
TT.Short AS Listnontransshort,
TT.Medium AS Listnontransmedium,
TT.Extended AS Listnontransextended
FROM function_translation ft
INNER JOIN TEXT_T TT
ON (TT.Textid = Ft.Textid)
INNER JOIN FUNC F
ON (F.ID = Ft.Functionid)
WHERE Ft.ACTIVE = 1
UNION
SELECT /*+ index(Forout IF_FUNCTION_OUTPUT_ROUTING_02) */ TT.Textid AS Listnontranstextid,
TT.Short AS Listnontransshort,
TT.Medium AS Listnontransmedium,
TT.Extended AS Listnontransextended
FROM Function_Output Fo
INNER JOIN Function_Output_Routing Forout
ON Forout.Functionoutputid = Fo.Id
INNER JOIN TEXT_T TT
ON TT.Textid = Forout.PromptTextid
INNER JOIN Function_Output_Routing_Type Fort
ON Fort.Id = Forout.Outputroutingtypeid
INNER JOIN Text_Translation Ttdt
ON Ttdt.Textid = Fort.Textid
AND Ttdt.Languageid = @Langid
AND UPPER (Ttdt.Extended) = ('USER')
INNER JOIN FUNC F
ON F.ID = FO.Functionid
UNION
SELECT TT.Textid AS Listnontranstextid,
TT.Short AS Listnontransshort,
TT.Medium AS Listnontransmedium,
TT.Extended AS Listnontransextended
FROM Function_Input Fi
INNER JOIN TEXT_T TT
ON (TT.Textid = Fi.Prompttextid)
INNER JOIN Function_Input_Source_Type Fist
ON Fist.Id = Fi.Inputsourcetypeid AND Fist.Active = 1
INNER JOIN Text_Translation Ttdt
ON Ttdt.Textid = Fist.Textid
AND Ttdt.Active = 1
AND Ttdt.Languageid = @Langid
AND UPPER (Ttdt.Extended) = ('USER')
INNER JOIN FUNC F
ON F.ID = FI.Functionid
UNION
SELECT TT.Textid AS Listnontranstextid,
TT.Short AS Listnontransshort,
TT.Medium AS Listnontransmedium,
TT.Extended AS Listnontransextended
FROM Function_Input_value Fiv
INNER JOIN function_input fi
ON fi.id = fiv.functioninputid
INNER JOIN TEXT_T TT
ON (TT.Textid = Fiv.textid)
INNER JOIN Function_Input_Source_Type Fist
ON Fist.Id = Fi.Inputsourcetypeid AND Fist.Active = 1
INNER JOIN Text_Translation Ttdt
ON Ttdt.Textid = Fist.Textid
AND Ttdt.Active = 1
AND Ttdt.Languageid = @Langid
AND UPPER (Ttdt.Extended) = ('USER')
INNER JOIN FUNC F
ON F.ID = FI.Functionid
UNION
SELECT TT.Textid AS Listnontranstextid,
TT.Short AS Listnontransshort,
TT.Medium AS Listnontransmedium,
TT.Extended AS Listnontransextended
FROM cob_t_ngmes_master_data ctnmt
INNER JOIN
text_translation tt
ON tt.textid = ctnmt.textid
WHERE tt.languageid = @Langid
UNION -- Swanand, PR 190540, Added this clause to get the reasoncodes
SELECT TT.Textid AS Listnontranstextid,
TT.Short AS Listnontransshort,
TT.Medium AS Listnontransmedium,
TT.Extended AS Listnontransextended
FROM Reason_Code RC
INNER JOIN Reason_Type RT
ON RT.ReasonType = RC.ReasonType
INNER JOIN TEXT_TRANSLATION TT1
ON TT1.textid = RT.textid
AND RT.ACTIVE = 1
AND TT1.ACTIVE = 1
AND ( TT1.Short <> 'Null'
OR TT1.Medium <> 'Null'
OR TT1.Extended <> 'Null')
INNER JOIN TEXT_T TT
ON TT.textid = RC.textid AND RC.ACTIVE = 1
WHERE TT1.Languageid = @Langid
UNION
SELECT TT.Textid AS Listnontranstextid,
TT.Short AS Listnontransshort,
TT.Medium AS Listnontransmedium,
TT.Extended AS Listnontransextended
FROM NSPT_T_Event_Type ET
INNER JOIN TEXT_TRANSLATION TT1 ON TT1.TextID =
ET.TextID AND TT1.ACTIVE = 1
INNER JOIN TEXT_T TT
ON TT.TextID = TT1.TextID
WHERE TT1.Languageid = @Langid
ORDER BY Listnontranstextid ASC) WHERE Listnontranstextid > @I_TextIDEdited by: 964145 on Oct 26, 2012 4:53 PM
Duplicate post ? Query running slow....need performance tuning
Similar Messages
-
Hello, i have a problem with this number code 213:19, please help me!
Hello, i have a problem with this number code 213:19, please help me!
dan
What version of Premiere Elements and on what computer operating system is it running?
If you are using Premiere Elements 13, have you updated it to 13.1 yet? If not, please do so using an opened project's Help Menu/Updates.
What type of user account are you using....local administrator or domain type?
Please review the following Adobe document on the 213.19 issue. Have you read that already?
Error 213:19 | Problem has occurred with the licensing of this product
ATR -
Hi
I have installed the required .Net software, but never the less I've got this message. Could you please help me out ?
Thanx in advance
Pia
TITLE: Microsoft SQL Server Management Studio
Cannot show Query Designer.
ADDITIONAL INFORMATION:
Exception has been thrown by the target of an invocation. (mscorlib)
Unable to find the requested .Net Framework Data Provider. It may not be installed. (System.Data)
BUTTONS:
OKalso check
http://connect.microsoft.com/VisualStudio/feedback/details/652192/visual-studio-2010-add-connection-fails
mostly machine.config is referring to .net 3.0 assemblies
Balmukund Lakhani
Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog |
Team Blog | @Twitter
| Facebook
Author: SQL Server 2012 AlwaysOn -
Paperback, Kindle -
My phone says there's 0 bytes available but only 6 GB are used the phone is supposed to be 8 GB I have no pictures at all and only 5 apps this is really bothering me please help I can't even take pictures because it says I've no storage I also have no messages at all
My iPhone is a 16GB and it says 9.0GB Available and 3.7GB used; I suspect the missing 2.3GB is occupied by the system software.
-
My safari keeps closing unexpectedly and when it does it tells me that it quite while using the .GameHouseBeachParty.so plugin. I have no idea what this means! Can someone please help me fix this?
You have the Flashback trojan.
Check out the replies in this thread for what to do;
https://discussions.apple.com/message/18114958#18114958 -
iTunes 10.2.1.1 doesn't recognize my iPhone 4 when I try to sync it. This has happened suddenly. Please help.
I recently installed IOS 4.3.2. and ITunes 10.2.2 on my 64 Bit Vista PC. Since upgrading the IOS on any of my devices, none of them are recognized in iTunes. The computer recognizes them in My Computer but not in iTunes. Apple support pointed me to http://http://support.apple.com/kb/TS1538?viewlocale=en_US which directs you to uninstall/reinstall iTunes and all related programs. That has not solved the problem. The only guidance I have been given is from a tech at the Apple store who mentioned that there might be issues with the drivers in Vista. I have not been able to find any help with solving that issue. Does anybody have any thoughts.
-
Hello I forgot my Security question of my Apple ID ? I don't kow what should I do and how to solve this problem ? could you please help ?
You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
(104569) -
in version 10.1 fcpx how do I edit in proxy, then when I am finished share with optimize footage? It was easy in 10.9 version, but I can't figure this out in 10.1, please help.
The switch is in the upper right of the viewer.
-
I am using Mail 5.3 with two separate gmail addresses.
One is personal the other is business.
When I send emails from the BUSINESS address, any auto-replies/out of office notices I get come to my PERSONAL INBOX.
I imagine that this is a setting? Please help!Edit the SMTP server list. Add a new one for the business account. Put the correct password and information for it. Give it a description so you will know which server is which. Mke sure the correct server is highlighted in the account selected and check the box to use only that server for that account. Do that for the other account also.
-
Hi, on my fathers pc sometimes when downloading multiple tabs start opening and I cannot stop this happening. Could anybody please help me? for example, trying to download TomTom Start 25 user manual
You get that problem if you select the Firefox program to handle a file if you get an "open with" dialog.
*https://support.mozilla.com/kb/Firefox+keeps+opening+many+tabs+or+windows -
Hi.my itunes appear this error ERROE CODE:1009 please help me
hi.my itunes appear this error ERROE CODE:1009 please help me
Read my post. I don't know if you're having the same problem but I hope this helps. http://discussions.apple.com/thread.jspa?threadID=1351705&tstart=0
Message was edited by: Happyfish -
Whenever I try to download an app, it always says "Cannot connect to iTunes Store", even though I am connected to wifi three bars. And sometimes it just goes blak and quits the app. Right after I downloaded iOS 6 this started to happen. Please help me.
See these previous discussions help.
App Store Updates (but only Updates)...: Apple Support Communities
Apps suddenly don't update: Apple Support Communities -
Firefox worked on this computer in the past. Now, Firefox wont start.
1. I deleted everything off this computer including the profile and all files under
C:\Program Files (x86)\Mozilla Firefox\
2. I deleted my profile here:
%APPDATA%\Mozilla\Firefox\Profiles\
3. I uninstalled the program, deleted all cookies, temporary internet files etc. I restarted my computer.
When I reinstalled it, it still doesn't open.
When I ctrl+Alt+del I see the process (not application) is running, but nothing appears on the streen
Please help!!!
win 7, plenty of ram, plenty of disk space, high speed internetTry to boot the computer in Windows Safe mode with network support (press F8 on the boot screen) as a test to see if that helps.
-
New Customer, Getting a lot of run around please help
I need help. I am tired of getting run around. I want to switch to Verizon because of great customer service that my friends and colleagues talk about they receive from Verizon. My experience so far does not reflect that all. I per-ordered iPhone 6 plus on Sept 12th as a new customer, filled out all the info. to order new service and port my current number from an other provider. My order was completed and I received email confirmation by 2:30 CST (12:30 PST). The entire time during order process, I was being told that my phone will be delivered on Sept. 19th. The order status page still says "Expected Ship Date: Not available at this time.". I am not even sure if my order went through and If I am even going to receive a phone. I have called customer service several times and no one seems to know what's going on. COULD SOMEONE AT VERIZON PLEASE HELP and clarify if I am still going to receive my phone? This is getting extremely frustrating. My wife's and kids contract with our current service provid@er expire in August. I was going to switch them to Verizon as well, however, at this point I am not so sure if I am going to switch.
vakkas1 wrote:
They should be able to at least tell me if my preorder went through and ETA on the shipment right? or is that Apple's fault as well?
If Verizon gets 4 million orders for iPhone 6es and they only sent Verizon 2 million and they cant tell Verizon when they will ship the the other 2 million then yes that is Apple's fault and Verizon has no way of telling you anything. -
my family shares one apple id among 4 devices. how do i make it IMPPOSSIBLE for my children (i pad mini and i pod touch 5) to view my contacts and texts while still sharing my apps? please help. been working on this for hours.
Delete your account in 1. "Settings > iCloud" + 2. "Settings > Messages > Send & Receive" + 3. "Settings > FaceTime", but still let them using your account for iTunes and app purchases in "Settings > iTunes & App Stores". Of course, please make sure that they do not know your password to set up your account for iCloud again or purchase anything alone.
Maybe you are looking for
-
Hi Guys, I wonder if I can create to different rows 1 for product type and another one for product, now I have them both in the same column, looks nice but I want them in 2 different rows but I can't find the setting to do it. Thanks
-
on my laptop. Dates/Subject/To/From fields are still present. Could this be due to a system update and if so, how can I track it and correct it?
-
Using external Jar with a mobile application
Hi folks! I need some help with my application, i make a simple mobile application and i need to use a external jar, in this case, this jar have a simple JAVA class that represents a manipulation with eSWT, so my problem is How to using external J
-
Trouble reloading older version of Lightroom while awaiting LR4
I had to reformat my computer the other day. I have ordered LR4 and it should arrive in a couple of days. In the meantime, I am trying to reload Lightroom 2 from the disk I purchased a number of years ago. It seems to load fine, but never asks me my
-
Looking for Implementation Guide for Sales and Distribution
From where can I download "Implementation Guide" for Sales and Distribution or can anybody mail me the guide? Thanks in advance for the answers.