Trying to add a Table and getting Error

I have another table that I need to add to my report that houses a field description in a user defined field. The table is :
Select * from User_defined_valdt_codes
where VALIDATED_TABLE_NAME = 'auth_master'
and VALIDATED_COLUMN_NAME = 'service_user_defined_1'
I am trying to add that field to my query but it is not working. What am I doing wrong. I updated my query and it doesn't Error Out but it doesn't return any data either. If the new table information is not there I get data back and I can pull the the data in the user_defined_valdt_codes table as well what am I doing wrong? Any help is truly appreciated!
Thanks!
SELECT
A1.auth_number,
A1.AUTH_TYPE,
A1.seq_memb_id,
A1.AUTH_TYPE,
a1.review_type,
A1.plan_code,
A1.OVERALL_STATUS,
          A1.CLOSED_REASON,
UVD.validated_column_name,
A1.DENIED_REASON,
Case
when A1.DENIED_REASON in ('HS001','HS002','HS003') then 'MED NECESS'
when A1.DENIED_REASON in ('HS004','HS005','HS006','HS007','HS008','HS013','HS014','HS016','HS017','HS019','HS020') then 'Admin Denial'
when A1.DENIED_REASON is NUll and ap.advisor_decision = 'AAPPR' then 'Approved'
else 'Unknown'
end DENIED,
To_Char(a1.admit_primary_date,'mm/dd/yy') As "Prim_Admit_Date",
A1.service_admit_type AS "IP ADMIT TYPE",
A1.service_user_defined_1 AS "OP Serv Type",
To_Char (AP.contact_date,'mm/dd/yy') As "Contact_Date",
     To_Char (AP.decision_date,'mm/dd/yy') As "Decision_Date",
ap.recommendation_code,
A1.PLACE_OF_SERVICE,      
     AP.ADVISOR_DECISION,
PM.LAST_NAME,
TO_CHAR (A1.insert_datetime,'MONTH-YY')AS "Month",
     MV.LINE_OF_BUSINESS
FROM Windsoradm.auth_master a1
INNER JOIN Windsoradm.auth_phys_advisor ap
ON a1.auth_number=ap.auth_number
INNER JOIN windsoradm.prov_master pm
ON ap.seq_prov_id=pm.seq_prov_id
LEFT JOIN windsoradm.note_master nm
ON nm.seq_memb_id=a1.seq_memb_id
AND NM.NOTE_TYPE='PHA'
INNER JOIN windsoradm.member_mv mv
ON mv.seq_memb_id=a1.seq_memb_id
INNER JOIN windsoradm.user_defined_valdt_codes UVD
ON A1.service_user_defined_1=UVD.VALIDATED_COLUMN_NAME
Where mv.Line_of_Business <>'SFS'
AND UVD.VALIDATED_TABLE_NAME = 'auth_master'
and UVD.VALIDATED_COLUMN_NAME = 'service_user_defined_1'
/*AND A1.PLACE_OF_SERVICE IN ('11','21','22','24')*/
/*AND a1.active_physician_advisor = 'Y'*/
/*AND (a1.closed_reason ='A06' OR a1.closed_reason is Null)*/
/*AND A1.AUTH_NUMBER='415712'*/
AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/30/2012','MM/DD/YYYY')
ORDER BY 1
Edited by: 925518 on Jun 4, 2012 9:25 AM

I got it to work this way I was putting in a wrong field that was not returning data now it works. Yay!!!!!
SELECT
A1.auth_number,
A1.AUTH_TYPE,
A1.seq_memb_id,
     A1.AUTH_TYPE,
a1.review_type,
A1.plan_code,
A1.OVERALL_STATUS,
          A1.CLOSED_REASON,
A1.DENIED_REASON,
Case
when A1.DENIED_REASON in ('HS001','HS002','HS003') then 'MED NECESS'
when A1.DENIED_REASON in ('HS004','HS005','HS006','HS007','HS008','HS013','HS014','HS016','HS017','HS019','HS020') then 'Admin Denial'
when A1.DENIED_REASON is NUll and ap.advisor_decision = 'AAPPR' then 'Approved'
else 'Unknown'
end DENIED,
To_Char(a1.admit_primary_date,'mm/dd/yy') As "Prim_Admit_Date",
A1.service_admit_type AS "IP ADMIT TYPE",
A1.service_user_defined_1 AS "OP Serv Type",
UVD.user_valid_code_long_desc as "OP_Type_Desc",
To_Char (AP.contact_date,'mm/dd/yy') As "Contact_Date",
     To_Char (AP.decision_date,'mm/dd/yy') As "Decision_Date",
