How to join the Rule ID to the Error Excel data table.

I have a requirement to get the invalid active rule ID from the rule table for the interface errors
Interface has the logic to log an error, if more than 1 rule found for same combination of product, location and carrier. 
The error log is monitored by business users and they would like to see invalid rule on the error report, so they can go and correct those.
This is my Input:
Error Table is in SQL database, we do the Excel data query and send the below table information to users.
ID
Source
Product
Location
Carrier
Date
Error Msg
1
VMI
EX_0
EX_A
EX_ABC
Jan-15
More than 1 Active Rule found for this combination
2
VMI
EX_1
EX_B
EX_XYZ
Jan-15
More than 1 Active Role found for this combination
End User Expecting Output like this, invalid Rule to be added on the error report.
ID
Source
Product
Location
Carrier
Date
Error Msg
Invalid  ID
1
VMI
EX_0
EX_A
EX_ABC
Jan-15
More than 1 Active Role found for this combination
1
2
VMI
EX_1
EX_B
EX_XYZ
Jan-15
More than 1 Active Role found for this combination
3
I need to look 2 different tables to get invalid rule ID for the same product, location and carrier combination.
Cross –Reference table (this table has the corresponding internal ID’s for the external value from the error table) source is the common field in error table and the cross reference table.
ID
Source
External Value
Internal Value
Internal ID
1
VMI
EX_0
IN_Pen
001
2
VMI
EX_1
IN_Pencil
002
3
VMI
EX_A
IN_NJ
101
4
VMI
EX_B
IN_CA
102
5
VMI
EX_ABC
IN_PILOT
201
6
VMI
EX_XYZ
IN_LITER
202
After getting all the required Internal ID, I am executing below query to find out invalid rule.
SELECT ID
FROM dbo.Rule r
WHERE r.Status='Active'
AND r.productID= 001
AND r.LocationID=
101
AND r.CarrierID=
201
AND
‘Jan-15’ NOT between From_Date and To_Date
Result:
ID
1
Rule Table
ID
Product ID
Location ID
Carrier ID
Status
From Date
To Date
1
001
101
201
Active
Jan 14
Dec 14
2
001
101
201
Active
Jan 15
Dec 15
3
002
102
202
Active
Jan 14
Dec 14
4
002
102
202
Active
Jan 15
Dec 15
Currently I am running these query’s manually to find the out the rule id and informing to users to correct them.
Please let me know if this is not clear.

Hi ManuGT,
i couldn't get you. As the following, the invalid rule is 1,3. but as your description and there should be two internal value IN_NJ and IN_CA, and the invalid rule should be 1,2,3,4 in the rule table. you want to get the invalid Rule id, but why do you want
to return the count? could you please explain clearly??
ID
Source
Product
Location
Carrier
Date
Error Msg
Invalid  Rule
1
VMI
EX_0
EX_A
EX_ABC
Jan-15
More than 1 Active Role found for this combination
1
2
VMI
EX_1
EX_B
EX_XYZ
Jan-15
More than 1 Active Role found for this combination
3

