view the data in SQL

I was able to use ASP to retrieve data from SQL database by using something like the one below:

SQL = "SELECT PageName",

SQL = SQL & "CONVERT (NUMERIC (6,2), AVG(Rating * 1.00))" AVERAGE ".

SQL = SQL & 'COUNT (Rating) AS Total',

SQL = SQL & "SUM(CASE WHEN Rating = 1 THEN 1 ELSE 0 END) AS [Star1Total]"

SQL = SQL & "SUM(CASE WHEN Rating = 2 THEN 1 ELSE 0 END) AS [Star2Total]"

SQL = SQL & "SUM(CASE WHEN Rating = 3 THEN 1 ELSE 0 END) AS [Star3Total]"

SQL = SQL & "SUM(CASE WHEN Rating = 4 THEN 1 ELSE 0 END) AS [Star4Total]"

SQL = SQL & "SUM(CASE WHEN Rating = 5 THEN 1 ELSE 0 END) AS [Star5Total].

SQL = SQL & "FROM [SDBI]. [dbo]. [GnieRatePage] "

SQL = SQL & "GROUP BY PageName".

SQL = SQL & "ORDER BY PageName".

I then post on the help page:

Response.Write ("PageName") Recordset

What I need, it of to transmit these data to Flash and let Flash to view the coast. How to do by way of ASP?

Thank you

I don't use the proper syntax for writing couples variable/value with asp, but, if this is the case, use:

var myTextLoader:URLLoader = new URLLoader();

myTextLoader.dataFormat = pouvez;

myTextLoader.addEventListener (Event.COMPLETE, onLoaded);

function onLoaded(e:Event):void

