Tricky problem

I am facing some peculiar problem here, see if anyone can help. It goes like
this.
Suppose we have 2 dimensions Product and City and the fact is Response count
from prospect customers. During a market campaign i.e for a promotion (this
dimension i have not included in example.) a prospect may respond for more than
one product. We are not keep prospect as a dimension, as we are only interested
in the counts.
so the dimension table City is :
City_cd City_name
CAL CALCUTTA
VAR VARANASI
dimension Product table is:
prod_cd prod_name
A PRODA
B PRODB
the fact table is:
prod_cd city_cd Response_count
A CAL 100
B CAL 200
A VAR 50
B VAR 10
Now when you select both city and product in the query along with response then
there is no problem. But when you take only city and response
then the response count may not be
CAL 300
VAR 60
because some prospects may have opted for both products, so when you look
without the product the response should be (agg(response) - those who opted for
both). Now how to implement this in discoverer? We can see the SQL generated by
the Discoverer in user edition from View-> SQL Inspector. Can we over-ride that
through our own PL/SQL function? Does anyone know how? Please look into it.
regards,
Mayank

Have the Discoverer Administrator build a custom folder from the Admin edition. They will be able to build a new folder by writing any SQL command they wish. Good Luck!
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mayank Tiwari ([email protected]):
I am facing some peculiar problem here, see if anyone can help. It goes like
this.
Suppose we have 2 dimensions Product and City and the fact is Response count
from prospect customers. During a market campaign i.e for a promotion (this
dimension i have not included in example.) a prospect may respond for more than
one product. We are not keep prospect as a dimension, as we are only interested
in the counts.
so the dimension table City is :
City_cd City_name
CAL CALCUTTA
VAR VARANASI
dimension Product table is:
prod_cd prod_name
A PRODA
B PRODB
the fact table is:
prod_cd city_cd Response_count
A CAL 100
B CAL 200
A VAR 50
B VAR 10
Now when you select both city and product in the query along with response then
there is no problem. But when you take only city and response
then the response count may not be
CAL 300
VAR 60
because some prospects may have opted for both products, so when you look
without the product the response should be (agg(response) - those who opted for
both). Now how to implement this in discoverer? We can see the SQL generated by
the Discoverer in user edition from View-> SQL Inspector. Can we over-ride that
through our own PL/SQL function? Does anyone know how? Please look into it.
regards,
Mayank<HR></BLOCKQUOTE>
null