Similar Messages

  • How to join and sign in to the Adobe Education Exchange | Adobe Education Exchange | Adobe TV

    To fully take advantage of the Adobe Education Exchange, you'll want to become a member. Learn how to join and sign in to the community.
    http://adobe.ly/VW90Uc

    Hi LightwaV - the best place to get support for the Adobe Education Exchange is to go through the Help Center on the AEE - http://edex.adobe.com/help-center/. Once there you can navigate through the help items to find answers to common questions and if you're problem isn't solved, you can email the AEE support team. They will be in a better position to help you and troubleshoot your account.
    Hope this helps!

  • How can the ruler and or the measurement tool calibrated? both are totally off.

    how can the ruler and/ or the measurement tool calibrated? both are totally off by various margins.

    skn1868 wrote:
    do you know how to reset the ppi so it is accurate?
    Earlier, I wrote:
    What is the ppi value in the document?  Use the Image - Image Size menu to see or set this value.
    I can't believe this conversation has gone on this long.  You keep wanting it to be a bug, but it seems to me the basic problem here is that you haven't accepted the fact that YOU are responsible for getting the image metadata in order before you can use tools like the Ruler to read out in physical units, such as inches or centimeters, accurately.
    Photoshop can only know the size of things in your document if you or your workflow provide it an accurate ppi value!
    What's the original source of the material?  A scanner?  If so, some part of the scanning or image preparation process has left you with an inaccurate ppi value.
    For the documents you're already working with, use Image - Image Size, then UNcheck the Resample Image checkbox and type in the correct ppi value.  Then everything will work.
    -Noel

  • About the rules (logic) between the fan speed and the temperatures?

    Hello All,
    Well, I've had a bad experience with my MBP last week: my motherboard busted and had to replace it... Expensive part to replace!
    After thinking about the reasons why it failed, my attention has been directed toward a possible motherboard overheating, which might have damaged the motherboard.
    I've installed the iStat Pro widget and regularly monitor temperatures displayed vs. fan speed. I do get a bit nervous when I see a 84 oC CPU temperature and idle (2000 rpm) fan speeds. My GPU temperature is also sometimes in that range.
    My questions are:
    1) does anybody know the rules (logic) between the various temperatures (CPU, CPU heatsink, GPU, GPU heatsink, enclosure, HD, etc.) and the fan speeds?
    2) other than with the fews apps out there, is there a way to customize the rules? Is there a text file or a plist file somewhere where I can change the rules?
    Thanks!

    If your idle speeds are 2000 rpm, you have one of the original Core Duo MBPs. For me, I see fans on my 17" CD MBP speeding up once temps get into the upper 70s °C.
    Apps like smcFanControl allow you to alter the setpoints. Note that some users who installed smcFanControl, then uninstalled it, report symptoms like yours - namely, the fans remain at idle no matter how hight the temps get, until a thermal shutdown is triggered (somewhere close to 100 °C).

  • Is Catch Playhead supposed to turn on every time I click in the ruler to move the playhead?

    Is Catch Playhead supposed to turn on every time I click in the ruler to move the playhead or click and drag the playhead?
    For me it does.
    I'm running LPX 10.1.1 and OS X 10.10.2.

    Logic Pro>Preferences>General/Catch

  • Bill Presentment Architecture, how to Overide Default Rule and ensure the AR Invoice/Transaction Chooses "Customer Transaction Data Source"

    Hi Intelligentsia,
      we are on 12.2.4 on linux, i have setup external template with supplementary Data source as "Customer Transaction Data Source", when i test it fails, i am not able to debug it , however when i run the BPA Transaction Print Program (Multiple Languages) it always gives me the default layout.
    Query is
    How do i ensure the Default rule Does not apply to my Invoice and i am able to override it
    is there a method to explicitly Ensure the Supplementary Data Source as "Customer Transaction Data Source", when i am creating the AR Invoice/ Transaction?  Am i missing some setup in AR Invoice Transaction Flexfield where i need to setup this "Customer Transaction Data Source" as the DFF Context ?
    please let me know if you need any more information.
    Abdulrahman

    Hello,
    Thanks for the answer. When you say rule data is that Rule creation date or the "Bill Creation From Date" that we setup while creating the rule? I have created a new invoice after the rule created, but it did not pick the new custom template.
    I have another issue. It would be greate if you could help. I have split my logo area into 2 vertically to display logo in one and legal entity and addres on the other one. In the Online Preview I can see the logo and Legal address. But in the print preview , i am not able to see them. It just shows a blank space. Any Idea?
    Thanks in advance

  • How to find the number of entries in a master data table

    Hi Experts,
    I am trying to find the entries in 0CUSTOMER master data.
    BW>LISTCUBE>Data target: 0CUSTOMER and selected the fields that I need.
    I would like to know how to find the "number of entrees". I tried to run the SUM for a count field, but it is taking forever as there are huge number of records .

    Hi Dev,
    Go to the change/display mode of the info object (0CUSTOMER) in your case. Go to the Master data/Text tab. Here you will find the master data tables according to your settings (P orQ or X or Y). Double click on the table name and it will take you to the SE11 display. From there, you can check the number of records as you do in any transparent table.
    Hope this helps.
    Thanks and Regards
    Subray Hegde

  • Why does 'Minimize' and 'Zoom' appear twice in the Window menu? They appear under the rule, where all the open windows are listed.

    Running FF 6.02 on Mac OS 10.6.8.
    Window menu reads:
    Minimize
    Zoom
    Minimize
    Zoom
    [open window 1]
    [open window 2, etc.]

    Thanks for your response. However, I see no mention of "layer-xxxxxx" appearing in the Window menu on the Mac menu bar in Firefox ''and'' that link says it only applies to Windows and Linux. May I ask what led you to that theory? Thanks...

  • How to identify a specific object that changed in a data table?

    I have a data table in my jsf page which populate by myList (a property of type List<myObject> in myBean) that contains a list of myObject objects.
    Within data table, the 'amount' property of myObject is in a h:inputText named 'amountText'.
    How can I recalculate another property (for example 'cost') of the specific myObject within one of the
    data table rows whenever user change the value of 'amountText' ?

    Hi Roger,
    I guess, it is up to your choice about design how you want to implement.
    you have two ways....
    1) Use valueChangeListener attribute of the text field, as it will be called for the row of the database on which the bind property value is actually changed.
    2) Not prefered, but you can use setterMethod of amount in the your object, and can compare its new value with the old one and can decide the consequence.
    Please let me know, if it solves your concern or you have a different concern.

  • How to solve this problem "ORA-01466: Unable to read data -- Table definiti

    Hi,
    I had deleted the entry and i want back now and in between i done the following
    alter table pv_head enable constraint FK_PV_HED__CRF_HEDwhen i try in the following one
    SELECT * FROM PV_HEAD AS OF TIMESTAMP TO_DATE('28-FEB-2011 9:45:00','DD-MON-YYYY HH24:MI:SS')
    WHERE PV_NO IN (703705,703704) the error i am receiving           
    ORA-01466: Unable to read data -- Table definition has changed how to solve this issue.
    please guide me.
    Kanish

    You can not perform DDL and then perform a flashback query to before the DDL.
    One might wonder why you chose this particular time to perform an ALTER TABLE but you did. It is what it is.

  • How do I trap on scroll event , while displaying a data table?

    I am making a very small screen size application, in which I need to display a table of long row of data. I have used the "tab-pane" DIV class and divided the data row into 3 tabs. The purpose is that, whenever i scroll to see next rows of data in Tab1, I want to scroll and display the corresponding other columns of those data rows (which are now getting displayed in tab 1), in tab 2 and tab 3 also i.e. the scrolling in tab 1 should control the scrolling in Tab 2 and Tab 3 also.
    Thanks in anticipation...

    heheh... the fun part of about programming... problem solving... :D
    here is one way of doing it is this... ( example included )
    we know we are using a JScrollPane that made up of some components including JScrollBars...
    what you can do is get the JScrollBars using the this method described in the javax.swing.JScrollPane API... in the example, i only grabbed the horizontal ones, you can get the vertical ones too if you like...
    JScrollBar getHorizontalScrollBar()
              Returns the horizontal scroll bar that controls the viewport's horizontal view position.from the example this one of the actual calls...
    sBar1 = scrPane1.getHorizontalScrollBar();and as you can see the JScrollBar object from JScrollPane is assigned to a variable sBar which is of type JScrollBar...
    if we look at JScrollBar it has a method to add an AdjustmentListener... this would be an object that listens for any adjustments made to the JScrollBar object and then do something in response...
    void      addAdjustmentListener(AdjustmentListener l)
              Adds an AdjustmentListener.so if you look at the API for java.awt.event.AdjustmentListener interface, the listening class only need to implement one method...
    void      adjustmentValueChanged(AdjustmentEvent e) now if you look at java.awt.event.AdjustmentEvent, there is a method to get the value from the adjustment event that occurred...
    int      getValue()
              Returns the current value in the adjustment event.and JScrollBar has a method that allows us to set it's current value ( for scroll position )...
    void      setValue(int value)
              Sets the scrollbar's value.so we add the logic that gets the adjustment value from the AdjustmentEvent from one of the JScrollBars and set the others value...
    so in the example, the ScrollingDemo class is the AdjustmentListener and has the method below...
           public void adjustmentValueChanged(AdjustmentEvent adje){
                  if ( adje.getSource() == sBar1 ){
                       sBar2.setValue(adje.getValue());
                  }else if ( adje.getSource() == sBar2 ){
                       sBar1.setValue(adje.getValue());
           }and of course, now that we have all the parts done, we simple just add the AdjustmentListener to our JScrollBars...
    sBar1.addAdjustmentListener(this);and we are basically done...
    here the full example code...
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class ScrollingDemo extends JFrame implements AdjustmentListener{ // to implement AdjustmentListener interface
           private JTable jt1,jt2;
           private JScrollPane scrPane1,scrPane2;
           private JTabbedPane tabPane;
           private JScrollBar sBar1,sBar2; // to hold our JScrollBar objects
           public ScrollingDemo(String title){
                  super(title);
                  setDefaultCloseOperation(EXIT_ON_CLOSE);
                  jt1 = makeTable("table1");
                  jt1.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
                  jt1.setPreferredScrollableViewportSize(new Dimension(300,300));
                  jt2 = makeTable("table2");
                  jt2.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
                  jt2.setPreferredScrollableViewportSize(new Dimension(300,300));
                  scrPane1 = new JScrollPane(jt1);
                  sBar1 = scrPane1.getHorizontalScrollBar(); // getting the first JScrollBar...
                  sBar1.addAdjustmentListener(this); // adding the AdjustmentListner which is "this" object
                  scrPane2 = new JScrollPane(jt2);
                  sBar2 = scrPane2.getHorizontalScrollBar(); // getting the second one...
                  sBar2.addAdjustmentListener(this); // and adding a listener to it also...
                  tabPane = new JTabbedPane();
                  tabPane.addTab("Panel 1",scrPane1);
                  tabPane.addTab("Panel 2",scrPane2);
                  add(tabPane);
                  pack();
                  setVisible(true);
           private JTable makeTable(String data){
                 String [][] stringArray = new String[50][50];
                 String [] col = new String [50];
                 for (int i = 0; i < stringArray.length; i ++ ){
                     col[i] = "Col " + i;
                     for (int j = 0; j < stringArray[0].length; j++ ){
                         stringArray[i][j]= data + " "+ i+ "." + j;
                 return new JTable(stringArray,col);
           // the method we have to implement for the AdjustmentListener interface...
           public void adjustmentValueChanged(AdjustmentEvent adje){
                  if ( adje.getSource() == sBar1 ){ //  checking to see which bar it is...
                       sBar2.setValue(adje.getValue()); // and move the other...
                  }else if ( adje.getSource() == sBar2 ){  // blah... blah...
                       sBar1.setValue(adje.getValue()); // blah... bhal...
           public static void main ( String [] x ) {
                  new ScrollingDemo("ScrollingDemo");
    }hope this helps... :D
    - MaxxDmg...
    - " He who never sleeps... "

  • How to join two lists and display the results in datasheet view.?

    hello,
    i have two lists that i would like to join, i know a method that has been described  in the link below
    http://www.codeproject.com/Articles/194252/How-to-Link-Two-Lists-and-Create-a-Combined-Ciew-i
    however, here the data view is only limited to 30 rows and my resultant list is huge. I would like to know if there is a possibility to view the resultant list in a data sheet view ?

    I don't believe you can use the OOTB Datasheet view when joining lists. However, you should be able to increase your limit from 30 items to as many as you need (that doesn't trip the threshold set in Central Admin).
    Dimitri Ayrapetov (MCSE: SharePoint)

  • How to join quicktime movie fragments from the terminal?

    Hello All,
    I am looking for a way to join/concat .mov files into a single .mov file. We are currently using Quicktime Player to do this, but I am looking for a way to run the from a terminal in a script.(not AppleScript) How can I do this? Or if the easiest way to do this is with a short AppleScript/Droplet, how can I call that from a terminal and pass in the file list to concat?
    Thanks

    Freeware MPEG Streamclip (http://www.squared5.com/) includes an easy-to-use batch join utility. It's not run in Terminal, of course, but it's simple.

  • I create a new document A4 landscape @ 300ppi, but, when I look at the ruler it has the document at only 842px wide.

    Yes, so, as I was saying... for example when I place a 300ppi jpg into my new document it's huge, like almost 5 times the size of my document.  Is this something to do with some kind of default setting to design at 72ppi to save on memory? In photoshop my jpg looks a normal size on an A4 300ppi canvas, so why does it look so big in illustrator?

    klashnek,
    Illy is in the habit of showing images at 72PPI, but you can just scale it down by multiplying the W or H value by 0.24 (just add *.24) and Ctrl/CmdEnter to retain proportions.
    That will resize it to 300 PPI.
    As to your question, some would just say that Illy moves in mysterious ways.

  • How to create form or tabbed template and import excel data

    Hi there
    I am wanting to know how I can create a rather comprehensive template that will be copied a number of times on the same page but each time will include different data from an excel spreadsheet.
    The template will need to include quite a bit of layout and placement of text and images. The fields range from data type including names, phone number, email, prices, description and address.  See attached image below of what I am wanting to acheive.
    I'm just not quite sure how to set this up as a form/template in indesign and what the best and fastest way would be.
    There will be about 6-8 blocks to a page.
    Any ideas would greatly be appreciated.
    Thanks

    You need Data Merge
    OPENS VIDEO
    http://www.theindesigner.com/podcasts/tid43_theindesigner_43.mp4
    http://www.theindesigner.com/blog/episode-43-data-merge-video

Maybe you are looking for

  • Adobe Air Installation Error in Windows 8 64bit

    Tried Installing different version including 3.8, it exits giving the below error Unable to install Adobe Air Error screen shot Log file details [2013-05-27:10:02:31] Application Installer begin with version 3.7.0.1530 on Windows 8 x86 [2013-05-27:10

  • I can home share to Apple TV via ethernet but not wireless.  Please help!!

    This has been driving me mad for a week now. I have an acer Laptop using windows vista. When I connect the Ethernet cable to my rout and laptop, home sharing works fine. But as soon as I disconnect and go wireless, Apple TV cannot find my library. My

  • Preview has trouble new pdf file

    I have never had problems with Preview and PDF's, but today I tried to open a PDF file I downloaded and it opens but some of the pages are not displaying right. I downloaded it again and the same thing happens. If I open it with Adobe Reader 9.0 it d

  • Trouble using Safari on start-up with pop-up error

    Hi, I'm having trouble using Safari. Every time I open up the application, a small screen popped up saying "Error- Failed to load the FastBrowserSearchPlugin plugin.* -[BrowserWindowController currentWebView]: unrecognized selector sent to instance 0

  • FRM 40350: Query Caused no records to be retrieved in INVTVTXN

    Dear All, When Trying to View the Material Distributions for the Transaction Type Sales Order Issue. I am unable to get the accounting entries for the Transaction. On selecting the form the error shows : FRM 40350: Query Caused no records to be retri