{

for {(var s:String in e.target.data)

trace (s, e.Target.Data [s]);

}

myTextLoader.load (new URLRequest ("read_page_rating.asp"));

Tags: Adobe Animate

Similar Questions

  • How to view clob data using sql

    Hello

    In our database we have a table that is to have a column of type CLOB but now I want to display the data using sql select query but it throws error: "unsupported data Type.

    Could someone let me know how to view the clob data using the select query.

    Oracle DB version: 10.2.0.3

    Thank you

    user562223 wrote:
    Hello

    In our database we have a table that is to have a column of type CLOB but now I want to display the data using sql select query but it throws error: "unsupported data Type.

    Could someone let me know how to view the clob data using the select query.

    Oracle DB version: 10.2.0.3

    Thank you

    Usually a to_char (CLOBDFIELD) circled

    HTH,

    FJFranken

  • On the forms send us and receive in return, data in the form of fields will be not print.  We can view the data, but the fields to print Virgin.  How can I fix it?

    On the forms send us and receive in return, data in the form of fields will be not print.  We can view the data, but the fields to print Virgin.  How can I fix it?

    OK, it's different. These text boxes are (at least engineering point of view) not considered form data, they are annotations (or markup). On your print dialogue box, you will see a group of "Comments & Form". Make sure that the first control is set to "Document and annotations:

    After this change, you should see the markup of your impressions.

  • How to view the data in the text file to the format column

    Hello

    I am acquiring data from an oscilloscope.

    Wen I save the data in a text file to aid wite spreadsheet string, all the displayed voltage values r first, then values of time... in addition to its delimited by tabs

    How can I view it like the r of time values in a single column and the voltyage of the r-values in the other column

    thanx

    Hello

    I don't know what is exactly the format that you found. I think you should try to use the function Array transpose (from the palette of function table) before you pass the array to write to string of spread sheet function or directly loyal to Terminal son transposes on writing worksheet function and see if you get the desired results.

    PS. : Share your code would be appreciated.

    Kind regards

    Amine31

    (Kudos are always welcome, mark it as a solution if it is the only)

  • No need to advise - compare the date in *.sql with sysdate.

    Hi guys,.

    Need some help here.

    Someone has a script that will compare the date specified with the current sysdate. If previously, he will order that SQL * PLUS to leave immediately.
    The audit will be essentially in a script *.Sql. Whenever we run the script, @c:\script.sql, it will be first of all to compare the dates and decide whether to proceed with the rest of the codes (dml) below the date checker in the same script.sql

    Thank you

    I would like to combine the solutions of bencol and alberto:

    whenever sqlerror exit
    
    DECLARE
       v_date   DATE := TO_DATE('', 'YYYYMMDD');
    BEGIN
       IF v_date >= TRUNC(SYSDATE) -- or perhaps:  v_date>= sysdate
       THEN
         null;
       ELSE
         raise_application_error(-20000,'Date is before SYSDATE!');
       END IF;
    END;
    /
    
    whenever sqlerror continue
    
    -- rest of your script
    ...
    

    (not tested)

    Published by: hm on 08.05.2012 02:51

  • view the date to which I didn't get the interview

    Hello
    I have interview_detail table with two columns
    1. the date of the interview
    2 personname
    with the following data

    Interview_ detail
    Interview date personname
    ARP / 10/09 aa
    12 / Arp / 09 bb
    13-Arp-09 aa
    15-Arp-09 cc
    17 / Arp / 09 dd
    20 / Arp / 09 bb
    21-Arp-09 aa
    25-Arp-09 aa
    27 Arp-09 aa
    30 / Arp / 09 bb

    In the table, the data is inserted only at the interview was taken and who took the interview
    My question is I want to display the date to which I didn't get the interview

    should be like this

    ARP-11-09
    14 / Arp / 09
    16 / Arp / 09
    18 Arp--09
    ARP-19 / 09
    22-Arp-09
    ARP-23 / 09
    ARP-24 / 09
    ARP-26 / 09
    28 / Arp / 09
    ARP-29 / 09


    PL give some examples for this

    Thank you

    >

    Well, you hard 10 April 09 and you hardcoded the difference between the first and lst interview dates. Generic solution would be:

    with interview_detail as (
                              select to_date('10-Apr-09','dd-mon-yy') interview_date,'aa' personname from dual union all
                              select to_date('12-Apr-09','dd-mon-yy'),'bb' from dual union all
                              select to_date('13-Apr-09','dd-mon-yy'),'aa' from dual union all
                              select to_date('15-Apr-09','dd-mon-yy'),'cc' from dual union all
                              select to_date('17-Apr-09','dd-mon-yy'),'dd' from dual union all
                              select to_date('20-Apr-09','dd-mon-yy'),'bb' from dual union all
                              select to_date('21-Apr-09','dd-mon-yy'),'aa' from dual union all
                              select to_date('25-Apr-09','dd-mon-yy'),'aa' from dual union all
                              select to_date('27-Apr-09','dd-mon-yy'),'aa' from dual union all
                              select to_date('30-Apr-09','dd-mon-yy'),'bb' from dual
                             )
     select  min_dt + level - 1 no_interview_date
       from  (
              select  min(interview_date) min_dt,
                      max(interview_date) max_dt
                from  interview_detail
             )
       connect by level <= max_dt - min_dt + 1
    minus
     select  interview_date
       from  interview_detail
    /
    
    NO_INTERVIEW_DATE
    --------------------
    11-APR-09
    14-APR-09
    16-APR-09
    18-APR-09
    19-APR-09
    22-APR-09
    23-APR-09
    24-APR-09
    26-APR-09
    28-APR-09
    29-APR-09
    
    11 rows selected.
    
    SQL> 
    

    SY.

  • The only region to read - is there a better way to view the data?

    Hi, I have few parts on my page at some point, the data is displayed in read mode. When elements are modifiable, form looks ok, but when you view it in read mode, there are no boxes more and seems very messy (difficult to read). Does anyone know how to organize data on the page?


    Thanks in advance

    Robert

    Robert:

    Setting of the text to be "readOnly" box should keep the scroll bar activated.

    $x('P11_textarea').readOnly = true;

    CITY

  • Can I use scan interface mode during the collection of the data of cRIO? How to view the data collected continuously on a waveform graph?

    Hello

    I intend to use cRIO as a standalone device to collect certain data off a tachometer House.  My goal is to store the data in the cRIO chassis, since it has its internal memory, but I can't even a cluster of data of the analog inputs of its devices.  I dragged and dropped the channel I collect data in a while loop, but it is only a point.  I want to see the data from the different time, what should I do?  Is this possible in Mode Interface Scan?  If Yes, could someone give me a simple example that shows streamed on a waveform data?  I would be very grateful!


  • View the data in process management in file based on a Smart View formula

    Hello

    Is it possible to view the status of the process management of an entity (document, approved, etc.) in a formula-based Smart View file?

    I know that I can change it in Smart Display Options, but as far as I know it is only for Ad - Hoc.

    Please notify.

    Thank you

    The available functions are only:

    HSSetText, HSGetText, HSCurrency, HSDescription and HS Label; to return the State you need a function that provides information based on the settings of the formulas and is currently not available, so you will need to write an ad-hoc report or VBA to fill in the runtime of a button.

  • How to view the line of sql to the horizontal format based on a value.

    I want to display data to the user in horizontal form based on a column value. Here is the table structure and insert. Also, I've included output expected.

    If the pricemethod is "Guess", I want the value next to the price (price_real, price_guess), it will be based on the code, sellernumber and selldate.

    create table TEMP_HORI
    (
      CODE         VARCHAR2(30),
      PRICE        NUMBER(20,10),
      SELLDATE     DATE,
      SELLERNUMBER NUMBER(10),
      PRICEMETHOD  VARCHAR2(15)
    );
    
    insert into temp_hori (CODE, PRICE, SELLDATE, SELLERNUMBER, PRICEMETHOD)
    values ('ABCD', 100.0000000000, to_date('01-10-2014', 'dd-mm-yyyy'), 100, 'Real');
    
    
    insert into temp_hori (CODE, PRICE, SELLDATE, SELLERNUMBER, PRICEMETHOD)
    values ('ABCD', 90.0000000000, to_date('01-10-2014', 'dd-mm-yyyy'), 100, 'Guess');
    
    
    insert into temp_hori (CODE, PRICE, SELLDATE, SELLERNUMBER, PRICEMETHOD)
    values ('ABCD', 101.0000000000, to_date('01-10-2014', 'dd-mm-yyyy'), 299, 'Real');
    
    
    insert into temp_hori (CODE, PRICE, SELLDATE, SELLERNUMBER, PRICEMETHOD)
    values ('ABCD', 109.0000000000, to_date('01-10-2014', 'dd-mm-yyyy'), 500, 'Real');
    
    

    Real:

    CODEPRICESELLDATESELLERNUMBERPRICEMETHOD
    ABCD100.000000000001/10/2014100Real
    ABCD90.000000000001/10/2014100Guess
    ABCD101.000000000001/10/2014299Real
    ABCD109.000000000001/10/2014500Real

    Expected:

    CODEPRICE_REALPRICE_GUESSSELLDATESELLERNUMBER
    ABCD100.000000000090.000000000001/10/2014100
    ABCD101.000000000001/10/2014299
    ABCD109.000000000001/10/2014500

    Hello

    This is called swivel and here's a way to do it:

    SELECT code

    , SUM (CASE pricemethod WHEN 'Real' price THEN END) AS price_real

    SUM (CASE pricemethod when 'Guess' THEN price END) AS price_guess

    selldate

    sellernumber

    OF temp_hori

    Code of GROUP BY, selldate, sellernumber

    ORDER BY code, selldate, sellernumber

    ;

    From Oracle 11, you can also use the SELECT... PIVOT function, but it does not really help to this particular problem.

    I guess just the role of the code and selldate in this problem.  It is difficult to say when all the rows in the data of the sample has the same value.

    Want you all sellnumbers aligned in column 1, or do you want some further to the left than others that you have posted?  If the latter, is this 1 column or 2 separate columns?  How do you decide which column the sellnumber appears?

    For more info on pivots, see the FAQ of the Forum:

    Re: 4. How can I convert rows to columns?

  • Need help with XML, view the data by scanning/click

    Hello.

    I am creating a moibile app that displays XML data. It is a telephone directory. I want the data to change when we slide. I can get the data very well. I can get it to display fine. I do not see the correct image first, however. I think it's a problem with my imagenum variable.

    Then, I want to change what is displayed when the user clicks/slide on the screen. How do I do that?

    Stop();
    var nameArray:Array = new Array();
    var countryArray:Array = new Array();
    var portraitArray:Array = new Array();
    var flagArray:Array = new Array();
    var jobtitleArray:Array = new Array();

    var imageNum:Number = 0;
    var totalImages:Number;

    Loading XML
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load (new URLRequest ("recbook.xml"));


    XMLURLLoader.addEventListener (Event.COMPLETE, processXML);


    function processXML(event:Event):void {}

    var theXMLData:XML = new XML (XMLURLLoader.data);
    totalImages = theXMLData.name.length ();
    for (var i: Number = 0; i < totalImages; i ++) {}
    Data in the tables xml push
    nameArray.push (theXMLData.name [i]);
    countryArray.push (theXMLData.country [i]);
    portraitArray.push (theXMLData.portrait [i]);
    flagArray.push (theXMLData.flag [i]);
    jobtitleArray.push (theXMLData.jobtitle [i]);
    }
    the data is processed

    loadData();
    }

    function loadData (): void {}

    var thisPortrait:String = portraitArray [imageNum];
    var thisCountry:String = countryArray [imageNum];
    var thisName:String = NomTableau [imageNum];
    var thisJobtitle:String = jobtitleArray [imageNum];
    var thisFlag:String = flagArray [imageNum];

    var dataLoader:Loader = new Loader();
    dataLoader.load (new URLRequest (portraitArray [imageNum]));
    dataLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, dataLoaded);
    function dataLoaded(event:Event):void {}

    I want to start with 0 (img1.jpg) image and scroll with a click of the mouse (finger on iOS kick)
    stage.addEventListener (MouseEvent.CLICK, loadMainImage1);
    function loadMainImage1(event:MouseEvent):void {}
    portraitUILoader.source = thisPortrait;
    flagUILoader.source = thisFlag;
    selectedName.text = thisName;
    selectedCountry.text = thisCountry;
    selectedJobtitle.text = thisJobtitle;
    }
    }

    Add to imageNum (1);
    imageNum ++;
    If (imageNum < totalImages) {//stopping to img2
    trace ("imageNum" + imageNum);
    trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere

    loadData();
    }

    trace ("Total Images" + totalImages);

    }

    Click here to pass the screenI House would this gap. do not know how.
    homeScreen_mc.addEventListener (MouseEvent.CLICK, goNext);

    function goNext(event:MouseEvent):void
    {
    nextFrame();
    }


    * / Here is the result:
    imageNum 1
    image name (tomyline) images/img1.jpg
    imageNum 2
    image name (tomyline) images/img2.jpg
    imageNum 3
    image name (tomyline) images/img3.jpg
    Total of 4 Images
    Total of 4 Images
    Total of 4 Images
    Total of 4 Images

    It starts on frame 1 display (the second in the series img2.jpg) * /.

    If (imageNum< totalimages)="" {//stopping="" at="">
    trace ("imageNum" + imageNum);
    trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere
    imageNum ++;
    If (imageNum! = totalImages) loadData();
    }

  • How to view the date of signature on the answer report

    Hello
    I have a report of the response.

    I would like to see the date of the report, when it is executed.

    I put the date in the title or caption of the report.

    Can you help me?

    Thank you very much.

    Sara

    Published by: Sara C. on gen-7-2010 13.24

    HY Sara, Joe

    According to the title of a response, you have the option to add the date of execution. It is standard.
    Isn't it?

    Have a nice weekend
    Nico

  • Can't view the data after loading the XML into RTF model

    Hi friends

    I am unable to view data in PDF after loading the XML into RTF model
    After I load the XMl file to my model
    The complement of the tab, I'm trying to get a glimpse of the output as pdf/xml etc, but he throws and error
    Window does not
    'C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\Oracle\BIPUBL~1\TEMPLA~\tmp\3513518782149421out.pdf214921out.pdf '. Make sure you typed the name correctly and then try again. To search for a file, click the Start button and click Search

    I gave the name correctly only, but don't know y it displays error I have to reinstall the Office of Oracle BI Publisher once more please advice me what needs to be done to solve my problem of my PC

    Thank you
    Thiliban

    It seems that the problem is with the working directory of the BIP Office.

    If you have administrator access to the computer, please do the following:
    1 Windows-> Run-> regedit
    2. find the value of the next entry
    Publisher\Template HKEY_CURRENT_USER\Software\Oracle\XML for Word\TB_WORK_DIR generator
    3. change your path C:\DOCUME~1\SYSNAME~\LOCALS~\APPLIC~1\ORACLE\BIPUBL~1\TEMPLA~\tmp

    See you soon,.
    ND
    Use the buttons "useful" or "correct" to award points to the answers / mark the thread as answered, if your question is answered.

  • To change the way of afficherdans the data using SQL

    I have data as follows:

    Name age
    Tom 24
    Harry 45
    Mona 30


    I want to convert these data in the way below

    Name1, name2 Age1 Age2 Name3 3
    24 45 30 Mona Harry Tom



    How can I do the same thing using SQL?

    Why not try to search this forum of 'PIVOT' to make this small change yourself?

    SQL> set line 1000
    SQL> WITH t AS (SELECT 101 empid,45 marks,8 rank FROM dual UNION ALL
      2             SELECT 101 empid,62 marks,7 FROM dual UNION ALL
      3             SELECT 101 empid,80 marks,2 FROM dual UNION ALL
      4             SELECT 102 empid,67 marks,5 FROM dual UNION ALL
      5             SELECT 102 empid,56 marks,6 FROM dual UNION ALL
      6             SELECT 103 empid,87 marks,7 FROM dual UNION ALL
      7             SELECT 103 empid,55 marks,9 FROM dual UNION ALL
      8             SELECT 103 empid,60 marks,6 FROM dual UNION ALL
      9             SELECT 103 empid,70 marks,3 FROM dual
     10             )
     11  ---End of Sample Data
     12  ---Now the original query.
     13  SELECT empid, MAX(DECODE(rn1,1,marks)) Marks1,MAX(DECODE(rn1,1,rank)) Rank1
     14              , MAX(DECODE(rn1,2,marks)) Marks2,MAX(DECODE(rn1,2,rank)) Rank2
     15              , MAX(DECODE(rn1,3,marks)) Marks3,MAX(DECODE(rn1,3,rank)) Rank3
     16              , MAX(DECODE(rn1,4,marks)) Marks4,MAX(DECODE(rn1,4,rank)) Rank4
     17  FROM
     18     (SELECT empid,marks,rank,
     19      ROW_NUMBER() OVER(PARTITION BY empid ORDER BY marks) rn1
     20      FROM t)
     21  GROUP BY empid;
    
         EMPID     MARKS1      RANK1     MARKS2      RANK2     MARKS3      RANK3     MARKS4      RANK4
    ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------
           101         45          8         62          7         80          2
           102         56          6         67          5
           103         55          9         60          6         70          3         87          7
    
    SQL> 
    
  • How to view the data collected in vi main indicators in an another vi

    Hello

    I data collection to aid NI 6251 USB DAQ in vi but as I have too many controls and indicators on the main façade of vi. So I want to display the indicators (graphs) in an another vi. I want also the vi with graphs automatically opens. Anyone know how I can do this? I'd appreciate any help.

    Thank you

    ygupta

    Hello

    Search for the concept vi sub forum.

    For your reference, I have attached an example.

    You can see the procedure for the same thing on the net.

    Kind regards

    Shrek