Similar Messages

  • Multi table insert and ....tricky problem

    I have three account related table
    --staging table where all raw records exist
    acc_event_stage
    (acc_id NUMBER(22) NOT NULL,
    event_code varchar2(50) NOT NULL,
    event_date date not null);
    --production table where valid record are moved from staging table
    acc_event
    (acc_id NUMBER(22) NOT NULL,
    event_code varchar2(50) NOT NULL,
    event_date date not null);
    --error records from staging are moved in here
    err_file
    (acc_id NUMBER(22) NOT NULL,
    error_code varchar2(50) NOT NULL);
    --summary records from production account table
    acc_event_summary
    (acc_id NUMBER(22) NOT NULL,
    event_date date NOT NULL,
    instance_flag char(1) not null);
    records in the staging table may look like this(I have put it in simple english for ease)
    open account A on June 12 8 am
    close account A on June 12 9 am
    open account A on June 12 11 am
    Rules
    Account cannot be closed if an open account doesnt exist
    account cannot be updated if an open account doesnt exist
    account cannot be opened if an open account already exist.
    Since I am using
    Insert all
    when open account record and account already exist
    into ...error table
    when close account record and open account doesnt exist
    into ...error table
    else
    into account_event table.
    select * from acc_event_stage order by ..
    wondering if the staging table has records like this
    open account A on June 12 8 am
    close account A on June 12 9 am
    open account A on June 12 11 am
    then how can I validate some of the records given the rule above.I can do the validation from existing records (before the staging table data arrived) without any problem.But the tricky part is the new records in the staging table.
    This can be easily achieved if I do cursor loop method,but doing a multi table insert looks like a problem
    any opinion.?
    thx
    m

    In short,in simple example,
    through multi table insert if I insert record in production account event table from
    staging account event table,making sure that the record doesnt exist in the production table.This will bomb if 2 open account exist in the current staging table.
    It will also bomb if an open account and then close account exist.
    etc.

  • Tricky problem. Opening RAW with Javascript. White balance problem.

    Hi all. Hopefully someone can help with this - its a tricky one.
    I've been using a javascript to send RAW and DNG files to Photoshop CS5 for automatic processing. The script opens the files directly into PS, apparently bypassing Adobe Camera Raw. It always renders the photos with the ACR default settings which can be set in either ACR on Lightroom. The standard Adobe settings are WB (As Shot), Brightness (+50), Contrast (+25).
    My problem is that it ignores any changes I have made to the RAW files in ACR. So if I want to use a custom white balance, its not possible to use the javascript. The script ignores the 'custom' white balance and resets it to 'As Shot'.
    I've tried changing the default values in ACR but the options are As Shot, or a set Kelvin preset such as Tungsten, Sunlight etc. Nothing helps.
    Is it possible for the script to be mindful of the custom adjustments - especially subtle changes to WB - that I have made in ACR?
    The script is below...
    var stacks = app.document.stacks;
    var stackCount = stacks.length;
    for(var s = 0;s<stackCount;s++){
          var stackFiles = getStackFiles( stacks[s] );
          if(stackFiles.length> 1){
               var bt = new BridgeTalk;
               bt.target = "photoshop";
               var myScript = ("var ftn = " + psRemote.toSource() + "; ftn("+stackFiles.toSource()+");");
               bt.body = myScript;
               bt.onResult = function( inBT ) {myReturnValue(inBT.body); }
               bt.send(500);
    function getStackFiles( stack ){
          var files = new Array();
          for( var f = 0; f<stack.thumbnails.length;f++){
               files.push(stack.thumbnails[f].spec);
          return files;
    function myReturnValue(str){
          res = str;
    function psRemote(stackFiles){
          var loadLayersFromScript = true;
          var strPresets = localize ("$$$/ApplicationPresetsFolder/Presets=Presets");
          var strScripts = localize ("$$$/PSBI/Automate/ImageProcessor/Photoshop/Scripts=Scripts");
          var strFile2Stack = "Load Files into Stack.jsx";
          var ipFilePath = app.path + "/" + strPresets + "/" + strScripts + "/" + strFile2Stack;
          var ipFile = new File (ipFilePath);
          $.evalFile( ipFile );
          loadLayers.intoStack(stackFiles);
          app.doAction ('My Action');
          var saveFile = new File('~/desktop/'+(new Date().getTime().toString())+'.psd');
          app.activeDocument.saveAs(saveFile);
          app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);

    Paul,
    this script do perfectly what i need... But unfortunately not in Bridge CS6 :-(
    I use Windows7 64 and CS6. When I run the script from the Extended Script Toolkit, everything works great.
    Then I saved the script in the Bridge folder "startup scripts". At the start of Bridge I get the following error message:
    "Error in C: \ Users \ ... \ AppData \ Roaming \ Adobe \ Bridge CS6 \ Startup
    Scripts \ Stack Batch.jsx
    Line 1: var = app.document.stacks stacks;
    undefined is not an object "
    Bridge and then starts the script is not enabled.
    Thanks for any help
    -kai

  • Line items are missing during transferring ITS to EBP--tricky problem

    Hi,
    We are using EBP 2.0 version.
    Some shopping carts line items are missing while transferring shopping cart data from ITS to EBP.
    This is happening randomly.we had checked all the shoppping cart related tables in EBP.
    For example in my shooping cart 4 items are there,during transferring shopping cart data from ITS to EBP all 4 items are updating for all the shopping cart related tables except account assignment table.
    In account assignment table for this particular shopping cart only 3 items are updated except first one.
    This is happening randomly for few of the shopping carts that too most of the cases first  item of  the shopping cart was not updating reqacct table(this is account assignment table for shooping cart items).
    I have debugged entire scenario,but i couldn't find the problem.
    any one could you please advise me....why this is happening?whether it is a version problem?
    Thanks,
    Ravi

    Hello Ravi,
    I guess you already checked OSS notes for this.
    Have you checked in the area of ITS ?
    When ITS sends data to EBP, only the actual screen data is sent:
    - item procurement data from basic data
    - item accounting data from accountig tab
    then this data is used to update the SC.
    If you have debugged those 2 screens, you should see what is happening.
    You say that only 3 reqacct lines are updated: does it means that you have the 4 lines previously created, or only 3 ?
    If you change one line item quantity, you should see this updating the reqacct. Same if you go directly in accounting tab.
    Finally, there are two options:
    - this is an ABAP error, so you should catch it in debug
    - this is an infrastrucute error (ITS is not sending the data), so you should get the data sent by ITS in debug mode
    Sometimes in productive environment with an heavy loaded ITS, you can loose some data. Available memory is not enough to fill in correctly ITS session containers.
    Rgds
    Christophe

  • Tricky problem: TM makes only one backup and then can't find disk anymore

    I had a problem with TM backups and erased the whole TC, because that solved a problem I had in the past.
    My iMac is connected via Ethernet. My notebooks via WLAN. BUT THIS PROBLEM OCCURS ON MY IMAC ONLY.
    Then:
    1) I defined new accounts.
    2) Next backups worked like perfect.
    3) The next back up not any more: Error message: "TM could not complete backup. The backup disk is not available"
    4) After resting the TC or rebooting the iMac I can make a backup, but the next fails again. The disk isn't visible in the TM preferences.
    5) Logs of the successful backup are:
    Starting standard backup
    Attempting to mount network destination using URL: afp://[email protected]/iMachaller
    Mounted network destination using URL: afp://[email protected]/iMachaller
    QUICKCHECK ONLY; FILESYSTEM CLEAN
    Disk image /Volumes/iMachaller/iMac Haller.sparsebundle mounted at: /Volumes/Time Machine Backups 1
    Backing up to: /Volumes/Time Machine Backups 1/Backups.backupdb
    No pre-backup thinning needed: 55.21 GB requested (including padding), 423.69 GB available
    Copied 23.6 GB of 45.6 GB, 34126 of 895334 items
    Copied 44.7 GB of 45.6 GB, 37338 of 895334 items
    Copied 37339 files (44.7 GB) from volume Macintosh HD.
    No pre-backup thinning needed: 1.00 GB requested (including padding), 364.82 GB available
    Copied 2692 files (212.3 MB) from volume Macintosh HD.
    Starting post-backup thinning
    No post-back up thinning needed: no expired backups exist
    Backup completed successfully.
    Ejected Time Machine disk image.
    Ejected Time Machine network volume.
    6) logs of the non successful logs:
    Starting standard backup
    Attempting to mount network destination using URL: afp://[email protected]/iMachaller
    NetAuthConnectToServerSync failed with error: 62 for url: afp://[email protected]/iMachaller
    Backup failed with error: 19
    Could somebody help please.
    Thank you

    Vista?
    Ooh boy.
    http://support.apple.com/kb/TS1538
    Good luck.

  • Tricky problem in JTable

    Hi there,
    I am trying to make a JTable display the keyText of all the keys pressed, meaning if I write an "A" I want it to be shown as " shift + a ". Now I'm not quite sure about the way to handle the focus and how to trigger of the action that makes the editing textField receive the focus. Currently, when the table is called for the first time or when I switch between the fields, no modifier or actionKey can be displayed until the first keyTypedEvent. E.g when I press the a-key I get to be shown an "a". After having done This I get "Aa" or, having pressed the shift-key, "shift" and then "AA". The keyListener is added to the textField and as new instance to the table as well. Can anybody tell me, how to modify myKeyListener to directly focus the textField or give me any idea for a different approach of this problem?
    Thanks in advance, Bjorn
    package com.brain.keymap;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class MyKeyListener implements KeyListener{
        public MyKeyListener() {
            super();
        public void keyTyped(KeyEvent e) {
        public void keyPressed(KeyEvent e) {
            boolean focus = false;
            Component c, editor;
            int keyCode = e.getKeyCode();
            c = (Component) e.getSource();
            if (c instanceof InputTable) {
                InputTable tbl = (InputTable) c;
                editor = tbl.getEditorComponent();
                if (editor instanceof JTextField) {
                    ((JTextField) editor).setText(KeyEvent.getKeyText(keyCode));
                    e.consume();
            }else {
                if( c instanceof JTextField){
                    ((JTextField) c).setText(KeyEvent.getKeyText(keyCode));
                    e.consume();
        public void keyReleased(KeyEvent e) {
    }

    Hey scheide,
    thanks, it was the tip about consuming the consuming the keyStroke that solved it. I simply had to consume the keyTypedEvent. Now It all works fine. Just in case you might want to have a look at it, here's the code.
    public class MyKeyListener implements KeyListener{
        String input = "", temp;
        public MyKeyListener() {
            super();
        public void keyTyped(KeyEvent e) {
            e.consume();
        public void keyPressed(KeyEvent e) {
            createInput(e);
        public void keyReleased(KeyEvent e) {
        public void createInput(KeyEvent e){
            Component c, editor = null;
            int keyCode = e.getKeyCode();
            //disable focusTraversal except for tab and enter
            if (!(keyCode == KeyEvent.VK_ENTER || keyCode == KeyEvent.VK_TAB)){
                try{
                    editor.setFocusTraversalKeysEnabled(false);
                }catch(NullPointerException ex){}
            c = (Component) e.getSource();
            if (c instanceof InputTable) {
                InputTable tbl = (InputTable) c;
                editor = tbl.getEditorComponent();
                //focussing the table in field [0/0] at first call of table
                if (editor == null) {
                    try{
                        int row = tbl.getSelectedRow();
                        int column = tbl.getSelectedColumn();
                        if( row == -1 )
                            row = 0;
                        if( column == -1)
                            column = 0;
                        tbl.editCellAt(row , column );
                        editor = tbl.getEditorComponent();
                    }catch(Exception ex){}
                if( editor instanceof JTextField && !(keyCode == KeyEvent.VK_TAB || keyCode == KeyEvent.VK_ENTER )){
                    if (input == ""){
                        input = (KeyEvent.getKeyText(keyCode));
                        ((JTextField) editor).setText(input);
                        temp = input;
                    }else{
                        input = input.concat(" + ").concat(KeyEvent.getKeyText(keyCode));
                        ((JTextField) editor).setText(input);
                        temp = input;
                //when editing the input call of method editFieldValue
            }else if( c instanceof JTextField){
                ((JTextField) c).setText(editFieldValue(temp, e));
            //clear the inputString in case of tab or enter
            if(keyCode == KeyEvent.VK_TAB || keyCode == KeyEvent.VK_ENTER ){
                input = "";
        public String editFieldValue(String val, KeyEvent event){
            int code;
            String value = val;
            code = event.getKeyCode();
            StringTokenizer tokenizer;
            switch(code){
                case KeyEvent.VK_BACK_SPACE:
                    int count = 0;
                    tokenizer = new StringTokenizer(value,"+");
                    value = "";
                    while ( count < tokenizer.countTokens()){
                        value = value.concat("+").concat(tokenizer.nextToken());
                        count++;
                    break;
            return value;
    }Now I am trying to design a way to edit the input when the JTextfield has the focus. I don't really think I am trying in the right spot, since both the JTable and the TextField get different instances of the KeyListener.
    I guess, I'll try and make a different Listener for the Textfield.
    One more time thanks a lot for your help, Bjorn

  • Three tricky problems

    This far I'm very happy with Archlinux. There's just these three things bugging me, I just can't seem to get it right on my own .
    1. First and most important is to get sound working, I installed oss with some help from the wiki without problems. But when it comes to configuring it, well that's another story . I have 5:1 speakers and using the soundcard from my graphics card (geforce 8600). I've played around in ossxmix and eventually got sound from all speakers. BUT with alot of static and only with my headphones plugged in (if I unplug them I get a really high pitch noise which was nearly enough to blow my eardrums, I was holding a speaker next to my ear, mind you ). I also can't get it to autostart, haven't really tried yet though.
    2. Mimetypes aren't recognized, I've the right packages installed (I think), I'm really clueless on this one. [SOLVED]
    3. This is probably the easiest one: After starting the computer I don't get any internet-connection, however running "dhcpcd eth0" helps. How do I get it running normally? [SOLVED]
    Thanks in advance
    Last edited by AntonPetts (2008-06-30 21:17:06)

    SamC wrote:
    For the third, you need to set up the relevant section in /etc/rc.conf. This should work:
    eth0="dhcp"
    INTERFACES=(eth0)
    Of course, use that to replace whatever is there now.
    To get OSS to autostart, put oss-linux-free in the daemons line of rc.conf.
    I knew it would be something that simple
    For the mime types problem, I found this in the wiki:
    http://wiki.archlinux.org/index.php/Cha … n_via_MIME
    Hope that helps.
    Not sure which part of that did it (I'd guess it was the last command) but it works now , thanks!
    Just the sound left now, I've reset the settings (i.e. no sound at all) and I'm starting from scratch.
    output of ossinfo:
    Number of audio devices: 6
    Number of audio engines: 10
    Number of mixer devices: 1
    Device objects
    0: osscore0 OSS core services
    1: hdaudio0 nVidia HD Audio interrupts=1136869 (1136869)
    HD Audio controller nVidia HD Audio
    Vendor ID 0x10de055c
    Subvendor ID 0x10438290
    Codec 0: ALC662 (0x10ec0662/0x10438290)
    2: ossusb0 USB audio core services
    Mixer devices
    0: High Definition Audio ALC662 (Mixer 0 of device object 1)
    Audio devices
    HD Audio play front /dev/oss/hdaudio0/pcm0 (device index 0)
    HD Audio play rear /dev/oss/hdaudio0/pcm1 (device index 1)
    HD Audio play center/LFE /dev/oss/hdaudio0/pcm2 (device index 2)
    HD Audio play spdif-out /dev/oss/hdaudio0/spdout0 (device index 3)
    HD Audio rec mix /dev/oss/hdaudio0/pcmin0 (device index 4)
    HD Audio rec mix /dev/oss/hdaudio0/pcmin1 (device index 5)
    output of osstest:
    Sound subsystem and version: OSS 4.0 (b1016/200806292145) (0x00040003)
    Platform: Linux/x86_64 2.6.25-ARCH #1 SMP PREEMPT Sat Jun 14 17:44:19 CEST 2008
    *** Scanning sound adapter #-1 ***
    /dev/oss/hdaudio0/pcm0 (audio engine 0): HD Audio play front
    - Performing audio playback test...
    <left> OK <right> OK <stereo> OK <measured srate 47963.00 Hz (-0.08%)>
    /dev/oss/hdaudio0/pcm1 (audio engine 1): HD Audio play rear
    - Performing audio playback test...
    <left> OK <right> OK <stereo> OK <measured srate 47963.00 Hz (-0.08%)>
    /dev/oss/hdaudio0/pcm2 (audio engine 2): HD Audio play center/LFE
    - Performing audio playback test...
    <left> OK <right> OK <stereo> OK <measured srate 47963.00 Hz (-0.08%)>
    /dev/oss/hdaudio0/spdout0 (audio engine 3): HD Audio play spdif-out
    - Performing audio playback test...
    <left> OK <right> OK <stereo> OK <measured srate 47966.00 Hz (-0.07%)>
    /dev/oss/hdaudio0/pcmin0 (audio engine 4): HD Audio rec mix
    - Skipping input only device
    /dev/oss/hdaudio0/pcmin1 (audio engine 5): HD Audio rec mix
    - Skipping input only device
    *** All tests completed OK ***
    ossdetect -v
    Detected Nvidia High Definition Audio (MCP67)
    Detected Generic USB audio device (BETA)
    Last edited by AntonPetts (2008-06-30 20:32:49)

  • Tricky problem-any solutions???

    Our project is its final stages, but our client has requested for migrating to DB2 DB. The problem with DB2 is that it has only one connection. Bcause of this when i click on submit repeatedly..the system hangs. What is happening is the first connection is in process and comes in the second connection... and the process hangs.
    What i tried doing is made my connection a global static object. And when ever a connection is needed, before returning a new connection,i check for any existing connection and if it is not null, i make it null and close the connection. But when click many times and if the system is slow it is still happenning.
    By the way i am using j2ee1.3 and tomcat 4.1.
    Is there any method in j2ee to know if the request has completed its process or something like that???.
    Any suggestions how to deal with this prob.
    Your help is most needed..
    Thanks

    Sorry i think you got me wrong.
    Let me explain it clearly
    Currently we are migrating from db2 to db2e.
    db2e allows only one database connection.(limitation of db2e)
    ie i have to close the current connection object before
    getting the new Connection object.
    I have many links on my home page where every link
    needs the connection object to do some database operations.
    As i can have only one database connection, when i click
    on the links repeatedly or when i play around with the links,
    i get exceptions saying that i cannot have more than one connection
    and results in a blank page or error page.
    Currently my application has to handle this situation,
    ie even if the user clicks continuosly on all the links or plays
    around with the links it has take the last request into account
    and display accordingly
    I have a databaseConnection class which returns me a Connection object
    To achieve the above funtionality i tried making the Connection object as static, so whenever i call the function to get the Connection object i check whether the current connection object is open or is not null.
    if it is open i close and make it null and return the new connection object.
    This seems to be working to some extent but not stable.
    Iam not sure how does the server process when many requests are made and only one connection object is available at any point of the time.
    Iam not sure how to get it working and stable.
    One more solution i can think of is to declare a global variable
    which tells us whether a request has been made.depending on this
    variable i can restrict the user by clicking on the links reapeatedly.
    but this is very tedious and also i have a time constraint.
    any advice
    I hope you understand my problem.
    tks in advance

  • CHALLENGE! very tricky problem

    This has me and an IT Pro completely baffled.
    We have a Xserve G5 2.3 which hold all our user home folders (500GB)
    We also have a Xserve RAID which holds all our files (14 x 400GB RAID 5)
    All Macs are on a brand new Gigabit Switch.
    The problem is on some of our Macs, dragging a file ( test file is 100mb) takes 5 seconds as expected, but on 3 Macs the same file takes around 2 minutes.
    The macs that are transfering slow are G4 dual 1Ghz, and 2 G5 1.8Ghz
    First I ruled out it being a problem with the user account
    Rob usually logs into the G4 dual, and is transfering test file in 2 mins.
    If Rob logs into another Mac it transfers in 5 secs. If any other user logs into the G4 dual they drop to 2 mins on the test file.
    Next I ruled out it being a System Software problem
    I made a clone of a fast Mac and restored it onto the G4 Dual, still tranfered at 2 mins, So I tried a full re-install from the original CD, still two minutes.
    Then I ruled out a Network/Hardware problem
    I tried logging into the G4 Dual as a local user, and this time the file transfered in 5 seconds.
    also tried forcing to gigabit and full duplex as well as automatic, tried a different switch, and it also isn't a cable issue because we have just moved to a new office with brand new cabling and it is the same result as the old office.
    I have also re-bound these macs to the server, and tried binding manually as well as via DHCP.
    Any Ideas will be gratefully received!

    while copying this file, have you checked the system logs?
    since it takes a long time to complete the finder copy, i'm wondering if maybe there's something wrong with the finder itself. if so, there may be errors in the logs.
    it's a long shot, but it may help to check the logs.
    if there are any finder errors, try re-running the 10.4.7 combo updater and test again.
    i'm just guessing here, since i've never experienced what you have here.
    anyone else have any ideas?

  • Really Tricky problem ! Plz Help !!!

    In my application, i'm checking for the existence of particular id in the database. Where i'm checking it further for the existence of particular Project Against it(Each Record had 6 values of Project Id's linked to it.) The query i'm throwing is:-
    String strSql="Select * from empdaily where ";
         strSql=strSql + " eid='" + s1 + "' and " + "date='" + d1 + "'and (pid1='"+s2+"' or pid2='"+s2+"' or pid3='"+s2+"' or pid4='"+s2+"' or pid5='"+s2+"' or pid6='"+s2+"' ) " ;
    But the problem is..how to catch the particular pid..like whether it's pid1/pid/pid3....or so....since i've to display only that pid whose value is equal to s2.
    Plz help.

    Are you trying to determine the pid value that s2 equals or are you trying to determine the particular pid column that equals s2?
    If you want the pid value, then brumalis had it right. Namely just display s2, otherwise if you want the pid column e.g whether it was pid1, pid2 etc, then the best method that is generic is to use the union query approach, and place a static field in each query select statement e.g
    strsql = "SELECT *, 'pid1' FROM empdaily WHERE ";
    strsql = strsql + "eid=" + s1 + " And date=" + d1;
    strsql = strsql + " And pid1=" + s2
    strsql = strsql + "UNION SELECT *, 'pid2' FROM empdaily WHERE ";
    strsql = strsql + "eid=" + s1 + " And date=" + d1;
    strsql = strsql + " And pid2=" + s2
    strsql = .......................... and so on until pid6
    Obviously you'd change 'pid1' etc to something you require, such as a simple column index or something.
    Either way I agree there must be a better data structure than what you are using, like a child table with a pid and pidtype or something similar. And as for not wanting to change.... well odds are it'll come back to bite one day ;)

  • A Tricky Problem...

    Ok Here's the setup,
    1 - Apple iMac G5 (iSight) 10.4.3 Build 8F46
    1 - Apple Powerbook 17" 10.4.3 Build 8F46
    1- Dell PC Windows Xp (SP2)
    1- Netgear Router DG834G
    All Computer's Are Wireless
    All The Computer's can connect to the internet through the router no problem, The Macs can all talk to each other. The PC and the powerbook used to be able to talk but can't now (Can't think of anything that we changed) I go to browse for computers on the mac and pc, The PC can't find any computers, The Macs can only find the other macs. Windows Sharing is turned on, I've tried a direct connect from each machine. the iMac and PC both have a shared folder for use. All The computers are in the same network "Netgeear" Have tried conneting directly but i get an erroe -36, tried the solution of typing the giberish into the terminal, didn't work. I've tried adding a network place on the PC, but it couldn't find the mac with the correct address put in.
    The router is turned off at night. and so are all the machines, so they have plenty of time to restart. IP address of PC 192.168.0.5, MAC: 192.168.0.4 .I Know that when connecting to PC's from mac to use SMB. The Firewalll on the Mac is off and there is no other firewall, The PC has ZoneAlarm Security Suite, trusted zone setting turned off, Disabled the whole suit, and still the pc and mac couldn't find each other.
    I have no idea what else to do, Any Ideas?
    Cheers n Thanks

    For example, if I have already stored the theorem that
    (((p=>q)&(~p=>q))=>q), how could I determine if a similar assertion
    matched that pattern, just given different values for p & q? Is there a
    way to do this sort of pattern matching?Rewrite both expression to their corresponding 'disjunctive normal form'.
    i.e. keep on rewriting (sub) expressions:
    (x=>y) --> ~x | y
    ~(x&y) --> ~x | ~y
    ~(x|y) --> ~x&~y
    ~~x --> x
    where x and y are arbitrary sub expressions. If none of the rules above
    apply anymore, your expression is in disjunctive normal form.
    If both expressions P and Q have the same normal form, they're equivalent
    given a mapping from P's atomic expressions to Q's atomic expressions.
    kind regards,
    Jos

  • Some tricky problems

    I seem to be having a few problems with my flash game.
    Unfortunately the problems are a bit too complex to explain here. I
    was wondering if I could get someone to take a look at my flash
    files and help me figure out what's going wrong.

    Has anyone been able to take a look at my flash files? Maybe
    I can try to explain the second problem in more detail (for the
    first I think you really need to take a look at the coding I've
    used in the flash files and see if I've done something wrong). I
    have three flash files, two of them load into the third with the
    loadMovieNum action. I've got a variable called _global.health in
    the main flash file that links to a dynamic text box in each of the
    other two flash files. I've got a MC that has the code I've
    included below. Basically when the player MC comes into contact
    with the healing MC, and the _global.health variable is below 10,
    then the _global.health variable is suppposed to increase back to
    10. The problem is that the dynamic text doesn't register the
    increase until the movie changes to a different scene or a
    different movie. How do I get it to register the change
    immediately?.

  • Tricky problem in Bex report

    Hi, experts,
        In our Bex reports, If I set the figure format(scaling and decimal) with "change query (local view ..)", then customized layout(add drill down, keep filter ..). It's works fine.
        But, If I do customized layout firstly, then go to "change query (local view ..)", the format change can not work any more   It's so strange, just cause different sequence.
        Some end user will follow wrong sequence, how can I explain this. is it bug in BW?
    Thanks in advance.

    my Version is: 3.50   patch level  3020.10.618
    For example,
    column is Act, Plan
    Row is company
    free characteristic is profit center.
    if you position on "ACT" and right click mouse and select "filter and drilldown according to" -- "Profit center"
    then open the "change query (local view)" , you will see Act located on "free characteristic". in this case, I can not set the scaling factor for "ACT"

  • Urgent Tricky problem... I challenge you all....

    I'm working on a very cool freeware Java text editor, that is working beautifully, except for the code used to change the color of reserved words, etc, on the fly...
    At the moment, I use a documentlistener. When text is inserted, I need to color some of that text automatically. However, when I try to call setCharacterAttributes in DefaultStyledDocument, it causes a runtime exception, Illegal State Exception (Attempt to mutate in notification)>
    I understand how this exception is caused, but how do I get around it?

    Hi,
    You'll need to modify the color after your DocumentListener event handling is finished.
    SwingUtilities.invokeLater( new Runnable() {
      public void run() {
        //setCharacterAttributes ...
    });Then the change is done when the document is no longer locked.
    Hope this helps,
    Kurt.

  • I need help whit this tricky problem:)

    Hi guys!
    I'm working with a webshop where i receive a tons of pictures from another company. Unfortunately they send me other pictures what i don't need. So i made a list from the files (like a list.txt) what i don't need and i want to write a script to move these files to another folder. How should i do this?
    Thx for your help!

    Prefi wrote:
    So i made a list from the files (like a list.txt) what i don't need and i want to write a script to move these files to another folder.
    So far I believe you have a bunch of photos (in a folder?) and you want to take specifically titled photos and move them to another folder?
    Alright so you have a folder that as an example contains:
    hello.jpeg
    welcome.jpeg
    goodbye.jpeg
    yes.jpeg
    no.jpeg
    Now you want to move welcome.jpeg and goodbye.jpeg to a new folder?
    Is this along the lines of what you want to do?

Maybe you are looking for

  • How to get How do I get my Vista PC to See my Photosmart 5515 Printer via my wireless network

    I have recently purchased a Photosmart 5515 (B111h) printer and have followed the setup instructions to the letter. The printer is now connected to the wireless network with an IP address of 192.168.0.4. Nomatter what I try I cannot get my PC or lapt

  • Runtime Error R6034 blocking my access to Itunes any ideas on how to fix it

    Hi I got a notice to update my Itunes yesterday and after confiriming the dowload I got an error as listed above. I could not access my Itunes and the error keeps showing when I restart my pc. So far I have uninstalled all Apple programmes and tried

  • CD drive no longer available after installing iTunes

    I have windows XP. Once iTunes has been installed, the CD-Rom drives cease to be available in the windows explorer. I'm not desperate to run iTunes, that wonderful software. X X X Nadine

  • Bug in Illustrator CS6 pattern options palet

    I found out that it was not possible to create a patern swatch with a single copy of 1x1. The preview window kept showing at least a 3x3 version and if you drag the swatch from your swatches pallet it copies 3x3 swatch. Does any one else experienced

  • Tables in ESS iView

    In ESS, there are tables in a lot of iView. In webDynpro , normally these tables are just a element defined as table/grid without anything shown in layout. I wonder where the layout, columns and datas are defined and retrieved, can anyone give me a d