Query suggestions / help
Hi @ll,
I am creating a query for searching order / invoices. Only customers should be displayed, who ordered least 90 days before and there is no order for a earlier time.
SELECT MAX(T0.DocDate), T0.CardCode FROM OINV T0
WHERE DATEDIFF(day, MAX(T0.DocDate), getdate()) <= 90
GROUP BY T0.CardCode, T0.DocDate
ORDER BY T0.CardCode, T0.DocDate DESC
Datediff works well, but not with the MAX statement. If i use only Datediff(day, T0.DocDate, getdate()) = 90, it displays also customers, who ordered in a earlier time.
Regards Steffen
Under stood try this
select A.CardCode from (
select T0.Docdate,T0.CardCode From OINV T0
where
T0.CardCode not in (Select S0.CardCode from OINV S0 where S0.Docdate between getdate()-90 and getdate())
)A
Group By
A.CardCode
Regards,
Thanga Raj.K
Edited by: Thanga Raj K on Jun 9, 2009 12:30 PM
Similar Messages
-
Hello everybody.
I am currently working with Sharepoint Online search and am trying to find information about managing Query suggestions (CRUD operations).
Would anybody have any information as to how I could do this in CSOM or PowerShell ? I truely am having a hard time on this.Hi,
Please check below. This should help you. You can REST APIs
Retrieving query suggestions using the Search REST service
https://msdn.microsoft.com/en-us/library/office/dn194079.aspx
Please remember to click 'Mark as Answer' on the answer if it helps you -
Improve Query Suggestions Load time
How can I improve load time for Pre Query Suggestions on search home page when user start typing ??
I notice it was slow in loading when I hit first time in the morning so I try to warm up by adding
""http://SiteName/_api/search/suggest?querytext='sharepoint' ""
in to warm up script but even during the day time after hitting few times it is slower some times . Any reason ?
Do you think moving Query Component to WFE will do any help here?
Pleas let me know - Thanks .Hi,
Query Suggestions should work at a high level overview is:
• You issue a query within a Search Center site and get results..
• When you hover over or click a result.. this gets stored as a “RecordPageClick” method and will be stored in the Web Applications W3WP process…
• Every five minutes ( I believe ) this W3WP will flush these Recorded Page Clicks and pass them over to the Search Proxy…
• This will then store them in a table in the SSA ( Search Service Application ) Admin DB
• By default, once a day, there is a timer job, Prepare Query Suggestions, that will run
• It does a check to see if the same term has been queried for and clicked at least 6 times and then will move them to another table in the same DB..
• If there are successful queries\clicks > 6 times for a term, and they move to the appropriate table, then when you start to type a word, like “share”
• This will fire a “method” over to the Search proxy servers called “GetQuerySuggestions” and will check that Admin DB to see if they have any matches..
• If so, then it will show up in your Search Box as like “SharePoint” for a suggestion…
Other components involved with the Query Suggestions:
Timer Jobs
Prepare query suggestions Daily
Query Classification Dictionary Update for Search Application Search Service Application Minutes
Query Logging Minutes
Database
MSSQLogQuerySuggestion (SearchDB) This gets cleaned up when we run the timer job
MSSQLogQueryString (SearchDB) Info on the Query String
MSSQLogSearchCounts (SearchDB) Info on the click counts
MSSQLogQuerySuggestion Looks like this may be where the hits for suggestions are stored
So the issue might related to timer job, database, connection between SharePoint server and SQL server. There is a similar case caused by DistributedCache.
If you move query component on to another sever, this may improve the process related to Search service, however, it may affect the performance due to networking.
Please collect verbose ULS log per steps below:
Enable Verbose logging via Central Admin> Monitoring> Reporting>Configure diagnostic logging(You can simply set all the categories with Verbose level and I can filter myself).
Reproduce the issue(Try to remove SSRS).
Record the time and get a capture of the error message(including the correlation ID if there is). Collect the log file which is by default located in the folder: <C:\Program files\common files\Microsoft Shared\web server extensions\15\LOGS>.
Stop verbose logging.
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]. -
My old iPod Nano says to use iTunes to restore and I've followed all suggested help steps, but I can't get it into disk mode nor can I get it to show in my computer or in iTunes. I have the latest version of iTunes. Windows has all the most recent updates too. I can reset the iPod, but the message to Use iTunes to restore comes back and I am stuck.
Already tried another USB port, still nothing.
I don't have another PC to check, I only have one which is the one not working with my iPod.
It appears under my Computer, just not under iTunes. Plus, the iPod classic troubleshooting assistant doesn't work because I can't restore since it can't come up onto my iTunes! Even my iPod says "Use iTunes to Restore" once in a while, but I plug it in & I'm not able to restore it since it won't come up under iTunes.
Please help -
How to improve the performance of the attached query, Please help
Hi,
How to improve performance of the below query, Please help. also attached explain plan -
SELECT Camp.Id,
rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount,
(SUM(rCam.Impressions) * 0.001 + SUM(rCam.Clickthrus)) AS GR,
rCam.AccountKey as AccountKey
FROM Campaign Camp, rCamSit rCam, CamBilling, Site xSite
WHERE Camp.AccountKey = rCam.AccountKey
AND Camp.AvCampaignKey = rCam.AvCampaignKey
AND Camp.AccountKey = CamBilling.AccountKey
AND Camp.CampaignKey = CamBilling.CampaignKey
AND rCam.AccountKey = xSite.AccountKey
AND rCam.AvSiteKey = xSite.AvSiteKey
AND rCam.RmWhen BETWEEN to_date('01-01-2009', 'DD-MM-YYYY') and
to_date('01-01-2011', 'DD-MM-YYYY')
GROUP By rCam.AccountKey,
Camp.Id,
CamBilling.Cpm,
CamBilling.Cpc,
CamBilling.FlatRate,
Camp.CampaignKey,
Camp.AccountKey,
CamBilling.billoncontractedamount
Explain Plan :-
Description Object_owner Object_name Cost Cardinality Bytes
SELECT STATEMENT, GOAL = ALL_ROWS 14 1 13
SORT AGGREGATE 1 13
VIEW GEMINI_REPORTING 14 1 13
HASH GROUP BY 14 1 103
NESTED LOOPS 13 1 103
HASH JOIN 12 1 85
TABLE ACCESS BY INDEX ROWID GEMINI_REPORTING RCAMSIT 2 4 100
NESTED LOOPS 9 5 325
HASH JOIN 7 1 40
SORT UNIQUE 2 1 18
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY SITE 2 1 18
INDEX RANGE SCAN GEMINI_PRIMARY SITE_I0 1 1
TABLE ACCESS FULL GEMINI_PRIMARY SITE 3 27 594
INDEX RANGE SCAN GEMINI_REPORTING RCAMSIT_I 1 1 5
TABLE ACCESS FULL GEMINI_PRIMARY CAMPAIGN 3 127 2540
TABLE ACCESS BY INDEX ROWID GEMINI_PRIMARY CAMBILLING 1 1 18
INDEX UNIQUE SCAN GEMINI_PRIMARY CAMBILLING_U1 0 1Hello,
This has really nothing to do with the Oracle Forms product.
Please, send the SQL or/and PL/SQL questions in the corresponding forums.
Francois -
3rd gen iPod touch. I just get a blank screen (after a few secs of the apple symbol) when it is switched on or when connected for charging. I know the connections are OK. Suggestions/help please
I took the iPod to the local Apple shop. The guy put the iPod onto a docking station and checked it - answer "connections are OK". I have used the link before but have not gone through all its suggestions (although picked on the most relevant ones). I may have to go back. Thanks again for your suggestions
-
How to enable query suggestions
How can the query suggestions be enabled in the Firefox address bar?
Go to the Privacy tab (i.e. \Firefox\Options\Options) and for the Location Bar, choose "History and Bookmarks" (using the drop-down arrow).
Next, go to the Advanced tab and under the General sub-tab, check the box that reads "Search for text when I start typing". Save and restart your browser.
Hope that works. -
Google's preference "Query Suggestions"
I've got two machines, one running 10.4.11 and the current version of Safari
one running 10.5.5 and the current version of Safari
with the 10.4 machine and Safari: i can go to Google home page, then "preferences" when logged in, and i have a category "Query Suggestions"...
on the 10.5 machine and safari, that category is completely missing? it is logged in to exactly the same google account. and Safari is exactly the same version..???
any ideas?JonK.. wrote:
that means there is something wrong with my system if you can see it??? or something wrong with a setting...
That's why caching came to mind as the most likely culprit.
The only other thing I can think to suggest is deleting any Google cookies and seeing if that makes a difference. I don't think that's like to be the answer, but it can't hurt to try. -
i am running 10.8.5 trying to run 10.6 on vmfusion but its not working any suggestions/help? i get this same error
hummingbird.jeff wrote:
Hi Agan:
Yes indeed ddanielsun is encountering the same problem that led me to initiate this thread ... If you try to install any of the available 10.9.x from 10.6.8 the installer exits with an error "10.9 required for this update" ... seems strange that 10.9 is so very hard to find ! ! !
jeff
Clearly you can not update 10.9 if you do not have 10.9
It is very easy to find, it is in the App Store as the picture I posted earlier displays. Follow the same instructions. If you can't then use THIS LINK which will take you there.
The current version of 10.9 is 10.9.5 and that is what you will get. -
Cluster bar chart- sql query please help-
Hi,
I am trying to create cluster bar chart and am stumped with this sql query.Any help is appreciated.
Here is my table
city region issue value
c1 north i1 y
c1 north i2 y
c2 north i1 n
c2 north i2 y
c3 south i1 y
c3 south i2 n
c4 east i1 n
c4 east i2 n
The bar chart will have 3 series, north south and east.
And labels will be i1 and i2. value will be number of times this issue was encountered(y) in this region.
How can I get something like this from the above table-
region issue count(yes)
north i1 1
north i2 2
south i1 1
south i2 0
east i1 0
east i2 0
thanksWITH table1 AS
(SELECT 1435177 qte_id, 2 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 5 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 7 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 8 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 12 seq_no
FROM dual
UNION ALL
SELECT 1435177 qte_id, 14 seq_no
FROM dual
table2 AS
SELECT 1435177 qte_id, 1 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 2 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 3 seq_no, 0 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 4 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 5 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 7 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 8 seq_no, 98500 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 11 seq_no, 59300 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 12 seq_no, 59300 cmmt_curr_amt
FROM dual
UNION ALL
SELECT 1435177 qte_id, 14 seq_no, 59300 cmmt_curr_amt
FROM dual
SELECT qte_id, t2_seq_no, cmmt_curr_amt - cmmt_curr_lag diff
FROM
(SELECT t2.qte_id, t2.seq_no t2_seq_no, t1.seq_no t1_seq_no, cmmt_curr_amt, LAG(cmmt_curr_amt,1,0) OVER (PARTITION BY t2.qte_id ORDER BY t2.seq_no) cmmt_curr_lag
FROM table1 t1, table2 t2
WHERE t2.qte_id = t1.qte_id (+)
AND t2.seq_no = t1.seq_no(+)
ORDER BY 1,2
WHERE t1_seq_no IS NOT NULL
ORDER BY 1,2
QTE_ID T2_SEQ_NO DIFF
1435177 2 0
1435177 5 0
1435177 7 0
1435177 8 0
1435177 12 0
1435177 14 0 -
My ipad suddenly cannot connect to wifi internet,you can see the icon that its connected but most of the apps are not opening with message not connected to internet...
Please your suggestions / help are very much appreciated
ThanksTry This...
Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
Reset ( No Data will be Lost )
Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
Wait for the Apple logo to Appear...
Usually takes about 15 - 20 Seconds... ( But can take Longer...)
Release the Buttons...
If no joy...
Reset all settings
Settings > General > Reset > Reset all Settings.
This will return all iDevice settings to factory defaults... you will not lose any data.... But you will have to re-enter all of the device settings. -
I flip on my silent switch and the phone still rings on my iphone 4....any suggestions/help is greatly appreciated
Try a Reset,
Press the sleep/wake button & home button at the same time, keep pressing until you see the Apple logo, then release the buttons...
http://support.apple.com/kb/ht1430
http://manuals.info.apple.com/en_US/iphone_user_guide.pdf -
Error in Query (Pls help)
Hi friends,
When i executed one of the queries, i get this error:
Abort System error in program <b>CL_RSDM_READ_MASTER_DATA and form_sidval_direct</b>
Diagnosis
This internal error is a targeted termination since the program has an incorrect status.
Procedure
Analyse the situation and inform SAP.
I have check all my infoobjects and master data...everything is in active but still i dont understand why i get this....
please suggest how to get rid of this error? its urgent
Regards
BalajiHi balaji,
This can be program error, need to apply support package or correction,
seems no oss found for form_sidval_direct .....
perhaps it's sid error, try to analyze and repair the infoprovider where the query created on, use transaction RSRV.
hope this helps.
assign points if useful
Regards,
Archna -
Large number of attributes reduces data display in Query (PLS HELP).
Dear Guru's
We have newly upgraded our system to 7.0, Currently i have a Query based on master data info object(0 equipment) which contain several attributes, due to huge number of attributes, i cannot see data for few attributes( Ex:-0service descrip), but data exists for these atrrib, when i check in RSA1. my client want to use heavy number of 0Euipment numbers(nearly 10000) in selection screen. thats the reason for data not to be seen.
WE are under SP 16 also(Note 562162 - Additional selection of attribute reduces query result set is allready exists), and did not found any proper note.
So guru's can any one please tell me how i can get the data in Query for these attribute by keeping the same selection option for Equipment numbers (10000).
Dude's give me some good suggestion please...client is waiting from 1 week
Thanks in adv
Dev
Edited by: Srinivas dev on Jun 10, 2008 11:52 AMDear Yogesh,
Thanks a lot dude...
I assigned points for your kindly help....
Got any idea about by initial post Large number of attributes reduces data display in Query
Thanks and Regards
Dev -
ABAP query (Search help)
One Standard search help is giving resutlts perfectly ok in user's login having 'SAP ALL' profile but same is giving different results in user's loginwho do not have 'SAP ALL' profile. Kindly suggest.
Thanx and regards,
Rajesh VasudevaHi Rajesh,
The reason for this may be that the user is not given the complete authorization for one or more firld in that query.For example user may have authorization for onle one plant PT01 and hence the o/p of query shows only relative data,where as in SAP_ALL there will be all the plants say PT01,PT02,PT03...
You may contact the Basis person for clarification.
Reward points if useful
Bhavin P Shah
Maybe you are looking for
-
What are the Non SAP data sources supported for Analysis workbooks?
AO 1.4 SP6 BO 4.1 SP2 What are the Non SAP data sources supported for Analysis workbooks? Thanks.
-
Can I import binary in Flash CS5 and export swf, without AS code likes "Embed" ?
Can I import binary in Flash CS5 and export swf, without AS code likes "Embed" ? I know I can use AS code,likes "[Embed]" metadata to embed binary in swf. But , how can I do that in Flash CS5 ?
-
How to use customized exception
Hi all, I have a problem using struts-action-mappings. I have a method for update in my app module, and i'm using that method with data action. In that method, I have to throw my customized exception to user if there is error. I just don't know how t
-
FOREIGN KEY CONSTRAINT 의 MASTER TABLE NAME 의 확인
제품 : ORACLE SERVER 작성날짜 : 1995-11-02 FOREIGN KEY CONSTRAINT 의 MASTER TABLE NAME 의 확인 =================================================== 다음은 FOREIGN KEY CONSTRAINT 이름으로 REFERENCE 하는 TABLE (MASTER TABLE)을 찾는 SQL SCRIPT이다. col Primary_key_table format
-
Does Tx2z series support SDHC??
I have a Tx2 1300 series and am wondering if the card reader will read SDHC cards or not. Can someone please answer as I'm sure someone must have tried it. Thanks