ap.recommendation_code,
A1.PLACE_OF_SERVICE,      
     AP.ADVISOR_DECISION,
PM.LAST_NAME,
TO_CHAR (A1.insert_datetime,'MONTH-YY')AS "Month",
     MV.LINE_OF_BUSINESS
FROM Windsoradm.auth_master a1
INNER JOIN Windsoradm.auth_phys_advisor ap
ON a1.auth_number=ap.auth_number
INNER JOIN windsoradm.prov_master pm
ON ap.seq_prov_id=pm.seq_prov_id
LEFT JOIN windsoradm.note_master nm
ON nm.seq_memb_id=a1.seq_memb_id
AND NM.NOTE_TYPE='PHA'
INNER JOIN windsoradm.member_mv mv
ON mv.seq_memb_id=a1.seq_memb_id
INNER JOIN windsoradm.user_defined_valdt_codes UVD
ON A1.service_user_defined_1=UVD.user_valid_code
AND UVD.VALIDATED_TABLE_NAME = 'auth_master'
AND UVD.VALIDATED_COLUMN_NAME = 'service_user_defined_1'
Where mv.Line_of_Business <>'SFS'
/*AND A1.PLACE_OF_SERVICE IN ('11','21','22','24')*/
/*AND a1.active_physician_advisor = 'Y'*/
/*AND (a1.closed_reason ='A06' OR a1.closed_reason is Null)*/
/*AND A1.AUTH_NUMBER='415712'*/
AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/30/2012','MM/DD/YYYY')
ORDER BY 1

