How to get the data by excluding the columns which are having null values

I have a table with 10 columns , 3 columns are having all null values . I want to retrive the data by excluding these 3 columns. That means output table should contain only 7 columns .
Can u give a query on this?
Thanks,
Mahesh

select <list of column with not null values>
  from table_nameThat is you need to specify the column name.

Similar Messages

  • Insert data into the column which is having null values.

    Hi,
    I have a column called "Classification_CD" .This column is having NULL values.I want to insert the data into this column.
    I tried to write the query as follows. But it is showing the mesg error "SQL Error: ORA-01400 cannot insert NULL into ("ABC"."A_CMP_W"."A_CMP_SEQ_NUM")"
    Can any one please help me out to write query to insert the dat afor this.
    Thanks.

    I think you are taking about updating the null value.So you can do this..
    SQL> select * from table_a;
            ID SCHEDULED MARK                       PRID
             5 07-NOV-10 T05                           7
             6 18-SEP-10 T06                           8
             4 31-JAN-11 T02                           2
             1 18-JAN-11 T01                           2
             2 18-JAN-11 T02
             3 18-JAN-11 T03                           1
    6 rows selected.See that prid is Null for id 2
    SQL> update table_a
      2  set prid =10
      3  where id =2;
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL> select * from table_a;
            ID SCHEDULED MARK                       PRID
             5 07-NOV-10 T05                           7
             6 18-SEP-10 T06                           8
             4 31-JAN-11 T02                           2
             1 18-JAN-11 T01                           2
             2 18-JAN-11 T02                          10
             3 18-JAN-11 T03                           1
    6 rows selected.
    SQL> But remember while updating u should choose a primary key column in
    where condition so that only desired row or record is updated..
    Regards
    Umesh

  • How to get max date field in the query

    Hi,
    We uploads the data into the cube every week.
    Basically we are planning to put some ticker on the query. This ticker will show the user, upto which date the data is available in the cube.
    I want the query, which will show me only the maximum date (maximum 0calday) from the infocube in the report.
    This in turn, I will use in the ticker and make use of it.
    Can anyone please help in making this query.
    Thanks
    Ramesh Ganji

    if 0CALDAY is used as a characteristic then you have to convert that as a key figure using a replacement path variable.
    Please see the below link for changing 0CALDAY as a key figure using Replacement path
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    https://websmp106.sap-ag.de/~sapdownload/011000358700001963972003E/HowToCalcWithAttr.pdf
    Now you have to create an exception "Top N Rows" based on the replacement path variable created above.
    This will solve your problem.
    Regs
    Gopi.
    Award points if it helps ...

  • Comparing the Dates and Exclude the Dates with Blank one in BEx Query

    Hi all,
        I have created the Formula Variables ZFV_DATE1 on ZDATE1, ZFV_DATE2 on ZDATE2,
           Calculated KF ZCKF_Date with 'ZV_DATE1 <  ZV_DATE2' and
           Restricted KF ZRKF_DATE on Key Figure ZCKF_DATE & Characteristic ZDELETE = 'X' to find the Count.
    I should exclude if any ZDATE1 or ZDATE2 is Blank in the report. So I kept ZDATE1 & ZDATE2 with Exclude when it is Blank in Filter Section. It is excluding globally all Blank ZDATE1 & ZDATE2, but the Calculated KF logic 'ZV_DATE1 <  ZV_DATE2' is not working. It has 'ZV_DATE1 > ZV_DATE2' records also. Next I moved ZDATE1 & ZDATE2 to Restricted KF ZRKF_DATE to Exclude the Blank dates and the report doesn't show correct results. How could I get the correct results with 'ZV_DATE1 < ZV_DATE2' and any ZDATE1 or ZDATE2 is not Blank.
    Thanks,
    Venkat.

    In that case, you approach seems to be mor or less correct. Restrcit the report using Filters on ZDATE1 and ZDATE2 not equal to Blank. You have mentioned that you have defined the CKF as 'ZFV_DATE1 < ZFV_DATE2'. i am assuming you have used boolean operator here. In this case it would  result in '1' when the condition is true (i.e, when ZFVDATE2 is greater than ZFVDATE1), else it will result in a '0'. Now, in your report, you should create a condition where you only keep the records where this CKF, ZCKF_Date = 1. This would filter out all the ZCKF=0 records, and hence only thiose records with ZFV_DATE1 < ZFV_DATE2 would be shown.
    Regards,
    Satwik

  • How to get my data of my hp 2230s which freezes when AC is connected (battery can't be charged)

    Hi people!
    My laptop(HP 2230s) will only boot when AC is connected(battery is dead and will not charge when AC is connected and laptop not powered on)
    In bios the laptop has got no problems @ all but when windows vista starts to boot either save mode or not it freezes!
    The weird thing is than when i disconnect the AC for a while it continues booting. (battery is propably charged a bit) But i can only do this for 2 sec @ MAX before battery dies. I can boot windows by connecting and disconnecting the AC continually.... But thats idiotic, the battery does not charge more than enhough for a few secconds (i guess it only charges when it is still in bios.) And with AC connected windows is frozen completely.
    Thats the story. I asume it's not the AC/PS because it works fine in bios/before OS starts or begins to boot.
    The laptop has got some fancy increadibly user unfriendly interface which allows you to use your mouse... Anyway i can run several system diagnostics. Most of them freeze when they are checking Memory. sometimes at 17 % some times 47%.
    But what is most intresting is that the HDD check, runs and completes and says that it failed. (without explaination)
    Whats the best course of action?
    I want to try to instal an other OS, but i would really apreciate it if i can BACK up my files or somehow get them on an Exteral HDD.
    Many thanks!

    Hi,
    Here is a little update:
    first of all i tried to boot with out battery connected. Same story: In bios it's fine.
    When OS BOOTS with system restore it keeps hanging @ the screen where it searches for errors. At that point i could still cancel and reboot to start the normal way.
    But when OC just starts loading it freezes up.
    So my best guess is an HDD problem, either drivers or a total hdd failure.
    In bios i tried an diagnostic test for the HDD, it gave the following message after completing.
    "Hard disk test failed
    Test 2 (comprehensive) ... error: Read failure"
    My main question still is how to restore my data!?

  • How to Get List of Webi Reports in CMS which are scheduled?

    Dear Experts,
    I want to generate list of Web Intelligence Report which are scheduled.
    In addition to above, if I get destinations and in case BO Inbox of mail recipients, list of recipients we be an added advantage for me.
    is there any way, I can achieve this using SDK or sum of that matter?
    Any Clue / Suggestions will be a great help for me.
    Thanks you,
    Regards,
    Sachin Dalal

    You can use the following query:
    Select * from ci_infoobjects where si_name='<webi report name>' and si_instance=1
    This will return all scheduled instances in their default location for specified webi report.
    For each object you can retrieve:
    ((IProperties)((IProperties)oInfoObject.getSchedulingInfo().properties().getProperty("SI_DESTINATIONS").getValue()).getProperty("1").getValue()).getProperty("SI_PROGID).getValue().toString : returns managed for instances scheduled to enterprise user's inbox.
    ((IProperties)((IProperties)((IProperties)((IProperties)oInfoObject.getSchedulingInfo().properties().getProperty("SI_DESTINATIONS").getValue()).getProperty("1").getValue()).getProperty("SI_DESTSCHEDULEOPTIONS").getValue()).getProperty("SI_OUTPUT_FILES").getValue()).getProperty("1").getValue() -> returns the integer value of the SI_ID of the user where the report is scheduled in the user's inbox.
    Query for the instance in the query builder and you can see the structure for SI_DESTINATIONS property bag.
    Hope this help.
    Aasavari

  • How to create table with dynamic amount of columns which are nested columns

    M trying to fetch data and show in a javaFX table.
    My table displays the details of different items from ItemVO , where :
    public class ItemVO()
    String itemName;
    List<ItemTypeVO> type;
    and My ItemTypeVO has the following attributes :
    public class ItemTypeVO()
    String typeName;
    Integer quantity;
    Integer price;
    Now, i want to display the details of an item in a table in which the itemname and quantity will be displayed, the quantity column will have nested columns showing different types(typeName) as found from List<ItemTypeVO> inside ItemVO.
    This question is similar to this link but my not able to find how to link a list with itemVO for nested columns. :(
    Please help !!
    M still unable to find a solution..
    Edited by: abhinay_a on Jan 14, 2013 10:50 AM

    Hi Abhilash,
    Thanks for the quick reply.
    Actually the problem is with the image, as I am not able to rotate 270 degree. Crystal report cannot support the rotation of image.
    i have another problem, I have to create a report in which
    Lables are fixed on the left side of report and 3 columns per portrait page. Those columns are
    dynamically created and shown in the report.
    The format is like the above. Can you please help me in doing this report, as I tried it doing
    with CrossTab. I am really stuck to this report.

  • How to get iTunes to find all missing songs which are in the library

    iTunes keeps telling me it can't find around 150 songs and I have to manually point it to each folder - it offers to use location to find other missing tracks but that only works for songs in the same album folder, not other artists/albums. Is there something I can do to find all songs at once?

    Hi,
    Try Doug's Applescripts for iTunes, he has one for finding missing songs.
    http://dougscripts.com/itunes/scripts/ss.php?sp=listmias
    You can browse his site to find where to put the downloaded script.
    Good luck.

  • HT1386 I have an older iPhone (3gs) and need to upgrade to a newer phone (4S).  I need to get my NOTES, CALENDAR, CONTACTS, PICTURES, etc backed up on iTunes so I can get that data loaded onto the new phone.  But not sure how to do that.

    I have an older iPhone (3gs) and need to upgrade to a newer phone (4S).  I need to get my NOTES, CALENDAR, CONTACTS, PICTURES, etc backed up on iTunes so I can get that data loaded onto the new phone.  But not sure how to do that.  When I open iTunes it has a button that say "Back Up iPhone", but I'm not sure what that does.  When I go into the sync options it say I have another user account and asks me if I want to merge of replace. I'm assuming it's trying to tell me I have an older iTunes Library, but don't know that.  Geez, maybe people over 60 shouldn't have iPhones, iTunes just bafles me.

    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. Also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar
    The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
    Thus, if you get it to work restore to factory settings/new iPod, not from backup                               
    You can redownload most iTunes purchases by:        
      Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • DATA TRANSFER - How to get a SINGLE SPACE in the downloaded file from UNIX?

    Hi Experts,
    Am sending data from SAP to UNIX/ Application server and text file on desk top as well.
    So, I am keeping a single character just SPACE at the END of each record.
    Then, When I see the downloaded text file, I found a SINGLE SPACE at the end of each record, fine.
    Then, by using CG3Y t code, I downloaded the UNIX file to my desk top.
    But, When I see this UNIX downloaded file from UNIX, I did NOT find any SPACE at the end of each record!!!
    Am doing every thing same in both cases.
    So,
    1 - Why its happening in case of UNIX file?
    2 - How to get a SINGLE SPACE  at the END in the downloaded file from UNIX?
    thanq

    Hi,
    I don't know if this works:
    perform SET_TRAIL_BLANKS(saplgrap) using 'X'.  
    perform SET_FIXLEN(saplgrap) using '0' '060'.   "put length of your line from-to
    ... download ...
    It will put space at the end of your line, according to the length.
    Hope it works,
    Chang

  • When insert my lexar USB flash drive I get the message that the disk was not readable by this computer.  It has worked previous to this and I do not want to lose the data by reformatting the drive.  How can I reformat this drive and not lose my data?

    When insert my lexar USB flash drive I get the message that the disk was not readable by this computer.  It has worked previous to this and I do not want to lose the data by reformatting the drive.  How can I reformat this drive and not lose my data?

    You can't reformat it and not wipe everything on it.
    Have you tried a different USB port?
    Only other option, back it up on a different computer.

  • How to get ONLY the data shown in the plot area (Chart)

    My chart history length are 120000, often I don't need to save the whole
    buffer, just the data shown in the plot area?
    Richard Pettersen

    Hi Richard,
    you haven't said which version of LabVIEW you're using, so I've assumed 6.1, although this should be fine for older versions too.
    I put down a chart with a scrollbar, so I could go through the old data, and put an indicator attached to the x-scale->Range->minimum and x-scale->Range->maximum. These followed the displayed elements in the chart as I scrolled through the data. You can therefore link in the chart history (history data property of the chart) with a array subset to retrieve the appropriate portion.
    Be aware though. The minimum and maximum that the chart is showing on the x-scale may not be a part of the history data. E.g. if I set the history length to 1000 points, and produce on the first run, 1000 points, then my minimum and maximum are a
    t say 899 and 999. I then produce a second set of data, 1000 points long, and my min and max move to 1899 and 1999. As my history data is only 1000 long, I can scroll back to 1000 OK, but my min and max used as indexes don't relate anymore. The array of data is from 0 to 999, but my indexes can run from 1000 to 1999. So I have to add in a check that sees how much data is available before attempting to index, and then it's down to the flow of the program to try to work out where the data actually is (I'll leave that one to you - you'll need to keep track of the history data compared to the maximum (shown just after a point is added though this then makes a mess of your data! - possible to keep a track of new minimum when adding new data : the maximum (which will show once new data goes on) minus the history length gives the minimum that can be scrolled to - subtract this from all max's and min's to get real offset into the data - history length can be got from the history data and an a
    rray size sub .vi)
    Obviously there's no problem if you're clearing the graph everytime you either plot new data, or reach maximum capacity on the history data as the indexes return to zero.
    Hope that helps
    S.
    // it takes almost no time to rate an answer

  • How to get last date of the week

    hi,
    how to get last date of the week like FM WEEK_GET_FIRST_DAY gives the date of the first day of the week i need the date of the last day of the week..
    thnx

    data : p_week type KWEEK,
    p_Date type SYDATUM.
    p_week = <incoming value in week of year>
    CALL FUNCTION 'WEEK_GET_FIRST_DAY'
    EXPORTING
    week = p_week
    IMPORTING
    DATE = p_date
    EXCEPTIONS
    WEEK_INVALID = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    To get the last day of the week.
    p_date = p_date + 6.
    You can find the available fm in the system from se37 transaction code.

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

Maybe you are looking for

  • Acrobat Pro 9 interferes with MS Outlook - HELP!!!!!

    I have recently installed Acrobat 9 Pro. Apart from some other issues like the need to open it as administrator (otherwise it doesn't not create PDFs), I now have another problem: It iterferes with my Outlook connecting/recognising an email link clic

  • Oracle 11g for Ubuntu ?

    Hi, Is Oracle 11g supported on Ubuntu ? which flavor ? If not, which is the standard Linux distribution Oracle considers fit for Oracle 11g ? regards raghav..

  • Roles of MM consultant in Implementation?

    hii Some body explain me on their real time exeperiance of end to end implementation. What will be the major roles and reponsibilities of MM consultant in end to end implementation?? Some body explain me in depth and detailed of their own experiance

  • How to run a ABAP Program in Batch JOB

    How to run a ABAP Program in Batch JOB ?

  • IDoc-Status 64 out of AIF

    Hello, we are facing the following problem: we get an IDoc telling us that we have to move stock from the goods-receipt-area to the warehouse. This IDoc is created by the warehouse stuff by putting the pallet on the material transport vehicle after u