Posts

group by - MySQL - Looking for Top 10 records by Month -

मैं टेबल स्ट्रक्चर के साथ प्रस्तावना करूंगा: revshare r: आदेश सहित कोई खरीद के लिए जानकारी शामिल है, बिक्री , कमीशन, मद, इवेंटडेट उत्पाद पी: में एक पीआईडी ​​(उत्पाद आईडी) सहित एक उत्पाद की जानकारी शामिल है और व्यापारिक जानकारी प्राप्त करने के लिए व्यापारियों की मेज से जुड़ने के लिए उपयोग किया जाता है। व्यापारी एम: में उस व्यापारी के बारे में जानकारी शामिल है जिसे उत्पाद से खरीदा गया था, जिसमें MerchantName भी शामिल है प्रश्न मैं शीर्ष 10 आईआईडीआईडी ​​के पुल को खींचने के लिए एक MySQL क्वेरी बनाने का प्रयास कर रहा हूं किसी दिए गए महीने के लिए आयोग की राशि के अनुसार आदेश। पूरे डेटा सेट मैं प्राप्त करना चाहते हैं 120 रिकॉर्ड (10 प्रति माह) हो जाएगी 2011-2013 तो हर साल से है। मैं 1 महीने डेटा के लिए और एक के प्रयोग पर योजना बनाई खींचने के लिए एक प्रश्न बनाया प्रत्येक क्वेरी से 10 रिकॉर्ड्स के साथ एक रिकॉर्ड्स सूची बनाने के लिए यूनियन सब (प्रत्येक व्यक्तिगत क्वेरी, जो कि शीर्ष 10 मद आईडी का प्रतिनिधित्व करती है)। Query1 यह क्वेरी सही मायने में शीर्ष 10 मद आईडी मुझे उन...

How to get day of a ruby Date Object -

इस सवाल का पहले से ही एक उत्तर है: 9 जवाब कहो मैंने एक डाटा बनाया है इस तरह ऑब्जेक्ट। semester_start_date = date.new (2013,1,15) अब मैं कैसे पा सकता हूँ अगर semester_start_date.day = = 'गुरुवार' या उस बात के लिए कोई अन्य दिन? धन्यवाद। यदि आप 1.9 का प्रयोग कर रहे हैं, तो आपको यह करने में सक्षम होना चाहिए: 'तारीख' की आवश्यकता होती है d = दिनांक। नया (2013,1, 15) d.thursday? # = & Gt; झूठी d.wday # = & gt; 2 दिनांक :: DAYNAMES [d.wday] # = & gt; "मंगलवार" d.tuesday? # = & Gt; सच है मैं मान रहा हूँ कि आप वास्तव में एक तिथि ऑब्जेक्ट की तलाश नहीं कर रहे हैं जो स्ट्रिंग "गुरुवार" के समान है

multithreading - Java MulthiThreading Equal Cards divide with 4 threads -

I am trying to learn multi-threading by implementing the code snippet. The problem is that using the four lists (13 each) to distribute the card (52) between the four lists, please suggest a better solution or improvement in the code given below. Because it is for practice on multi-threading, I have not been stressed on conferences and generic nomenclature (apology for this) import java.util .LinkedList; Import java.util.list; Public class carddivideinterfire {static final int max = 52; Static Int Val = 0; Static object ob = new object (); Fixed list list 1 = new linked list (); Fixed list list 2 = new linked list (); Fixed list list 3 = new linked list (); Fixed list list 4 = new linked list (); Public Static Zero (String [] Args) {Thread T1 = New Thread (New Runnabal) (Public Zero Free) {While (true) {If (Val> = Max) {Brake}} Sync (bull) {List1.add (++ val); System.out.println ("a & gt;" + val); Ox.notifyAll (); Try {if (val> = max) {// System.out.println...

php - issue with wordpress Fatal error: Cannot redeclare frm_dl -

I got this issue using this website wordpress I do not know what the problem is Anyone can help us, please. Fatal error: frm_dl () You think wp-settings There are duplicate function definitions of rm_dl () function in php. Please review that file so that only one definition. Posting this link is also not a good idea to ask your website and ask "please take a look". If you post specific errors (definitely without a password) with the affected files, then it is very easy and easy to help us. If nothing is wrong, the error with your file is most likely because it is some automated hack due to some newly installed or updated theme or plugin. In both cases you should work back up and make sure to update any plug-ins and base installation with security. Update.

sql server 2008 - MERGE leads to 'Subquery returned more than 1 value' error in trigger -

The trigger below is on the table and I'm using it to update. trigger This trigger will update a type ID column based on the entered or any other column ... Is bound to type on the badly prepared table ID column is a identity column. Update Statement Merge using Table 1 typing in Table 1 Table1.TypeName = TypeTable.TypeName is matched when updated SET TypeID = TypeTable.TypeID; I get an error when the trigger is enabled: Subkey returned more than 1 value when subquery = =,! =, & Lt;, & lt; =, & Gt ;, & gt; = Or when subquery is used as expression, then it is not allowed I found this post describing that the issue is that the trigger in the table is only available at the same time A record was designed for. I disabled the trigger and was able to successfully update. My question is how to write the trigger, as there is no problem on large scale updates like this. Some things: Your trigger has been assumed that all operations affe...

javascript - Using Kendo Grid How to remove the column Borders? -

I am using a Candido UI grid and by default I get a column separator line or border line. (Workbench line below column). How can you remove them? Mark-up: & lt; Div class = "grid" & gt; & Lt; H3 & gt; Current & lt; Duration class = "target-count" & gt; 15 & lt; / Span & gt; & Lt; / H3 & gt; & Lt; / Div & gt; Itemprop = "text"> Try defining the following style : .k-grid td {border-width: 0; } Note : Remember that this style is defined in KanduIi CSS, so you should define it very last.

c# - WPF How to make the background of DataGridComboBoxColumn to be the same as DataGridTextBoxColumn -

I have a DataGrid ComboX column in DataGrid. Cambodia is applied in this form to show Cambodia like blanket-box all the time (click or not) xmlns: dg = "http://schemas.microsoft.com/ Wpf / 2008 / toolkit " & lt; Dg: DataGridTemplateColumn header = "time unit" x: name = "timeUnit" & gt; & Lt; DG: DataGridTemplateColumn.CellTemplate & gt; & Lt; DataTemplate & gt; & Lt; Combobox selected value = "{binding relataram.time usenet}" background = "white" borderbrows = "{x: faucet}" itemsource = "{binding time unit list}" & gt; & Lt; / ComboBox & gt; & Lt; / DataTemplate & gt; & Lt; / DG: DataGridTemplateColumn.CellTemplate & gt; & Lt; / DG: DataGridTemplateColumn & gt; Now the issue is that there is an alternative background in Datagrams. I want CombBlocks in the DataGrid to use the same background as the text box column in DataGrido. Whenever datagr...