Similar Messages

  • Trying to insert a table and getting a "While executing objectTag in Table.htm, a JavaScript error o

    trying to insert a table and getting a "While executing objectTag in Table.htm, a JavaScript error occurred." message appears.  how do I fix this?

    Try this Technote
    http://kb2.adobe.com/cps/405/kb405604.html
    Try step 4 here
    http://kb2.adobe.com/cps/405/kb405604.html#main_dat

  • Itunes was working fine. Tries to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue.

    Itunes was working fine. Tried to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue. Program still works, simply cannor upgrade.

    Thanks b noir,
    I tried this solution without success. After FixIt ran and didn't find a problem, either in looking for issues with "software upgrade" or "iTunes" it kindly offered to help me uninstall iTunes. I had thought of this as a possibilty but it seems to me that if you do that you lose a lot of "non-native-to-Apple" information you might have entered. I did this once and recovery was painfull. Is there a way to uninstall iTunes without losing all of that sort of thing? Any help would be appreciated.

  • I previously downloaded the AI 30 day trial but was able to use it before the trial ran out I've since deleted it from my laptop (Windows 7 64 bit OS) How do I get it back? Trying to download AI again and getting error code 3 some thing to do with adminis

    I previously downloaded the AI 30 day trial but was able to use it before the trial ran out I've since deleted it from my laptop (Windows 7 64 bit OS) How do I get it back? Trying to download AI again and getting error code 3 some thing to do with administration permissions?

    If your intention is to use the trial again it will not reset if you reinstall.  It will remain in its ran out state.

  • Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden.

    Trying to register with ePrint and getting error code.Ajax submit failed: error = 403, Forbidden. I need help??

    To bypass this error attempt either a restart of your computer, or use an alernate broser such as firefox or chrome. If you already have another browser the latter may be the easier fix.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • Trying to install windows 7 and getting error message windows must be installed to a partition formatted as NTFS

    Trying to install windows 7 and getting error message Windows must be installed to a partition formatted as NTFS

    Welcome to Apple Support Communities
    Boot Camp Assistant creates a Windows partition in FAT32 to make the Windows XP installation easier.
    The problem is that Windows Vista, 7 and 8 require a NTFS partition, so the Windows installer gives this error. The only thing you have to do is to choose the BOOTCAMP partition in the installer and go to “Drive options (advanced)” > Format. Finally, install it

  • Trying to put quickbooks 2014 and getting error 36

    trying to put quickbooks 2014 and getting error 36

    To bypass this error attempt either a restart of your computer, or use an alernate broser such as firefox or chrome. If you already have another browser the latter may be the easier fix.
    Jon-W
    I work on behalf of HP
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    Click the KUDOS STAR on the left to say “Thanks” for helping!

  • Trying to burn a cd and getting error message 4260  help?

    I am trying to burn a cd in ITunes and getting error message 4260   help please

    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

  • Trying to add four columns and getting HTTP-404 error

    Hi,
    I am trying to add 4 dropdowns in an form, but I am getting HTTP-404 error if i insert values in to those 4 dropdowns. Please guide me how to proceed with this.
    Regards,
    Pallavi

    I got it to work this way I was putting in a wrong field that was not returning data now it works. Yay!!!!!
    SELECT
    A1.auth_number,
    A1.AUTH_TYPE,
    A1.seq_memb_id,
         A1.AUTH_TYPE,
    a1.review_type,
    A1.plan_code,
    A1.OVERALL_STATUS,
              A1.CLOSED_REASON,
    A1.DENIED_REASON,
    Case
    when A1.DENIED_REASON in ('HS001','HS002','HS003') then 'MED NECESS'
    when A1.DENIED_REASON in ('HS004','HS005','HS006','HS007','HS008','HS013','HS014','HS016','HS017','HS019','HS020') then 'Admin Denial'
    when A1.DENIED_REASON is NUll and ap.advisor_decision = 'AAPPR' then 'Approved'
    else 'Unknown'
    end DENIED,
    To_Char(a1.admit_primary_date,'mm/dd/yy') As "Prim_Admit_Date",
    A1.service_admit_type AS "IP ADMIT TYPE",
    A1.service_user_defined_1 AS "OP Serv Type",
    UVD.user_valid_code_long_desc as "OP_Type_Desc",
    To_Char (AP.contact_date,'mm/dd/yy') As "Contact_Date",
         To_Char (AP.decision_date,'mm/dd/yy') As "Decision_Date",
    ap.recommendation_code,
    A1.PLACE_OF_SERVICE,      
         AP.ADVISOR_DECISION,
    PM.LAST_NAME,
    TO_CHAR (A1.insert_datetime,'MONTH-YY')AS "Month",
         MV.LINE_OF_BUSINESS
    FROM Windsoradm.auth_master a1
    INNER JOIN Windsoradm.auth_phys_advisor ap
    ON a1.auth_number=ap.auth_number
    INNER JOIN windsoradm.prov_master pm
    ON ap.seq_prov_id=pm.seq_prov_id
    LEFT JOIN windsoradm.note_master nm
    ON nm.seq_memb_id=a1.seq_memb_id
    AND NM.NOTE_TYPE='PHA'
    INNER JOIN windsoradm.member_mv mv
    ON mv.seq_memb_id=a1.seq_memb_id
    INNER JOIN windsoradm.user_defined_valdt_codes UVD
    ON A1.service_user_defined_1=UVD.user_valid_code
    AND UVD.VALIDATED_TABLE_NAME = 'auth_master'
    AND UVD.VALIDATED_COLUMN_NAME = 'service_user_defined_1'
    Where mv.Line_of_Business <>'SFS'
    /*AND A1.PLACE_OF_SERVICE IN ('11','21','22','24')*/
    /*AND a1.active_physician_advisor = 'Y'*/
    /*AND (a1.closed_reason ='A06' OR a1.closed_reason is Null)*/
    /*AND A1.AUTH_NUMBER='415712'*/
    AND a1.insert_datetime Between To_Date ('04/01/2012', 'MM/DD/YYYY') and To_Date ('04/30/2012','MM/DD/YYYY')
    ORDER BY 1

  • I am trying to download iOS 5.1 on my iPhone and iPad. Both times it tries connecting to the software update server and just hangs there. I've tried doing both over wifi and get error message. What do I do?

    I cannot download the ios 5.1. I'v tried doing it through itunes after downloading the latest itunes. It says that my phone and ipad both have new updates and tries to coonect to update software server. That is where it hangs up and just keeps trying to connect but never does. Then when I try to update my devices over wifi, it tries and thens gives me a download failed message after a few minutes. What do I do?

    This has solved loads of people who have this issue and have used an alternate DNS setting.  Below are instructions for both iPhone OTA and on you Mac
    If you are getting the error message "Unable to check for update" when you try an OTA (over the air update)
    Change DNS Servers
    Settings -> Wi-Fi
    Click the blue arrow on your connected network
    Delete everything in DNS and replace it with 208.67.222.222, 208.67.220.220
    Try again
    If this works, you will probably want to remove the WiFi network using "Forget This Network" and then reconnect to it to get your original DNS servers back. Alternatively, make a note of the original DNS servers before deleting them and replace it after you are done.
    If you are getting the error message "Unable to check for update" when you try through iTunes
    On your Mac
    Choose Apple menu > System Preferences, and then click Network.
    Select the network connection service you want to use (such as Wi-Fi or Ethernet, unless you named it something else) from the list, and then click Advanced.
    Click DNS, and then click Add at the bottom of the DNS Servers list. Enter the IPv4 address for the DNS server.
    You can use OpenDNS
    208.67.222.222
    208.67.220.220
    or
    You can Google Public DNS if you want
    8.8.8.8
    8.8.4.4
    I have actually repointed my routers DNS so all my devices now point to OpenDNS servers

  • Trying to install Creative Cloud and get error a12e4 Mac

    Hi, ive been searching through the forums for days now and have followed all the steps i could find to try to rectify this issue.
    Ive tried installing adobe application manager but i get the same issue
    Ive ran the adobe cc cleaner but that doesnt seem to do much
    Ive tried installing via root user
    Ive tried renaming a lot of files such as 'oobe' but nothing seems to work
    Im using a 15'' Retina MBP 10.9.2
    Can someone please help
    Thanks
    Chris

    Help for Download & Install & Setup & Activation
    -Chat http://www.adobe.com/support/download-install/supportinfo/

  • I tried to upgrade PSe-13 and get Error Code: U44M1I210.  I restarted and had loaded Elements and Premier elements separately and got same error code for both.  Someone said to Remove and reinstall but has that worked for anyone??

    I tried customer support and got "not my job"

    Meowia for Error 201 please see Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html.  Error 213 indicates there was problem locating the update or an incorrect URL.  The troubleshooting steps are still the same as both errors are related to failure of the current network connection.

  • Trying to setup new ipod and get error -9808

    first do i need a new account for new ipod when i have one setup already. i'm trying to run 2 ipods the new one gives me error -9808 in store mode so i can not get new i pod to activate

    Hello nursedawgjess,
    Have you seen this article yet?
    http://support.apple.com/kb/TS2753
    B-rock

  • I have 12 brand new installs of 27" I-Macs, all running Adobe CC. I have several users trying to make simple saves and getting Error -108 Out of Memory errors.

    The Mac OS is 10.9.5.
    I've already gone into plug ins and Scratch disk preferences and changed the secondary  location to the user's hard drive, but this does not solve the problem.
    I cannot change the "primary " from Startup, but I did change the secondary to the user's ID instead of None.
    These are all brand new Macs in use no more than two weeks.

    Windows 7 includes DirectX 11 in its baseline and it is not necessary to install another version of it.  Your problems may be caused by the installation of the version of DirectX you installed.  Uninstall the one you installed and see if you
    still have the errors.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • I am running windows xp. Trying to download latest version of iTunes and get error message: Microsoft Visual C  Rundtime Library. Runtime Error. Program:C\ProgramFiles\iTunes\iTunes.exe. R6034 An appliction has made an attempt to load the C runtime librar

    I am running windows xp. Trying to download latest version of iTunes and get error message: Microsoft Visual C  Rundtime Library. Runtime Error. Program:C\ProgramFiles\iTunes\iTunes.exe. R6034 An appliction has made an attempt to load the C runtime library incorrectly. Please contact the appliction's support team for more information.
    2nd/ message: iTunes was not installed correctly. Please reinstall iTunes. Error 7(Windows error 1114)
    I have removed iTunes serveral time and tried to reinstall many times and get the same results noted above.
    Can anyone help me? Thank you. EFS1

    Hello DrJMDDC,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    1. Remove iTunes and related components from the Control Panel
    2. Verify iTunes and related components are completely uninstalled
    3. Reinstall iTunes and related components
    Best of luck,
    Mario

Maybe you are looking for

  • Please help me to understand what is the meaning of Acess point Channel utilization?

           please help me to understand what is the meaning of Acess point Channel utilization? If i want to mange the capacity of my Office Wi-Fi network what are the factor i need to monitor.

  • Photoshop CC quits right after opening.

    I was using the trial version until it expired. Now I registered to Photoshop World and I am supposed to get a free 1 year CC subscription, but I can't access Photoshop. The other apps, which I haven't used yet, only opent the trial version. As orien

  • Behaviour of wait()/notify()

    Until recently, I was sure that notify wakes up only waiting threads. This is proven by this program: class X extends Thread {     // Incomplete     final Object lock;     X(final Object lock) { this.lock = lock;  }     static void log(String msg){ S

  • HT2731 cannot login to itunes store through my itunes library.  getting an error message

    Need help!  I cannot access the itunes store through my itunes account and library.  I keep getting an error message, and computer automatically shuts down iitunes. 

  • IOS 5 Audiobook Problem

    Just updated to 5.0.1 and now my audiobooks do not play. If try to play the track, it immediately exits out into track menu. not sure if problem with ios 5 or itunes