Change the way information is displayed from SQL query in Excel

Hi,
I'm trying to set up a spreadsheet that displays information directly from our SQL database using the Microsoft Query Wizard.  I have a very basic understanding on how to do this, so I can create a spreadsheet that gives me most of the information I
want, but I would like to be able to manipulate the data slightly.
The main thing I would like to do is be able to make some of the results more user-friendly in the way they're displayed.
One of the fields is the status of the product (Normal, deleted, discontinued, etc.).  The information is currently displayed as a numeric value between 0-4.
Is there a way that I can change the display to the user so that they see the actual status in words, "Deleted, Normal, Discontinued" in place of, or next to the numeric value?
Hope all this makes sense.
Thanks,
Scott

One way is using excel worksheet function CHOOSE.You can add a column after numeric data and put above formula.Pls refer offline help for syntax.
Another way is .....I suppose ..... in SQL there may be SELECT CASE/SWITCH STATMENT which you can use.
Best Regards,
Asadulla Javed, Kolkata
Please do not forget to click “Vote as Helpful” if any post helps you and
"Mark as Answer”if it solves the issue.

Similar Messages

  • Customizing the HTML for a Report from SQL Query

    Hello
    I have created a Report from a SQL query that outputs a list of items from a single table column. There are 65 rows returned by the report. I would like to display all the results on one page but the length of the list prevents this. Is there any way of presenting the results as multiple columns on the same page?
    ie
    Res1 Res2 Res3
    Res4 Res5 Res6
    or
    Res1 Res3 Res5
    Res2 Res4 Res6
    I thought about using a 3 column portlet region and attempting to customise the report displayed via each of the portlets but I would prefer to avoid this as it would require the development and maintenance of an additional template.
    Thanks
    Lisa

    Problem solved...
    I have used my SQL query as a cursor in a dynamic page and then used the cursor and htp.p statements to tabulate my results as per my requirements.
    Lisa

  • Is there a way to filter a drop down list by using the result main data display from"GetUserProfileByName" when open the form.

    Hi 
    Is there a way to filter a drop down list by using the result main data display from"GetUserProfileByName" when open the form?
    The second source has a huge list of company names that can be narrrow by email work. 
    background:SP 2010 and Infopath 2010
    CRISTINA&amp MICROSOFT Forum

    I'm not sure if I understood your question clearly but here is a good resource on how to get attributes from "GetUserProfileByName" web services:
    http://blog.mangroveweb.com/pre-populating-an-infopath-from-with-mysql-data-using-a-net-web-service/using-sharepoints-getuserprofilebyname-web-service-to-retrieve-ad-account-information/
    Regarding filtering dropdown list then this could be done by applying form on-load rules. 
    Hope this helps

  • I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.

    I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.
    ===Answer===
    Comment on usual method and solution, by a forum Moderator.
    As long as there are no confounding factors, such as certain extensions, or a user.jsfile the procedure is as follows
    # Open a new tab and type "about:config" in the address bar.
    # In the Search bar type: "newtab"
    # Locate and double click "browser.newtab.url"
    # In the "Enter String Value" box change "'''about:newtab'''" to "'''about:blank'''" and click OK.
    # Verify that the value has changed and now all new tabs will be blank.
    See post under by ''pirate048'' [/questions/976589?page=2#answer-509482] ~J99

    Have to say that I rather agree with Mark..all we want is a simple, unadorned clean page that doe not track and show usage!! WHY NOT!! Is it too simple for developers..we aren't all (nor do we want to be!) software experts! Come on Mozilla..tidy up and clean up..it might be a quicker programme too!!

  • Has Mozilla changed the way Firefox displays @font-face enbeded fonts? The site I'm codeing works in Safari, Chrome, and IE, but Firefox 8.0.1 doesn't display the embeded font.

    Has Mozilla changed the way Firefox displays @font-face enbeded fonts? The site I'm codeing works in Safari, Chrome, and IE, but Firefox 8.0.1 doesn't display the embeded font.

    No problems here with the H1 headers.
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

  • Could you change the way ff behaves in fullscreen? i hate it when i moves whole page on tab-bar display. tab-bar should slide on page without moving it

    could you change the way ff behaves in fullscreen? i hate it when i moves whole page on tab-bar display. tab-bar should slide on page without moving it

    I agree and looked everywhere for
    http://www.krickelkrackel.de/autohide/
    to no avail.
    Can someone please change how to make fullscreen not push the page down when toolbars are shown on mouse hover in FF? The toolbars should behave more like IE. This would make FF SO much better. Please dont take the IE comparison the wrong way as FF is quite superior and the ONLY browser I use, but this one thing has got to be changed. It's irritating the way FF pushes the whole web page down while in fullscreen mode when the toolbars are shown on mouse hover.

  • Recent software upgrade has changed the way my iPhone syncs with my macbook, and diary items no longer upload from my iPhone. I've tried a to fix it and seem to have made things worse. What is the best way to get the two devices in sync ?

    Recent software upgrades has changed the way my iPhone syncs with my macbook and items entered on my iPhone are no longer uploaded to my macbook. I've tried to fix it and seem to have made things worse, my iPhone now has a long list of calanders that I don't want and can't delete and nothing is uploading to my macbook.

    You need to look at Mac's iTunes, check  > System Preferences > iCloud.
    If you use iCloud for Calendar, Contacts then turn off those items in iTunes, Info tab with your iPhone connected and selected.

  • I found an error when I changed the contact information.

    I found an error when I changed the contact information.
    Yesterday, I imported all my contact information from my old phone to my brand new iPhone 4S at an AT&T store. Everything looked fine, but all the first names and the last names were switched. So, I had to correct all contact information manually again. It was so ridiculous.
    When I corrected the contact information, the names on my contact list were not changed immediately. For example, when the name of a person, ‘Doe John’, was changed to ‘John Doe’, the name on the contact list was not changed and remained as ‘Doe John’. After I rebooted my iPhone, the name on the list was changed correctly. Do I have to reboot every time when I switched the first name and the last name?
    My iPhone Information
    IPhone 4S White 16G
    Model: MC924LL
    iOS Version: 5.0.1 (9A405)

    Is ths display order for contacts set the way you want it?
    Settings > Mail,Contacts,Calendars > Display Order

  • Calling the function from SQL query

    Hi,
    I am trying to run the below statement,
    Select to_number(apps.pay_balance_pkg.get_value( 326, :paa.assignment_action_id,to_date ('31032011','ddmmyyyy'))) from dual;
    getting an error as :
    ORA-14552 cannot perform a DDL, commit or rollback inside a query or DML
    ORA - 06512 at apps.pay_balance_pkg , line 4526.
    How can I execute this funciton "apps.pay_balance_pkg.get_value" from sql query?
    Thanks in advance.

    user1175432 wrote:
    Hi,
    I am trying to run the below statement,
    Select to_number(apps.pay_balance_pkg.get_value( 326, :paa.assignment_action_id,to_date ('31032011','ddmmyyyy'))) from dual;
    getting an error as :
    ORA-14552 cannot perform a DDL, commit or rollback inside a query or DML
    ORA - 06512 at apps.pay_balance_pkg , line 4526.
    How can I execute this funciton "apps.pay_balance_pkg.get_value" from sql query?
    Thanks in advance.If the function is performing DDL, commit or rollback inside it then you will not be able to call it from an SQL statement.
    Either change the function so it doesn't perform DDL, commit or rollback, or use a different means to obtain the information you want (assuming you can't change the function)

  • In the latest iOS updates, did Apple change the way Airplay communicate with other devices through Wifi?

    Short :
    In the latest iOS updates, did Apple change the way Airplay communicate with other devices through Wifi?
    Detailed:
    We had a glitch with our Apple TV 3A 3-4 weeks ago and had to factory reset it (we reconfigured it with the exact same configuration than before the crash), it's now running iOS 7.0.2, I can't saw which version it ran before the problem though.
    It's used in a business environment with 30+ iPads 2, half of them are updated to 8.1.1 and the other half to 8.1.2. We use the latest iTunes version.
    Before the glitch that required a reset, all the iPads were detecting and mirroring when needed to the Apple TV, but now the iPads don't see the Apple TV in their list of Airplay devices anymore (but they detect various other devices inside our network).
    I have to add that our Apple TV is able to navigate the movie store correctly, so I assume that it's not an internet restriction issue from our end (also, the APple TV do not see either any of the many iPads on its device-detection screen.
    We successfully connected an iPhone 5S and an iPhone 6 through P2P Airplay, so it's not the issue, but when we connected the iPhones to our Wifi network (Same as all the other devices are using) the Apple TV suddenly disappeared from the choices.
    Hence the reason why I inquire to the possibility that some changes were made in one of the latest iOS revisions, if so, we would require some details so we can adjust our Wifi configuration accordingly to allow the proper detection of devices.
    P.S. I tried the basic troubleshooting of Airplay problems with no avail. Airplay button is displaying on the control panel, Airplay do not show the Apple TV at all (so it's not either the trick to display the Mirroring button), we also already proceeded to the suggested devices reboots, so my issue is quite more complex I believe.
    Thanks in advance.

    PhotogYogi wrote:
    I Have the same issue on a brand new iPad mini 2. My battery is only lasting up to 5 hours. I went on chat with Apple last night and they said my battery is fine and its a Safari issue. I'm literally losing 1% every 3-4 minutes. I tried recalibrating my battery, signing out of iCloud, shutting off all locations, turning off background app refresh, restoring network settings, restoring all, and finally restoring from iTunes with no luck. This is just awful. I got this iPad so I could use it on my long flight for a trip I have coming up, and unfortunately, it's not going to last that long, plus I'm concerned about how many times i will be recharging my battery because of this since battery's do have a life cycle dependent on the number of charges. This is frustrating and needs to be fixed ASAP and addressed by Apple.
    By the way, Apple told me to bring my device to the Apple Store because it's still under warranty. That's great and all, but I'm going to waste my time if there is no fix for this issue.
    Ok so you want Apple to address the problem, but yet you don't want to take it to them just in case they can't fix it? What if they can fix it? Complaining here certainly won't fix it.

  • Has SAP has changed the way licenses are  issued?

    Hi Everyone;
       I was just informed by my client (Public Works Government Services Canada) that SAP has told them this week that ...
    "for two maintenance releases within the same major version that we require two licenses on the same PC; one for 12.1 and another for 12.5".
      My understanding was that a PB 12.5.x .LIC file will also activate a PB 12.x IDE as well on the same PC. In fact, that has been the case in previous years with various versions of PB from Sybase.
    Has SAP changed (or are they changing) the way the old Sybase Sysam licenses work?
    Regards ... Chris

    Apparently the person at SAP who wrote that thinks that 12.5 is a maintenance release of 12.0.
    If the 12.5 license allows running 12.0, whether that is a bug would depend on whether Sybase intended to allow use of prior versions when you license the current version.
    If they are going to license maintenance releases separately, that is definitely something new. I suppose they want to make sure only users with a maintenance agreement can install and use maintenance releases.
    We should get clarification from Sue.

  • Is it possible to change the way the time shows?

    Is it possible to change the way the time shows from 10.00 to 10:00? Why does it show with a . anyways?
    iOS 8.1.2 - iPhone 6
    Espen (Norway)

    The manual showed you the area to make changes in. As I stated earlier, it has to do with Regional formats. Just like some regions use the period between dates as well. The same is true for dates. In the US, we normally would show today's date as January 10, 2015. In many European countries, it would be 10 January 2015. The same is true for time. We generally use 12-hour format, many places use 24-hour format. How it is displayed on the phone is based on the generally accepted method for the region. If on the phone you go to Settings>General>Language & Region, you can see your regional format settings. If you go under Region Formats, tap on Advanced. That gives you the option to make some other changes if you like, rather than using the regional standards.

  • Change the XP revision code displayed using winver

    Hi
    I need be able to display/change the XP revision code displayed when running 'winver.exe' under Embedded 2009 Standard. Does anyone know which component/setting I can use to change the revision code (or part of it) to my own version number?
    I have no control over the program that will run on the system, so I need a way of having a revision code that can be displayed to a standard user using standard windows mechanisms, either computer properties or 'winver.exe'
    Many thanks
    Steve W

    You can create an C:\WINDOWS\system32\OEMINFO.INI file, this information will be shown in the "System" control panel the file may look like this:
    [General]
    Manufacturer = Your company name
    Model = MyDevice 1000, SW V1.00
    SupportURL = http://www.yoursite.com
    [OEMSpecific]
    OEM1=Your company name
    I don't think that there is a (official, of course) way to change the versions shown in winver.exe.

  • How to change the default window size display font size on Lync 2013 main window?

    Hi champs,
    Just a simple non-technical question: How to change the default window size display font size on Lync 2013 main window on Windows 7 desktop?
    Thanks,

    Hi,
    Did you mean change the Lync: Change the Default Font and Color of Instant Messages just as Edwin said above?
    If not, as I know, there is no natural way to change it.
    If yes, on the latest version of Lync 2013 client, there is a new option “IM” on Lync client “Options” list. And you need to change the default Font and Color of IM in the interface of “IM”.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How to change the default IDOC basic type from CREMAS05 to CREMAS04.

    Hi All,
    How to change the default IDOC basic type from CREMAS05 to CREMAS04 when sending Vendor Master Data.
    When I generate partner profile, the system will add the latest version of IDOC type which is CREMAS05 to the Outbound message. In my project, I'm asked to use CREMAS04.
    I want to use BD14 to send master data directly, but the program will generate IDOC using CREMAS05. Is there a way that I can change it to CREMAS04? And also for using Change Pointers, I want to use the report RBDMIDOC, but i have the same problem.
    Thanks
    Sai Krishna

    execute WE20 and edit the outbound parameters
    here is a pretty good example: http://documentation.softwareag.com/webmethods/sapr3_gateway/sap231/pages/sapdist.htm
    Edited by: Jürgen L. on Sep 7, 2011 9:49 PM

Maybe you are looking for