Jtable need help with column name

hi, i'm currently working on a project where my jtable grab data from the database.
as for the where clause i am thinking if i can get the column name as the field name in the table. However, I would like to hide the field name from the user.
So, I'm here to kindly ask if there is a way that i can display the column name that is hidden from the field name.
thanks in advance.

actually, I am thinking of a lazy way to add the 'where' clause for my sql statement.
so, instead of detecting which column that is related to the field i can just use the columns header name as my field. But on the other hand, I'd like to hide my field name from the user .
For say my field name is "emp_no" but it is displayed as "Employee No" to the user. and when i do my sql statement i can do something like this:
select * from emp_details where + jtable.getcolumnname(i).tostring() + = jtable.getvalueat(j,i)
is there a way i can do it so???
thanks again. and thanks for the reply

Similar Messages

  • JTable - Help with column names and rowselection

    Hi,
    Is there anyone that can help me. I have successfully been able to load a JTable from an MS access database using vectors. I am now trying to find out how to hardcode the column names into the JTable as a string.
    Can anyone please also show me some code on how to be able update a value in a cell (from ''N'' to ''Y'') by double clicking on that row.
    How can I make all the other columns non-editable.
    Here is my code:
         private JTable getJTable() {
              Vector columnNames = new Vector();
    Vector data = new Vector();
    try
    // Connect to the Database
    String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    // String url = "jdbc:odbc:Teenergy"; // if using ODBC Data Source name
    String url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=C:/Documents " +
              "and Settings/Administrator/My Documents/mdbTEST.mdb";
    String userid = "";
    String password = "";
    Class.forName( driver );
    Connection connection = DriverManager.getConnection( url, userid, password );
    // Read data from a table
    String sql = "select * from PurchaseOrderView";
    Statement stmt = connection.createStatement();
    ResultSet rs = stmt.executeQuery( sql );
    ResultSetMetaData md = rs.getMetaData();
    int columns = md.getColumnCount();
    // Get column names
    for (int i = 1; i <= columns; i++)
    columnNames.addElement( md.getColumnName(i) );
    // Get row data
    while (rs.next())
    Vector row = new Vector(columns);
    for (int i = 1; i <= columns; i++)
    row.addElement( rs.getObject(i) );
    data.addElement( row );
    rs.close();
    stmt.close();
    catch(Exception e)
    System.out.println( e );
              if (jTable == null) {
                   jTable = new JTable(data, columnNames);
                   jTable.setAutoCreateColumnsFromModel(false);
                   jTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_NEXT_COLUMN);
                   jTable.setShowHorizontalLines(false);
                   jTable.setGridColor(java.awt.SystemColor.control);
                   jTable.setRowSelectionAllowed(true);
                   jTable.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
                   jTable.setShowGrid(true);     
              return jTable;
         }

    this method has a default behavior to supply exactly what you're seeing: column names consisting of the capitalized letters, "A", "B", "C".Thanks Pete, had seen that but never really thought about it... about 10 days ago somebody needed to obtain Excel column names, I'd offered a rigorous solution and now see it would have been shorter and simpler (if a little heavier) to extend DefaultTableModel and provide the two additional methods needed (getOffsetCol and getColIndex).
    Not much of a difference in LOC but certainly more elegant ;-)
    Darryl

  • Need help with updating Name Server update for home webserver

    I set up a webserver at home to run my own domain/website. I am able to type my IP address into Safari/IE and get to my website fine. I now need to update the NameServer with the previous domain hosting service, but I have no idea how to find out the NameServer (Compast is my ISP) to put into the UPDATE NAME SERVERS form for the previous hosting company. I need to obviosly do this before people who type in my web address can be directed to my home server instead of the old hsoting company. The previous hosting server is ns.teammediaonline and ns1.teammediaonline.com. Do I use something like ns.comcast.net or something? I already have the IP address and know it works fine. Comcast does notchange the IP's too often and I will not have much traffic to my site, so I should not have any issues with them. I am sure this is a very simple issue. Any help would be greatly appreciated.

    Hi--
    You definitely do not want to contact Comcast. Servers are forbidden to their residential customers. If you contacted them, not only would they refuse to help, that might put you on a list to watch in case you do set one up. Now, if you're careful, don't server out a lot of traffic, and aren't a general nuisance to the people on your node, they most likely won't notice if you don't contact them.
    However, you'll need to look into a different DNS solution. Do a search for "Dynamic DNS" and you'll find a number of services that will be able to help you out. This one, DynDNS, has some reading material that might help to explain what you need to do...
    charlie

  • Need help with column formatting (see image)

    I am trying to make a spreadsheet that calculates proportional image sizes of a fixed original size. I have it set up so you enter an original size on the left (see image below) and the spreadsheet calculates the proportional sizes on the right (in the pink column). I would like to know how to get Appleworks to re-list the proportional sizes while omitting the size pairs that = 0. Basically i want to display the proportional sizes in a new column without the zeros. This way the proportional sizes list is much smaller and easier to read.
    Thanks for any help
    morgan
    g5   Mac OS X (10.4)  
    g5   Mac OS X (10.4)  
    g5   Mac OS X (10.4)  

    Part 2
    The method indicated in your original spreadsheet, and after the refinements suggested earlier, is essentially a sieve—calculate all the values, then strain out the chaff (ie. the results with non-integer values for one or both dimensions).
    A more efficient approach is to calculate and display only the cases where both dimensions are integers.
    Here's one way. You may want to move some of the calculations and revise the formulas accordingly.
    Data Entry:
    Cells B4 and C4 are used for data entry, as in the original.
    Initial calculation: Find the LCF (largest common factor) Columns J, K, L and cell M1.
    J1: =(B$4/ROW())=INT(B$4/ROW())
    K1: =(C$4/ROW())=INT(C$4/ROW())
    L1: =IF(J1+K1=2,ROW(),"")
    Fill these three columns down to the largest short side dimension you expect to use (ie. if you'll use 39 x 78 inch original images, fill down to row 39).
    What the formulas do:
    J1: The ROW() function returns the number of the row in which the formula is located. B$4/ROW() divides the number in B4 by the number of the row. INT(B$4/ROW()) does the same division, then strips off any fractional part of the result. The second = sign is a comparison operator. The formula compares the results of the parts on each side of the sign and, if they are equal, returns TRUE (or 1), and if they are not equal, returns FALSE (or 0).
    For the example (6), the formula would return TRUE in rows 1, 2, 3 and 6, marking the four factors of 6.
    K1: Does the same, but for the number in C4.
    For the example (8), the formula returns TRUE in rows 1, 2, 4 and 8, marking the four factors of 8.
    L1: This IF() formula checks for common factors. If the cells in both columns (J and K) in a particular row contain TRUE (ie. the number of that row is a factor of both the number in B4 and the number in C4), then the sum of the two cells will be 2 (TRUE=1, FALSE=0, TRUE + TRUE = 2), and the formula will return the result of the ROW() function (ie. the number of the row). For any other result, the formula will return 'empty' (ie. what's between the two double quotes "" ).
    For the example, cells L1 and L2 will contain 1 and 2 respectively; the rest of the cells in column L will be empty.
    M1: =MAX(L1..L39)
    M1: This formula completes the search by picking off and returning the greatest number in column L, or the Largest Common Factor for the two numbers. Adjust the second cell reference in the formula to reflect the largest original image size you'll use.
    Final Calculations
    D4: =B$4/$M$1*(ROW()-3)
    E4: =C$4/$M$1*(ROW()-3)
    D4: The formula divides the number in B4 by the LCF determined above to determine the size increment that will give integer results for both dimensions of the final image(s). It then multiplies that increment by 1 in row 4, by 2 in row 5, by 3 in row 6, and so on, for as many rows as you wish. The -3 in the second part of the formula is an offset to make the value of the multiplier three less than the row in which the formula is located.
    E4: Same formula, but acting on the number in C4.
    The first five results for the example ( 6 and 8) are:
    3 4
    6 8
    9 12
    12 16
    15 20
    and for a 4 x 6 initial image:
    2 3
    4 6
    6 9
    8 12
    10 15
    Regards,
    Barry

  • Just Installed CS4; Need Help With Font Names/Colors/Sizes

    In past versions of Dreamweaver, I think I clicked on "Use HTML instead of CSS" in the Preferences. I need to be able to select the font names, colors, and sizes from the Property Inspector.
    How do I set it up the same way in CS4. I have clicked on the toggle button in the Property Inspector for HTML instead of CSS, but it doesn't give me the menus to select font names (Arial, Helvetica, etc.), font size (1, 2, 3, 4, etc.) and font color (imagine your own).
    Thanks!
    Mike

    DW CS4 makes you use the CSS properties inspector because CSS is  the defacto web standard now.  HTML formatting is deprecated (obsolete) according to W3C web standards.
    There are three ways to use CSS in your site pages.
    Inline: A one-time style applied within the code as an attribute of a given element (or tag). This is similar to the old HTML formatting method but the code itself is a little different.
    Embedded: A style sheet declaration in the head of the document that will only effect that single page on the site.
    External: A physical CSS file containing rules (styles) that is linked to from multiple pages within the site.
    It doesn't matter if you have dynamically generated or static web pages.  CSS is still the most efficient way to style your content.
    DW CS4 - What's new in the Properties Inspector?
    http://www.communitymx.com/content/article.cfm?page=2&cid=8AAE7
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • I need help with the name of something

    You know when you go to a concert or live event and their are multi cameras which are being controlled by some system where like in FCP where they have the Multi Cam option where you just choose which camera you want to go live too? Anyway someone wanted me to record an event tonight where they said there are 8 plasma tvs and he wants me going around and getting footage that will display live on this TV! I kind of want to tell this guy that this is a very expensive thing to do I just dont know what the name of it is called when you have multiple cameras and you are controlling the cameras from a editing system..

    Sounds like to me you're talking about a SWITCHER. Basically, all the video sources (cameras) would be fed into the switching device. Then you use the switcher's control surface to cut/dissolve/star wipe, etc. between the incoming sources. The final output is routed to some type of capture/recording device.
    It's like editing, LIVE, with no "undo" buttons. However you switch things ends up on the "master".

  • Need help with Host Name

    I have several Macs and PC connected through my wireless network. On My wireless router I am able to see all the computers connected. All the PC's show their Host Name. All of the Macs show their correct IP addresses but show a host name of unknown. I have gone to system preferences and from there gone to sharing and set the macs local hostname to xxx.local. I have not checked the 'Use dynamic global hostname' option. After doing this the host name still shows as unknown. Where do I go in a mac to properly set the host name so it will show up on the wireless networks as well as the ip address?
    Thanks in advance for all help.

    Setting the host name in sharing was the answer. A reboot was required.

  • Need Help with Column Masking

    Hi All,
    I am looking for Masking options/techniques to mask few columns.
    I am aware of the option Oracle Data Masking Pack. But its costly. Can you please suggest some other way/technique using which I can achieve this?
    Thanks in Advance

    You can always try manual masking using datapump and sql and pl/sql (export original data and then create function that will put some random/other data instead of real ones). I have seen some clients that have implemented this type of masking. However, be aware that this will not give the best results, and that it will not come anywhere near quality of Oracle Data Masking Pack's masked data.
    Zoran

  • Need help with administrator name and password

    I was messing around on my macbook awhile ago and tried to change around my adminstrator name and now whenever I try to update I can't because the administrator name is wrong. I've tried setting it to different things but it never works. How do I re-set my administrator name and password so i can update?!

    Follow the instructions in this FAQ to regain administrator access to the computer. If there is an Open Firmware password set on the machine, the method documented will not work and you won't be able to resolve this issue on your own; in this case, take it to a retail Apple Store or other AASP.
    (19627)

  • Need help with Pivoting rows to columns

    Hi,
    I need help with pivoting rows to columns. I know there are other posts regarding this, but my requirement is more complex and harder. So, please give me a solution for this.
    There are two tables say Table 1 and Table 2.
    Table1
    name address email identifier
    x e g 1
    f s d 2
    h e n 3
    k l b 4
    Table2
    identifier TRno zno bzid
    1 T11 z11 b11
    1 T12 z12 b12
    1 T13 z13 b13
    2 T21 z21 b21
    2 T22 z22 b22
    As you can see the identifier is the column that we use to map the two tables. The output should be like below
    output
    name address email identifier TRno1 zno1 bzid1 TRno2 zno2 bzid2 TRno3 zno3 bzid3
    x e g 1 T11 z11 b11 T12 z12 b12 T13 z13 b13
    f s d 2 T21 z21 b21 t22 z22 b22
    Also we do not know exactly how many TRno's, zno's, etc each value in the identifier will have. There may be only 1 TRNO, zno and bzid, or there may be four.
    All the values must be in separate columns, and not be just comma delimitted. There are also other conditions that i have to add to restrict the data.
    So, can you please tell me what is should use to get the data in the required format? We are using Oracle 10g. Please let me know if u need any more information

    Something like this ?
    SCOTT@orcl> ed
    Wrote file afiedt.buf
      1  select a.name,
      2  a.address,
      3  a.email,
      4  b.* from (
      5  select distinct identifier
      6  ,max(trno1) trno1
      7  ,max(zno1) zno1
      8  ,max(bzid1) bzid1
      9  ,max(trno2) trno2
    10  ,max(zno2) zno2
    11  ,max(bzid2) bzid2
    12  ,max(trno3) trno3
    13  ,max(zno3) zno3
    14  ,max(bzid3) bzid3
    15  ,max(trno4) trno4
    16  ,max(zno4) zno4
    17  ,max(bzid4) bzid4
    18  from (select identifier
    19  ,decode(rn,1,trno,null) trno1
    20  ,decode(rn,1,zno,null) zno1
    21  ,decode(rn,1,bzid,null) bzid1
    22  ,decode(rn,2,trno,null) trno2
    23  ,decode(rn,2,zno,null) zno2
    24  ,decode(rn,2,bzid,null) bzid2
    25  ,decode(rn,3,trno,null) trno3
    26  ,decode(rn,3,zno,null) zno3
    27  ,decode(rn,3,bzid,null) bzid3
    28  ,decode(rn,4,trno,null) trno4
    29  ,decode(rn,4,zno,null) zno4
    30  ,decode(rn,4,bzid,null) bzid4
    31  from (select identifier,
    32  trno,bzid,zno,
    33  dense_rank() over(partition by identifier order by trno,rownum) rn
    34  from table2)
    35  order by identifier)
    36  group by identifier) b,table1 a
    37* where a.identifier=b.identifier
    SCOTT@orcl> /
    NAME       ADDRESS    EMAIL      IDENTIFIER TRNO1      ZNO1       BZID1      TRNO2      ZNO2       BZID2      TRNO3      ZNO3       BZID3      TRNO4      ZNO4       BZID4
    x          e          g          1          T11        z11        b11        T12        z12        b12        T13        z13        b13
    f          s          d          2          T21        z21        b21        T22        z22        b22
    SCOTT@orcl> select * from table1;
    NAME       ADDRESS    EMAIL      IDENTIFIER
    x          e          g          1
    f          s          d          2
    h          e          n          3
    k          l          b          4
    SCOTT@orcl> select * from table2;
    IDENTIFIER TRNO       ZNO        BZID
    1          T11        z11        b11
    1          T12        z12        b12
    1          T13        z13        b13
    2          T21        z21        b21
    2          T22        z22        b22
    SCOTT@orcl>Regards
    Girish Sharma

  • Need help with complex column creation command

    Hello, all
    I need help with a complex column creation command and SQL anywhere help is not sufficient for it.
    Here is the situation:
    I need to write a generic DDL "alter table" command, which can add/modify columns without knowing in advance if they already exist in the destination table.
    Is there a command, which looks like:
    alter table "table1" add (on existing modify) column1 <datatype> <default> ?
    Thank you,
    Arcady

    Hi.
    I don't think this is supported in alter table command. But you can code that inside an if statement which queries systables & syscolumns. Your code should be something like that:
    if (select count(*) from sysobjects, syscolumns where sysobjects.id = syscolumns.id and sysobjects.name = 'some_table' and syscolumns.name = 'some_column') < 1
    begin
        alter table some_table add some_column numeric(12) not null
    end
    This is an example..
    Andreas.

  • I have a "Contact" organization issue I need help with.  I organize multiple customers under their account affiliation. I place the people with their contact info under each account name by their dept/role in the notes section of their account. I am l

    I have a "Contact" organization issue I need help with.  I organize multiple customers under their account affiliation. I place the people with their contact info under each account name by their dept/role in the notes section of their account. I am looking to be able to directly dial / email from this info in yet notes section located within a contact. On Blackberry, the notes area entered in a contact can connect directly but on the iPhone those numbers/emails are inactive. I am trying to avoid having to create each of these individuals as a separate contact and keep them under their account affiliation. It is easier to find them.  This does not seem like that complicated of a request and hoping someone can tell me how or share an app that will enable the "notes" within a contact be "active". Hope this makes sense.

    I seem to recall that this question has been asked before and I'm pretty sure that the answer is that you can't do what you want to do with the native contact app. However, there are lots of contact apps out there that pull from the built app's data but have other features. Perhaps one of them would meet your needs.

  • Need help with Template - unbalanced #EndEditable tag

    I am unable to use this template to create a new page and get the "unbalanced #EndEditable tag" error.
    If I open the file independently it looks great - otherwise I get the error.
    Code for internal_students.dwt
    There is an error at line 45, column 79 (absolute position 2188)
    <div id="metanav"><!-- #BeginLibraryItem "/Library/metaNav.lbi" -->
    <p><a href="../Library/contact/index.html">Contact Us</a></p>
    <!-- #EndLibraryItem --></div>
            <div id="navigation">
                <div id="navigation_l">
                    <div id="navigation_r"><!-- #BeginLibraryItem "/Library/mainNav.lbi" --> <ul>
                            <li><a href="../index.html" class="first"><img src="../images/spacer.gif" alt="CAITE Homepage" width="75" height="20" border="0" /></a></li>
                            <li><a href="../about/index.html">About</a></li>
      <li><a href="../news/index.html">News And Events</a></li>
      <li><a href="../educators/index.html">For Educators</a></li>
      <li><a href="../students/index.html">For Students</a></li>
      <li><a href="../industry/index.html" class="last">For Industry</a></li>
                        </ul>
    <!-- #EndLibraryItem --></div>
    I need help with this as the site and templates were created 2/3 years before I arrived on the job.
    Thank you
    Cheryl

    Okay
    - This is on-line page  http://caite.cs.umass.edu/students/index.html
    If you want code from template here it is:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/internal_about.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>CAITE - Commonwealth Alliance for Information Technology Education</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <meta name="Description" content="Commonwealth Alliance for Information Technology Education (CAITE) to design and carry out comprehensive programs that address under representation in information technology (IT) education and the workforce. CAITE will focus on women and minorities in groups that are underrepresented in the Massachusetts innovation economy" />
    <meta name="Keywords" content="Commonwealth Alliance for Information Technology Education CAITE Massachusetts women minorities information technology IT" />
    <meta name="robots" content="all, index, follow" />
    <meta name="revisit-after" content="14 days" />
    <meta name="author" content="Outreach Web Team" />
    <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --><!-- InstanceEndEditable -->
    <link rel="shortcut icon" href="/images/favicon.ico" />
    <script type="text/javascript" src="../scripts/jquery.js"></script>
    <script type="text/javascript" src="../scripts/jquery.easing.js"></script>
    <script type="text/javascript" src="../scripts/jquery.pngfix.js"></script>
    <script language="JavaScript" type="text/JavaScript">
        <!--
        $(document).ready(function() {
            $("img[@src$=png], div#wrapper_l, div#wrapper_r, div#whatsnew").pngfix();
        //-->
    </script>
    <link href="../css/screenstyle.css" rel="stylesheet" type="text/css" media="screen" />
    <link href="../css/printstyle.css" rel="stylesheet" type="text/css" media="print" />
    </head>
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <body>  
        <div id="wrapper">
            <div id="metanav"><!-- #BeginLibraryItem "/Library/metaNav.lbi" -->
    <p><a href="../Library/contact/index.html">Contact Us</a></p>
    <!-- #EndLibraryItem --></div>
            <div id="navigation">
                <div id="navigation_l">
                    <div id="navigation_r"><!-- #BeginLibraryItem "/Library/mainNav.lbi" --> <ul>
                            <li><a href="../index.html" class="first"><img src="../images/spacer.gif" alt="CAITE Homepage" width="75" height="20" border="0" /></a></li>
                            <li><a href="../about/index.html">About</a></li>
      <li><a href="../news/index.html">News And Events</a></li>
      <li><a href="../educators/index.html">For Educators</a></li>
      <li><a href="../students/index.html">For Students</a></li>
      <li><a href="../industry/index.html" class="last">For Industry</a></li>
                        </ul>
    <!-- #EndLibraryItem --></div>
                    <!-- end navigation right -->
                </div><!-- end navigation left -->
           </div><!-- end navigation -->
            <div id="wrapper_l">
                <div id="wrapper_r">
                      <div id="innerwrapper">
                        <div id="internalBanner-print"> <h1>Commonwealth Alliance for Information Technology Education (CAITE)</h1></div>
                        <div id="internalBanner"><!-- InstanceBeginEditable name="internalBanner" -->
                          <div class="students-banner">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="125" height="188" align="left" valign="top" id="homeImage"><img src="../images/logo_vertical_small.png" alt="CAITE" width="105" height="188" /></td>
                                <td align="left" valign="top" id="internal-banner-quote"><div id="internalQuote">
                                    <div id="internalQuote-inner">
                                      <p>CAITE designs and carrys out comprehensive programs that address under-representation in information technology (IT).</p>
                                  </div>
                                </div></td>
                              </tr>
                            </table>
                        </div>
                        <!-- InstanceEndEditable --></div> <!-- end banner -->
                        <div id="internalContent">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="317" align="left" valign="top" id="secondary-content">
                                  <!-- InstanceBeginEditable name="SecondaryNav" --><!-- #BeginLibraryItem "/Library/studentNav.lbi" -->
                                  <h3><a href="../students/index.html">For Students</a></h3>
                                  <div id="secondaryNav">
                                    <ul>
                                      <li><a href="http://www.takeITgoanywhere.org" target="_blank">TakeITgoanywhere.org</a></li>
                                    </ul>
    </div><!-- #EndLibraryItem --><!-- InstanceEndEditable -->
                                </td>
                                <td align="left" valign="top" id="contentCell"><!-- InstanceBeginEditable name="mainContent" -->
                                  <h1>For Students</h1>
                                  <p>The University of Massachusetts Amherst is leading a Commonwealth Alliance for Information Technology Education (CAITE) to design and carry out comprehensive programs that address under representation in information technology (IT) education and the workforce. CAITE will focus on women and minorities in groups that are underrepresented in the Massachusetts innovation economy; that is, economically, academically, and socially disadvantaged residents.</p>
                                  <p>The project will pilot a series of outreach programs supported by educational pathways in three regions (one rural, one suburban, and one urban). The project will include work with high school teachers, staff, and counselors. CAITE will identify best practices and disseminate, deploy, extend and institutionalize these best practices statewide and nationally.</p>
                                  <p>Community colleges are the centerpiece of CAITE because of the central role they play in reaching out to underserved populations and in serving as a gateway to careers and further higher education.</p>
                                  <p>This project will build a broad alliance built on its leadership in and partnership with the Commonwealth Information Technology Initiative (CITI), the Boston Area Advanced Technological Education Center (BATEC), regional Louis Stokes Alliances and NSF EGEP programs, and other partnerships and initiatives focused on information technology education and STEM pipeline issues</p>
                                  <p> </p>
                                <!-- InstanceEndEditable --></td>
                              </tr>
                          </table>
                        </div>
                        <div id="alliances">
                              <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td height="30"  align="left" valign="top"><h2><a href="../about/alliances.html">Alliances</a></h2></td>
                                </tr>
                                <tr>
                                  <td  align="center" valign="middle"><!-- #BeginLibraryItem "/Library/AllianceTable.lbi" --><p>
    <table border="0" cellpadding="2" cellspacing="0">
                                    <tr>
                                      <td width="35"  align="center" valign="middle"> </td>
                                      <td  align="center" valign="middle"><a href="http://www.citi.mass.edu/" target="_blank"><img src="../images/logo_citi.jpg" alt="Citi" width="65" height="50"  border="0 /"></a></td>
                                      <td align="center" valign="middle"><a href="http://www.batec.org/index.php" target="_blank"><img src="../images/logo_batec.jpg" alt="BATEC" width="69" height="46" border="0" /></a></td>
                                      <td  align="center" valign="middle"><a href="http://www.nsf.gov/index.jsp" target="_blank"><img src="../images/nsflogo.gif" alt="NSF" width="64" height="65" border="0" ></a></td>
                                      <td  align="center" valign="middle"><a href="http://www.nelsamp.neu.edu/" target="_blank"><img src="../images/nelsamplogo.gif" width="100" border="0"></a></td>
                                      <td  align="center" valign="middle"><p><a href="http://mysite.verizon.net/milnerm/" target="_blank"><img src="../images/umlsamp.png" width="85" height="63" border="0"></a></p>                                  </td>
                                      <td  align="center" valign="middle"><a href="http://www.neagep.org/index.asp" target="_blank"><img src="../images/nealogo.gif" border="0" ></a></td>
      </tr>
                                  </table>
    <!-- #EndLibraryItem --></td>
                                </tr>
                          </table>
                        </div>
                    </div> <!-- end inner wrapper -->
                </div><!-- end wrapper right -->
            </div><!-- end wrapper left -->
            <div id="bottom">
                <div id="bottom_l">
                    <div id="bottom_r"> </div><!-- end bottom right -->
                </div><!-- end bottom left -->
            </div>  <!-- end bottom -->
        </div><!-- end wrapper -->
        <div id="copyright"><!-- #BeginLibraryItem "/Library/copyright.lbi" -->
    <p>Sponsored by CAITE an NSF CISE Broadening Participation in Computing Alliance<br />
    &copy; copyright 2008 <a href="http://www.umass.edu/" target="_blank">University of Massachusetts, Amherst</a></p>
    <font color="#666666"><br>
    </font>
    <p><font color="#666666" size=2>  This material is based upon work supported by the National Science Foundation under Grant No.s NSF-0634412 and NSF-0837739. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.</font> </p>
    <!-- #EndLibraryItem --></div>    
    <!-- end copyright -->
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try {
    var pageTracker = _gat._getTracker("UA-7435501-1");
    pageTracker._trackPageview();
    } catch(err) {}</script>
        </body>
    <!-- InstanceEnd --></html>

  • Need Help with Address Display

    I need help with APEX.
    Here's my situation:
    I have a report that displays brief employee information. Among the information displayed is the Address. Right now, it's display as:
    Mr X
    Employee Id
    Accounting Department
    Address 1
    Mr X
    Employee Id
    Accounting Department
    Address 2
    I would like it to display
    Mr X
    Employee Id
    Accounting Department
    Address 1
    Address 2
    1) I have thought of using the Break functionality; however, the function only allows break at column 1, 2, 3. As you can see Address starts at column 4. Also, Address has a few columns; Address Line 1, Address Line 2, City, State, Zipcode.
    2) Stragg functions - I'm not sure how to implement it since it has more than 1 columns.
    Any ideas?
    Thanks in advance
    Andrew

    The example I gave you, using analytic functions is a simple one.
    Now, you are saying:
    1. some of the employees may have two adresses?
    2. if this is the case, your employee appears in the report twice?
    3. you don't want his name, employee id and accounting department to appear twice?
    4. only his address has to be displayed?
    If the answer to all the questions is yes, this kind of query will help you. I repeat:
    SELECT CASE
              WHEN LAG (employee_id) OVER (ORDER BY employee_id) =
                                                        employee_id
                 THEN NULL
              ELSE employee_name
           END employee_name,
           CASE
              WHEN LAG (employee_id) OVER (ORDER BY employee_id) =
                                                          employee_id
                 THEN NULL
              ELSE employee_id
           END employee_id,
           CASE
              WHEN LAG (employee_id) OVER (ORDER BY employee_id) =
                                                employee_id
                 THEN NULL
              ELSE accounting_department
           END accounting_department,
           street, postal_code, city, state, country
      FROM your_employees_table;Give it a try.
    Denes Kubicek

  • Need help with writing a query with dynamic FROM clause

    Hi Folks,
    I need help with an query that should generate the "FROM" clause dynamically.
    My main query is as follows
    select DT_SKEY, count(*)
    from *???*
    where DT_SKEY between 20110601 and 20110719
    group by DT_SKEY
    having count(*) = 0
    order by 1; The "from" clause of the above query should be generated as below
    select 'Schema_Name'||'.'||TABLE_NAME
    from dba_tables
    where OWNER = 'Schema_Name'Simply sticking the later query in the first query does not work.
    Any pointers will be appreciated.
    Thanks
    rogers42

    Hi,
    rogers42 wrote:
    Hi Folks,
    I need help with an query that should generate the "FROM" clause dynamically.
    My main query is as follows
    select DT_SKEY, count(*)
    from *???*
    where DT_SKEY between 20110601 and 20110719
    group by DT_SKEY
    having count(*) = 0
    order by 1; The "from" clause of the above query should be generated as below
    select 'Schema_Name'||'.'||TABLE_NAME
    from dba_tables
    where OWNER = 'Schema_Name'
    Remember that anything inside quotes is case-sensitive. Is the owner really "Schema_Name" with a capital S and a capital N, and 8 lower-case letters?
    Simply sticking the later query in the first query does not work.Right; the table name must be given when you compile the query. It's not an expression that you can generate in the query itself.
    Any pointers will be appreciated.In SQL*Plus, you can do something like the query bleow.
    Say you want to count the rows in scott.emp, but you're not certain that the name is emp; it could be emp_2011 or emp_august, or anything else that starts with e. (And the name could change every day, so you can't just look it up now and hard-code it in a query that you want to run in the future.)
    Typically, how dynamic SQL works is that some code (such as a preliminary query) gets some of the information you need to write the query first, and you use that information in a SQL statement that is compiled and run after that. For example:
    -- Preliminary Query:
    COLUMN     my_table_name_col     NEW_VALUE my_table_name
    SELECT     table_name     AS my_table_name_col
    FROM     all_tables
    WHERE     owner          = 'SCOTT'
    AND     table_name     LIKE 'E%';
    -- Main Query:
    SELECT     COUNT (*)     AS cnt
    FROM     scott.&my_table_name
    ;This assumes that the preliminary query will find exactly one row; that is, it assumes that SCOTT has exactly one table whose name starts with E. Could you have 0 tables in the schema, or more than 1? If so, what results would you want? Give a concrete example, preferably suing commonly available tables (like those in the SCOTT schema) so that the poepl who want to help you can re-create the problem and test their ideas.
    Edited by: Frank Kulash on Aug 11, 2011 2:30 PM

Maybe you are looking for

  • Check open quantity PO orders

    Hello, When we create an purchase order for a certain material and vendor, we want the system to check if there exist an open purchase order for the same material and vendor and in that case give warning. What is the best way to do this? thanks in ad

  • Export to PDF in WAD

    Hi, I am using Export to PDF/excel option in WAD 7.O, when i am exporting the web temp, it is exporting successfully, but 1. It is not displaying template heading 2. Icons - variable screen, filter, query information, print, export to PDF and export

  • I cannot view pictures on pinterest or other websites. Load images Auto is enabled.

    I cannot view images on sites like pinterest or photo sharing sites, the box comes up blank. I've deleted history, the "Load Images Automatically" is enabled. I only have this problem on foxfire. The images come up fine on Safari on my Mac. Please he

  • Why can't i open my app store?

    why can't i open my app store?

  • Trouble accessing the most basic JRE functions?!!!

    I'm in my 1st semester for Java programming, I've just downloaded the latest SDK to Windows XP, & everything appears to be fine. (the dancing bird etc) But I cannot locate the Text Pad in order to run the most basic Java commands to test my compiler.