Chart Redundancy(Duplicate terms)

Hi Friends
I select a field of a BI query in a Chart(Coulmn) from Category Axis For example: Region is a field and supposse its value is: North,South,East and West and these values are repeated in BI Query many times .
I select a field in the data seriesin Chart, For example Population.
Model works fine But when i see the output(After Deploying) then value of the field Region is repeated like this: North North North North North South South South East East East East East East West West West West West West West----
I want Population against North South East West , means North South East West should comes only one time, without Changing the data in BI because in BI, field Region contains these values repeatdly(many times)
Can we Do this in VC and I am Using Portal 7.0 and VC7.0
Any helpful answer will be appreciated by rewarding points.
Thanks & Regards
Naresh Kumar

Naresh,
You can use the 'group by' operator to achieve this. Drag the result from the output port of the BI query to a 'Group By' operator. On the operator, create a group for your category say region (by selecting group1 frm the dropdown)..and then do a 'sum' on the population or any other desired key figure. Drag the result from the operator to the chart view and chart as usual.
Result -->instead of repeated values for regions, you'll see a distinct entry on the chart with values for population summed up across the repeated entries.
prachi

Similar Messages

  • Chart DateTimeAxis Duplicate Time

    Do you know if there is a way to handle duplicates in a
    DateTimeAxis? For example, if my dataset is
    Time, Quantity
    12:00:01pm, 1000
    12:00:02pm, 500
    12:00:02pm, 500
    The chart only shows Quantity = 500 at time 12:00:02pm. Is
    there an automatic way to add them together?
    Thanks very much.

    Hi,
    Create Alias tables (since they are playing different roles) for time dimension in the Physical layer and join that with your fact using physical joins.
    After Importing to physical layer, if duplicate keys exists, delete the duplicate keys.
    In this scenario two keys will be exist on the fact for the time dimension, delete those and create the joins between the aliases.
    Thanks,
    Vino

  • Converting Excel 2010 charts creates duplicate pages

    Anyone else have this problem?  I am using Microsoft Office 2010 and Acrobat Pro X
    1. Create a Microsoft Excel 2010 file, throw in some data, and create at least 2 charts (column, line, pie... doesn't matter)
    2. Select a chart and under the Chart Tools > Design tab, click "Move Chart Location" to move both of these charts to their own dedicated SHEET.
    3. You should now have two new tabs along the bottom for the charts.  Select both of the tabs by clicking the first tab, holding SHIFT, and clicking the second tab. *
    4. Go to the Acrobat tab and click "Create PDF."  Chart 1 and Chart 2 should already appear in the "Sheets in PDF" box, so go ahead and click "Convert to PDF"  You should end up with a 2 page PDF..... right?
    5. Hey Presto!  A 4 page document!  (Try this with THREE charts... you get a NINE page document.  Four charts?  You guessed it, 16 pages.)
    * NOTE: This problem only occurs if you select the tabs by the method described in Step 3.  If you select only ONE tab, and then select the worksheets using the Acrobat dialog box, it seems to work fine.  So, yeah, there is a workaround... but it seems like something that should work either way, right?

    I don't want to beat a dead horse here but... anyone have any insight on this?  Can anyone else duplicate this problem?  Is this a bug that might be fixed in the future?
    Thanks

  • Redundant duplicates in Modified folder

    Hello all,
    I've recently started using iPhoto (ver. 6) primarily for its entry-level editing options and as a nice way to see all my photos in central location whilst retaining search and categorisation functions.
    I keep all my media on a partition of the hard drive so its all accessible from osx or xp (I have to use windows quite often) and I usually download photos into monthly folders which I've manually imported to the iPhoto library (copies box unchecked, of course).
    One problem I'm encountering is that duplicates of the original photos are being made in the 'modified' folder in the users/pictures/iphoto directory, even though these images are exactly the same as the originals. I've read that iPhoto will do this for camera auto-rotated images, but it only seems to do this for some. I have no idea how/why it's making the distinction between duplicating or not. Additional subfolders are also being created every time I import, eg there's a December, December_2, etc in both the originals and modified folders.
    Using the 'revert to original' function doesn't seem to do anything, as the file association is exactly the same before or after. If the original file were used I could go back and manually delete these extraneous folders (against the advice of not touching anything!)
    This may seem pretty trivial, but having so many duplicates just wasting space and having an app that I don't know what it's going to do or be able to set up to function the way I need it to is not terribly useful to me.
    Thanks for reading this post - sorry it's kinda long...

    Welcome to the Apple Discussions. As Terence already pointed out if the file has the rotate tag administered by the camera it will have a modified version created that's rotated. To avoid this you can use the free contextual menu application PhotoTool CM or the free editor Xee to losslessly rotate those portrait file before importing into iPhoto.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Charts: fixed series formatting

    Hi there,
    following scenario:
    I use a column chart in order to display 12 months rolling values (ACT, BUD, PY).
    Initially only one column (ACT) is shown per month.
    I have got three checkboxes (ACT (always checked), BUD, PY) that allow the user to display additional values per month.
    A query with three key figures (ACT, BUS, PY) in rows serves as datasources. In the properties of the chart "ACT" is selected initially.
    Using the checkboxes a script adds the additional values by using "setDataSelection".
    Now my problem:
    I need to have fixed series formatting with regard to colors. That means ACT should always be blue, BUD red and PY grey. Independent from selected checkboxes.
    If the user checks in the following order ACT - BUD - PY everything works fine. If he e. g. then unchecks "BUD", PY appears red and not grey.
    It would be great if anybody has a hint.
    Thanks a lot in advance
    Mark

    Hi Mark,
    I am not sure if this is possible directly, since a lot of Flexibility is there in the Chart component(in terms of changing the type dynamically, settind data selection etc.) the chart is built in such a way that the Data series colour is based on the no. of series and not the Series name
    If this is a complete necessary specification, then you have a workaround,
    If ACT is always shown, then create two charts
    1) Create a chart with 1st series as Blue, 2nd as Red, and third as Grey.
    2) Create a chart with 1st series as Blue, and 2nd Series Grey,
    Scenario 1: ACT & BUD: Chart 1
    Scenario 2: ACT & BUD & PY: Chart 1
    Scenario 3: ACT & PY: Chart 2
    If even ACT is controlled by Checkboxes, things will be a bit more complicated.
    Regards,
    Fazith Ali Z.

  • Extracting unique values from (non-category) columns for chart

    Hello:
    I've created a worksheet to keep inventory of my Intellivision games.  It has the following columns:
    Publisher
    Class
    Network
    Title
    Quantity
    (misc...)
    The "Class" represents whether the game is "complete in box" or "loose cartridge."  The "Network" represents the general genre or game cateogory.  The quantity is how much I have of each.
    I have set the first three columns as categories:  Publisher, Class, and Network.  I also created a bar chart based on the Title and Quantity columns, to show how many I have of each.
    The problem I have is that, although it looks real cool and helps me keep the games organized, since a title can appear in more than one "Class" (e.g., I can have one in box, and two loose), the chart includes duplicates, and they are not grouped together.
    Is there a way that I can create a graph (or a secondary table) that exctracts only the UNIQUE values from a column that may contain duplicates?
    Note that I don't want to put the "Title" column in a category.  I want to group by the three major categories and list the games on each.
         -dZ.

    From the Numbers Help Menu, download the Numbers User Guide. Read the first three or four chapters to get a feel for the app. It's well written and won't take long to read that much.
    Then use the Table of Contents and the Search tool to get additional specific directions.
    First, delete all unneeded Rows and Columns from your data table. If you have patches of data in a larger table, Cut the patches and Paste them to a blank Sheet area to create separate dedicated tables for your various needs. These small special purpose tables are like Named Ranges in Excel. Name them in the Sheets Pane.
    This is how Numbers was intended to be used. The User Guide will describe how to reference cells in one table from expressions in another table. If you use the point and click method of creating references from within the equation editor it won't matter a bit that the tables are separate.
    Come back here for specific help on anything you are having trouble with.
    Jerry

  • PIe chart to show parts of a whole

    Hi,
    I am trying to create a pie chart that shows students the number of successful class periods out of a total number of 70. I have a column displaying the number of successful days at the end of the trimester, but don't know how to "tell" the pie chart how many days are possible.
    Any help on this would be appreciated!
    Thank-you,
    Dave

    Hi Dave,
    Enter the number of possible days in the table?
    What Numbers needs to construct the chart, though, is the number of 'successful' days and the number of 'unsuccessful' days. Given those two data, Numbers will automatically construct the chart showing each as the correct fraction of the whole (pie). The Chart format inspector will give you several choices of how to label the segments, including 'percentage.'
    At the end of the trimester, when all possible days have passed, the number of 'unsuccessful' days is 'possible' days - 'successful' days, and 'possible' days is a fixed number.
    If you want to use the chart within the term, you need to decide whether you want a chart that shows the 'successful' days as a percentage of ALL possible days (Chart 2), as a percentage of the possible days up to the current date (Chart 1), or to add a third category, 'days to come' (Chart 3).
    Each chart uses the data indicated by the legend under the chart.
    Formulas for table 2 (For Chart):
    B2: =COUNT(Main::$A)
    B3: =COUNTIF(Main::$A,"<"
    Column A on the Main table has two conditional format rules applied:
    Equal to  A2: (yellow fill)
    Greater than  A2 (grey fill)
    Regards,
    Barry
    EDIT: I see I neglected to recalculate the day numbers after adding a second header row. Oops! With corrected numbers, today is day 15, and charts show results to end of day 14. Formulas listed are not affected.
    Message was edited by: Barry

  • Two different site collection cannot use the same Term Set . Is there any solution for this ?

     I can save department site collection as site collection template. Also I can use this template for a new department site collection creation.
    But Managed Meta data Navigation throws the following error
    •Error loading navigation: The Managed Navigation term set is improperly attached to the site. (Correlation ID: 6fa6b19c-820a-001d-b9e0-d939d702050a)

    Hi ,
    this is a limitation. please refer this
    http://social.technet.microsoft.com/forums/sharepoint/en-US/029b7e2e-661f-4ac3-bfcb-eb99b43016f2/the-selected-term-set-is-already-used-by-another-site
    Unfortunately in SP 2013, a termset can only be used by a single site collection for navigation. This is a known limitation. There is no out of the box way to use a central termset to manage navigation across site collections. You need to develop a custom sitemap
    provider to do that.
    Another way to do this is to create termset for each site collection and reuse/pin the terms from the central termset instead of creating duplicate terms. You can script this easily using Powershell. This has some limitations though.
    Also, you can try little customization. Follow this link -
    http://www.mavention.com/blog/building-global-naviga
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • One table-Multiple charts...same rules

    I have one table documenting 36 weeks of information. I have six charts illustrating each six week segment. However, every six weeks I have to format each chart so all the colors (for the line graph) match up with the previous six weeks. Is there a way I can copy and paste the corresponding colors for each graphed item so that I do not have to redo the formating every six weeks?  

    you should select an existing chart, then duplicate it (by copy/paste, or option drag,or <command>+d), then highlight the new chart and move the source data in the table
    Here I duplicated my first chart (so I have two charts souced fromt he same data in the table):
    Here I moved the data selector for the chart:

  • Visual Studio - Crystal Report: Abnormal Behavior from Crystal Report with Charts

    Hi,
    I'm using Crystal Report 13 under visual studio 2012 where i build a report that contain pie chart and bar Chart in two different sections in the report header the report get the data from a DataTable.When i display the report in Crystal Report Viewer it is fine and as expected but when printing the report i get the first chart overriding the second chart: here the right report as displayed in CRV:
    And here the wrong print out where the pie chart is duplicate and override the bar chart:
    I inserted both charts in two sections in Report header and they get the data from the same DataTable. the pie chart: On change of: Discipline show values SumTotals and the Bar Chart On Change of Disciplie show values SumTotals and SumCompleted. I need your help to prevent Pie chart form overriding the bar chart by duplicating itself
    Thanks in advance.

    Hi Hussein
    I moved your post to the  SAP Crystal Reports, version for Visual Studio
    SCN Space.
    First I'd like to make sure you are using Service Pack 8 for CRVS:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    (Note SP 9 should be releasing in a few days - if yo want to wait).
    Next, what happens if as a test, you export the report to an rpt file format and then view it in the designer without refreshing?
    Is this a web or a win app?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Strip Chart history buffer

    Hallo,
    I have a little crazy question - is there some possibility to access strip chart history buffer?
    I'm just lazy to develop data circular buffer management ....
    Thanks a lot for any hint!
    George

    Hi, Evan,
    thanks for reply.
    My idea is use already used memory of the strip chart (not duplicate the amount of allocating memory) - mainly to export recorded traces  - e.g. when user decided: "this is interesting - let's make some analysis of this, maybe at home".
    The Strip Chart hasn't simple solution to use cursors - and by exporting the history buffer (traces) to some file / array is quite easy use standard graph with cursors etc.
    Of course, the cicular buffer is OK.
    George

  • Internet pipe redundancy

    I have Internet pipe from data center poeple. This pipe is directly going to cisco 2950 24 port switch(in public VLAN). I have another same switch trunk with primary switch.
    now in my production setup switch1 is the single point of Failure. Some body needs to manualy put the Internet pipe to switch 2.
    how DO I make my setup redundant in terms of Internet pipe ... My data center provider not able to provide Y connection--
    Please suggest me the solution

    Hi,
    I'am attaching my network digram in MS power point.
    Read Colour -- Public VLAN
    Gree Colour -- Private VLAN
    Doted line -- Trunk and HOW failover cable
    Internet pipe comming to switch1 public VLAN.
    I have only Cisco Pix 515E in HA mode -- I don't have router.
    My machine NIC1 connected to switch1 amd NIC2 connected to switch2 and BOTH the NIC in TEAM mode.

  • Fully Redundant Network

    Hello everyone,
    I have some rack space in a colo and would like to know if what I have in mind is actually correct and perhaps if there is a better way to do it.
    I want to setup full redundancy in terms of the LAN and WAN. I have 2 drops from the datacenter for redundant internet connection.
    I have 2 managed dell switches (cisco oem from what i understand) and 2 ASA 5505's.
    I have just a simple ESX environment and my boxes have NIC Teaming setup already, which seems to be the ideal configuration for redundant network.
    I plan to have 2 VLan's, 1 for WAN and 1 for LAN on each switch (2 total).
    I understand that I will want to have HSRP setup, but I am not sure how to go about that or if the 5505 is even able to do HSRP.
    So I will have just 1 subnet and just have all servers and SAN connected to 2 switches and each ASA on 1 switch with HSRP, sound right?
    It sounds like i need hsrp for both wan and lan.
    Did i forget anything? Thanks a ton for all the help!

    Hello everyone,I
    have some rack space in a colo and would like to know if what I have in
    mind is actually correct and perhaps if there is a better way to do it.I
    want to setup full redundancy in terms of the LAN and WAN. I have 2
    drops from the datacenter for redundant internet connection.I have 2 managed dell switches (cisco oem from what i understand) and 2 ASA 5505's.I
    have just a simple ESX environment and my boxes have NIC Teaming setup
    already, which seems to be the ideal configuration for redundant
    network.I plan to have 2 VLan's, 1 for WAN and 1 for LAN on each switch (2 total).I understand that I will want to have HSRP setup, but I am not sure how to go about that or if the 5505 is even able to do HSRP.So
    I will have just 1 subnet and just have all servers and SAN connected
    to 2 switches and each ASA on 1 switch with HSRP, sound right?It sounds like i need hsrp for both wan and lan.Did i forget anything? Thanks a ton for all the help!
    Hi,
    It will be helpful if you can provide the scehmatic diagram of the current setup and we can guide the best design with the expected one any how what i have understand with the above comments is you have two internet links with two routers,two switches,two ASA5505 and all servers are having two NIC with teamiung configured.
    To have simple redudant network configure two vlans in switches one with external where your router and ASA 5505 interface will be connected and anothere with local lan where another port of ASA 5505 will be connected an will act as gateway for local servers.
    To have redundancy for internet links alos configure HSRP in router local interface with tracking configuration so that one links goes down traffic will be shifted to other one without any delay,for that you need to configure a defualt route towards the vip of HSRP of router in ASA 5505.
    Check out the below link on HSRP with tracking configuration on routers
    http://www.networkstraining.com/cisco-router-hsrp-configuration/
    http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094e8c.shtml
    and on ASA 5505 you need to configure two vlan as mentioned and for local and external interface configure a cluster setup with HSRP in ASA 5505
    Check out the below link for ASA 5505
    http://www.articlesbase.com/networks-articles/stepbystep-configuration-guide-for-the-cisco-asa-5505-firewall-803076.html
    http://www.cisco.com/en/US/docs/security/asa/asa80/configuration/guide/asacfgIX.html
    Hope to Help !!
    Remember to rate the helpful post
    Ganesh.H

  • MY PRECIOUS Hard Drive Space

    First time posting a question.
    So I have an iBook g4. My problem has to do with my Hard Drive. I am down to my last 2GB of hard drive space --oh no! What do I do to get more hard drive space??? I LOVE DOWNLOADING PODCASTS TO LISTEN TO WHEN I'M RELAXING AND DL MUSIC AND PHOTOS. I LOVE MY MAC and I'm really stupid when it comes to technical computer stuff. But i'm willing to do ANYTHING to keep my files intact. I need some help...
    ANY SUGGESTIONS WOULD BE GREATLY APPRECIATION

    Hi Heyitsme and welcome to Apple Discussions.
    "First time posting a question".. and a very good one it is too. You are sailing very close to the wind with only 2 GB of free space. !0% of free space is considered to be the absolute bare minimum with 15% or greater considered to be ideal.
    In the long term you need to consider getting an external drive to store, perhaps, your iTunes library if it is large, and/or your iPhoto library. A better long term solution would be to, not only have an external for back up, but also have a larger internal drive installed. I believe 250 GB is the current largest size available for iBooks which require a PATA/EIDE 2½" drive. The drives themselves are relatively inexpensive, the installation more expensive unless you feel confident in DIY. Post back if you require more info.
    In the short term you need to clear some space if only for the immediate health of your HD, OSX, and your data.
    There are a few quick fixes that you can do immediately with no ill effects.
    For example, on my iBook, I have removed GarageBand from Applications and its Loops from HD/Library/Application Support. As my iBook only has a combo drive and I'm not into video editing anyway I have trashed iDVD & iMovie. (Not DVD player). I have also trashed preloaded games and World Book, and its associated files.
    OS X comes with a vast library of printer drivers, the large proportion of which will never be used by the average user.
    Printer drivers are in the HD/Library/Printers folder. You can safely delete any named drivers that you don't have a printer for. For example, if you have a Canon, you can remove Epson, Lexmark, Hewlett Packard & Brother drivers. Epson alone takes up close to 1gb. You can even remove specific drivers from within the manufacturer's folder. For example, if you have an Epson C86 you can safely trash any other specific drivers in the Epson folder like C46, C66 etc. If, at a later date, you buy a printer whose driver you removed they can be added from your install disk, the disk that comes with the printer or downloaded.
    A word of warning: More cautious heads than mine advise against messing in the HD/Library, but if you stick to the examples above, i.e. GarageBand loops, World Book and printer drivers you will be OK.
    Certainly, I have had no problems with my system after removing those examples.
    Check, too, in your music folder. If you have 'Copy files to iTunes music folder when adding to library' selected in iTunes preferences/Advanced it is possible that you have, say, 'xyz song' in the first level of your Music folder and the same song in Music/iTunes/iTunes Library. If you are sure that you do have 'xyz song' in iTunes, it is safe to delete from 'Music'. The same principle can apply to your Pictures folder and iPhoto Library, but staying with iTunes for a moment, with iTunes open select Edit in the menu bar, then 'Show duplicate songs'. You can trash duplicates if you are sure that they are true duplicates, i.e. exact name, artist and file size. Another little note of caution, neither iTunes nor iPhoto likes having its library messed with from within a Finder window. Resolve duplicates from within the respective application only.
    If you are downloading a lot of stuff it is possible that you have a large 'Incomplete' folder built up over time from aborted downloads. This folder can be found in your 'Home' folder. It is perfectly safe to remove any and all files from this folder.
    Downloaded applications can be a cause of wasted space. An application is usually downloaded as a .DMG (Disk Image). Once the app is installed in your Applications folder there is no necessity to keep the .DMG, although if it is a 'paid for' app it would be wise to back it up to an external/burn to a CD before removing it from your internal. Sometimes apps are downloaded as .zip files, leaving two largely redundant duplicates of the same thing. Again, back up one or the other file type to another medium before trashing if the app is paid for or difficult to find again.
    Some excellent advice has been posted by ~JB~ , with corresponding words of caution.
    Edit: The application Whatsize, linked to in ~JB~'s advice above, used to be a free application. It is now shareware, though I believe it is still free to use on smaller drives such as yours. You can get similar information using Finder, however.
    Open a new Finder window, select Command (⌘) 2, for list view, then Command (⌘) J. Check the 'This window only' button and the 'Size' and 'Calculate all Sizes' boxes. Wait a few moments while it 'calculates'. You should be able to see which folders are taking up the most space. DO NOT REMOVE OR MESS WITHIN THE "SYSTEM" FOLDER or, with the exception of GarageBand loops and printers, the Library folder.
    Dr Smoke has some advice here too.
    Last but by no means least, when you have finished dumping your unwanted stuff in the trash, don't forget to empty it. You haven't regained the space until you do
    …and definitely last this time: If in doubt leave it alone and ask!
    Have fun,
    Adrian

  • The mechanics of the WHERE clause

    I’ve been out in industry for over 10 years now doing DB work most of that time. Lately I’ve been doing some work that is starting to challenge my long held assumptions about the internal workings of SQL Server, specifically what exactly is happening when
    I do joins and where clauses.
    I was explaining to someone that when doing a join putting in a where clause limits the amount of records that are available to do the join on thereby making the query faster. My thought was if a table has 100MM records but only 50MM of those meet the WHERE
    criteria then the JOIN clause wouldn’t try matching the 50MM records that don’t meet the WHERE clause.
    I did some work that afternoon and the empirical results didn’t match the expected outcome of a query I had written in terms of execution time. I don’t think my understanding of what goes on during a JOIN is correct. Can someone educate me?

    Here is how a SELECT works in SQL ... at least in theory.  Real products will optimize things, but the code has to produce the same results. 
     a) Effectively materialize the CTEs in the optional WITH clause. CTE's come into existence in the order they are declared so only backward references are
    alllowed. A CTE can be recursive. Think of them as VIEWs that exist only in the scope of the query. In practice, if they are used once then they are implemented as an in-line macro.
     b) Start in the FROM clause and build a working table from all of the joins, unions, intersections, and whatever other table constructors are there.  The <table expression> AS <correlation name> option allows you give a name to this working
    table which you then have to use for the rest of the containing query.  Ther are UNIONB, INTERSECT and EXCEPT set construtors, LATERAL tables, table-valued funcitosn and all kinds of things happening in here. 
     c) Go to the WHERE clause and remove rows that do not pass criteria; that is, that do not test to TRUE (i.e. reject UNKNOWN and FALSE).  The WHERE clause is applied to the working set in the FROM clause.  
     d) Go to the optional GROUP BY clause, partiton the original table into groups and reduce each grouping to a *single* row, replacing the original working table with the new grouped table. The rows of a grouped table must be only group characteristics:
    (1) a grouping column (2) a statistic about the group (i.e. aggregate functions) (3) a function or constant(4) an expression made up of only those three items.  The original table no longer exists and you cannot reference anything in it (this was an error
    in early Sybase products).  
     e) Go to the optional HAVING clause and apply it against the grouped working table; if there was no GROUP BY clause, treat the entire table as one group. 
     f) Go to the SELECT clause and construct the expressions in the list. This means that the scalar subqueries, function calls and expressions in the SELECT are done after all the other clauses are done.  The AS operator can also give names to expressions
    in the SELECT list.  These new names come into existence all at once, but after the WHERE clause, GROUP BY clause and HAVING clause have been executed; you cannot use them in the SELECT list or the WHERE clause for that reason. 
    If there is a SELECT DISTINCT, then redundant duplicate rows are removed.  For purposes of defining a duplicate row, NULLs are treated as matching (just like in the GROUP BY).  
     g) Nested query expressions follow the usual scoping rules you would expect from a block structured language like C, Pascal, Algol, etc.  Namely, the innermost queries can reference columns and tables in the queries in which they are contained.  
     h) The ORDER BY clause is part of a cursor, not a query. The result set is passed to the cursor, which can only see the names in the SELECT clause list, and the sorting is done there.  The ORDER BY clause cannot have expression in it, or references
    to other columns because the result set has been converted into a sequential file structure and that is what is being sorted.  
    As you can see, things happen "all at once" in SQL, not "from left to right" as they would in a sequential file/procedural language model. In those languages, these two statements produce different results:
      READ (a, b, c) FROM File_X;
      READ (c, a, b) FROM File_X;
    while these two statements return the same data:
    SELECT a, b, c FROM Table_X;
    SELECT c, a, b FROM Table_X;
    Think about what a confused mess this statement is in the SQL model.
    SELECT f(c2) AS c1, f(c1) AS c2 FROM Foobar;
    That is why such nonsense is illegal syntax.
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

Maybe you are looking for

  • USB SD Card Reader

    I have just purchased a USB SD card reader/writer to transfer pictures etc. from my desktop to my Palm Treo. When I plug the card and reader into the USB port, both the reader and the card mount, and I can view pictures and other files from my Palm;

  • Widget on i phone

    what widget icon on i phone for? why is it blank. do I have to add something before it can be use

  • Win 7 64-bit print jobs jam in my C7280

    Ever since I upgraded my HP HDX16 laptop from Vista to Win 7 64-bit I get paper jams. It's not the feed mechanism because each time I queue a job it sends a blank sheet to the output tray. The next page, on which I expect my print job to appear, jams

  • Adobe Air is not letting me install trial versions of Adobe Products.

    Ok so I am trying to install Adobe After Effects trial version and I keep getting this message "This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance." I run a 10.6.8

  • Adding a script to every topic in an existing WebHelp project

    I've got WebHelp (RH8, but could upgrade if necessary) running on Apache. What are my options for adding a script (probably PHP) to every topic? In the past, with other HATs, I've put stuff like that in master pages and in skins. From a comment in ht