Maybe you are looking for

  • Satellite C55 - C - its serious problems

    I have serious audio problems with a brand new satellite c55 - c with win10 home 64-bit just after that I have plug in the audio device (speedlink system) the sound is clear and loud than usual (as in the laptop before).but after a few seconds, the v

  • To start windows I hear a three-bipping (the code).

    It's never happened before. I installed a new hard drive and installed my disk operating systems (xp) all over again and I get 3 bipping sound. This is not normal, no doubt, I have something deleted by mistake or something I wasn't suppost to reset.

  • How can Windows Checker work - I get rid of him?

    In order to access the computers of mu (has been locked) was to order an audit of the Windows work that has a Microsoft Logo, but I understand is a scam. I've already warned my credit card company, but the questions are: 1. How can I get rid of the p

  • Action, 1202, 1204 and 1208 83.0.0.0

    Hello I have an ID 4210 4.1. In the event viewer alarms fires 1202, 1204 and 1208 with 83.0.0.0 as source ip address and destination 0.0.0.57 I do not understand why my ID see this IP address? Can someone help me please? Thank you

  • Problem updating my software blackBerry Smartphones

    Hello world I currently own a Blackberyy Bold 9000. I have a problem, upgrade my blackberry version 4.6 to 5.0 software. When I try to upgrade, it tells me that I have enough space (missing 21Mo), as shown on this picture http://img42.imageshack.us/i