Using SELECT MAX to default to certain days

Gurus,
Right now, I use SELECT MAX("File Date"."Date")FROM "Subject Area" to pull the most recent date available. I'd like for this to pull the last two or three days of data available. Any suggestions?
I have this set under a report filter for the analysis. Thanks in advance!

Try this
SELECT File Date.Date saw_0, TOPN(File Date.Date, 3) saw_1, Facts."#Sales" saw_2 FROM "Subject Area" ORDER BY saw_0
Let me know updates
Edited by: Srini VEERAVALLI on May 6, 2013 5:10 PM
Your initial post talks about logical query from OBIEE, so I've logical query. try to put that in answers instead of running in Toad or sql developer etc..
Edited by: Srini VEERAVALLI on May 6, 2013 8:20 PM

Similar Messages

  • Using SELECT MAX(Substr( in a subquery to return specific rows

    Oracle v10
    Here's an example of a query and the output
    SELECT ID, SAMPLEID, COMPOUNDNAME, REQUISITION, SUBSTR(REQUISITION,2,4) FROM SEARCH PL1 WHERE SAMPLEID = 'IA 0005 0166';
    86907     IA 0005 0166     IA 0005     R2004:001160     2004
    98158     IA 0005 0166     IA 0005     R2005:000956     2005I am attempting to only return the newest row of data, in this case the 2005 row.
    I tried
    SELECT ID, SAMPLEID, COMPOUNDNAME, REQUISITION, SUBSTR(REQUISITION,2,4) FROM SEARCH PL1
    WHERE SAMPLEID = 'IA 0005 0166' AND
    REQUISITION IN
    (SELECT MAX(SUBSTR(REQUISITION,2,4)) FROM SEARCH PL2
    WHERE SUBSTR(PL2.REQUISITION,2,4) = SUBSTR(PL1.REQUISITION,2,4));But it returns no results. I feel I am missing something simple.
    TIA

    Hi,
    You're comparing a string to a 4-byte substring from the middle of itself. Those two will never be the same.
    Also, I don't think you want the sub-query to be corellated.
    Try this:
    SELECT      id
    ,     sampleid
    ,     compoundname
    ,     requisition
    ,     SUBSTR (requisition, 2, 4)
    FROM     search      pl1
    WHERE     sampleid = 'IA 0005 0166'
    AND     SUBSTR (requisition, 2, 4)     -- Changed
         IN  (
                 SELECT  MAX (SUBSTR (requisition, 2, 4))
              FROM     search pl2
    --           WHERE      SUBSTR (pl2.requisition, 2, 4) = SUBSTR (pl1.requisition, 2, 4)     -- Lose this, maybe
    ;If different substrings of requisition mean different things, then perhaps they should be stored in different columns. It will be easier to combine the different columns when you want to (e.g., for display) than it will be to split the single string apart every time you need to use only part of it, and it will be much more efficient as well.
    If you need to combine them often, you could create a view, or, starting in Oracle 11, use a virtual column.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Edited by: Frank Kulash on Dec 20, 2010 12:59 PM
    Formatted code

  • How to use select max and min query..

    hi gurus,
    we have got a custom report for develoment.
    the report has to fetch the max and min salarys department wise....
    how to pick up max & min sal ansal from table pa0008.

    Hi,
    Try the following
    select max(sal)
               min(sal)
               from <database table>
               into <internal table>
               group by department
               where <where condition>.
    Here we assume that sal is the field holding the salary and department is the name of the field in the database table. Where condition is optional.
    Hope this helps.
    Regards,
    Sachin

  • Using select list as default value in tabular form.

    Hi,
    I am using Application Express 4.1.0.00.32. I have two questions that are related.
    I have a Select item *'P1_SELECT'* and a tabular form My Items.
    Question 1. The My Items tabular form col1 Attributes are set Display As Text Field, and the Tabular Form Attributes are set Default Type = item(application or page item name), Default = P1_SELECT. I have checked the session state value is set on P1_SELECT ie. Fred. What I need to know is, why, when adding a row to the tabular form My Items does col1 not display 'Fred' as the default value from the select item P1_SELECT? I can change col1 of the Tabular form to be Display as Text (save state) and this will work. However that leads me on to:
    Question 2. After adding say 3 rows to the form, I then change the select P1_SELECT value to Bob and Bob is now set in session state on the P1_SELECT item, but when I again add row to the form the value Fred is still the value not Bob. It seems that the tabular form keeps the default value as Fred and not Bob. How can I get this to look or work like:
    col1_
    Fred
    Fred
    Fred
    Bob
    Your help is needed.
    Thanks.

    Howard (DBA in Training) wrote:
    Do you submit the page or set the value after changing the selection? If not, the display value seems to be Bob but the working value is still Fred. That's what you are seeing right? In the "Settings" section, what do you have for "Page Action when Value Changed". I've been using "Redirect and Set Value" because I was staying on the same page after the selection.
    Additional info which might be helpful (or NOT). ====================
    NOTE: I am just a novice's novice with APEX and I had much agony with Select Lists. It was challenging to have the Select List value displayed because there seem to be so many different sources of the Select List value, namely:
    1) the current value in the session state
    2) the value you can specify in "Source value or expression" in the "Source" section of the Select List item
    3) the value you can specify in the "Post Calculation Compution" in the "Source" section of the Select List item
    4) the value you can specify in the "Default value" of the "Default" section of the Select List item
    [Now, if I've misdescribed any of these, remember, this is from a novice's perspective.]
    It's like putting a clock (back) together. Get any of the pieces wrong and it will probably not work right.
    I had an addiitonal challenge in that I wanted the same Select List displayed on multiple pages and for the currently selected value (from the former page) to already be set on the new page when it was displayed. What fun!
    To see what I did here: http://apex.oracle.com/pls/apex/f?p=43250:101 login Dever/Ima9Dever
    Remember, I'm doing many things you will likely not need to do. I iniitalized the Select List for the first time it displayed. I copied the Select List value from old page to new page by storing it in an application item F217_SYS_NIC_NM.
    Best wishes,
    HowardHi Howard,
    You don't have submit the page for just setting one item's session state. you can use a Dynamic Action OR use Page Items to Submit property if available (this is available in various places such as sql region,chart region etc)
    In context to this question you don't have to do any of those..just see my example above
    Thanks

  • Materialized View hangs with SELECT MAX

    Hi there,
    I'm using Oracle 10.2.0.4 on a 64bit AIX system and I am having issues with creating a materialized view.
    We have a large (1Tb) database and the large table the materialized view looks at is 200m rows.
    I've created 5 other materialized views each with a select max clause and all looking at the same table.
    When I created my problem MV I forget the select max and it created in 22mins.
    I corrected my error by putting in the select max clause (so as to retrieve the top record) and the create MV ran for 16hrs+, I killed it.
    If I just run the select statement at a sqlplus prompt it runs through in 22mins, if I create another object e.g. a table from the query it creates in 22mins.
    So the question would be, why can I not create a MV using SELECT MAX on 10.2.0.4?
    If I've missed any details don't hesitate to ask.
    Thanks in advance.

    Hi Justin,
    Thank you for your reply.
    It has been upgraded to 9.2.0.8.0 from 9.1.... I'm not aware about the procedure used.
    I could see a job scheduled for the materialized view , but that fails and it's broken after 16 attempts.
    How to log the error generated by the Refresh Job?
    Recreating the View - After the upgrade I have created the Materialized view again. Object T1 exists in the user schema User1.
    I'm not explicitly getting any error but the refresh doesn't happens , so I couldn't find any records in the materialized view.
    Thanks
    GM

  • Use of where invoice.num = (select max( invoice.num).....

    Post Author: Aron Sereny
    CA Forum: Data Connectivity and SQL
    i want to limit the result set of the select to only the latest invoice for a given client.
    so, I was hoping to use use
    invoice.num = (select max( invoice.num).....
    in the record selection...but it does not like my sub select in the where clause...any work around for this?
    in other words...my select returns
    1002   1
    1002  2
    1002 3
    1001  1
    998  1
    998  2
    but i only want the first 3 records (invNum= 1002, the max invNum for this client)
    using CR XI,  thanks for any insight

    Post Author: Aron Sereny
    CA Forum: Data Connectivity and SQL
    i am working with MS sql 2000
    my rpt returns
    102  1
    102  2
    101  1
    i would like to limit the result set to the 102 id (the largest, most recent ID)
    in query analyzer my select works fine with the where clause something like:
    where....
    and id = (select max (id) from.....)
    crystal does not like the sub select in the where clause (select criteria)
    thanks for any help

  • Date selection - Disable certain days and dates

    Hello!  In an Adobe Form, is it possible to disable certain days and date ranges in the date chooser (calendar)?  For example, I want to disable all Sundays as well as dates more than one month in the past.
    I've found examples for Adobe Flex, but the disabledDays and selectableRange properties don't seem to effect the date boxes in Adobe Forms.  Search for disabledDays on this page to see an example:
    http://livedocs.adobe.com/flex/3/html/help.html?content=controls_12.html
    I realize it's possible to do validation after the date has been selected, but this is not an ideal solution.
    Thanks,
    Scott

    Well sometimes workarounds are needed to cater to certain requirements and since this is a limitation currently, I think you would better opt for validation after date selection.

  • My "regular guy" impressions of using the Apple Watch for a few days

    I was asked by friends to give my impressions of owning an Apple Watch. I guess it all comes down to:
    Is the Apple watch worth about a dollar a day for the first year, and free thereafter? 
    I guess that depends on how much value you put on being able to leave your phone on silent, remaining in your pocket most of the day.
    Because of the Taptic notifications, which are distinct "taps" on the wrist by the Watch for different things, I no longer have to keep my phone volume on all day (iPhone vibrations weren't strong enough in my pocket to notify me reliably) leading to a much nicer all day experience. On top of that, when I do get a notification, I can quickly flick my wrist to see what it is instead of digging my phone out. Much nicer to quickly glance at the latest 20% off offer from "YouNeedThis!.com" and dismiss it than dig the phone out, unlock it, click on mail, ...grumble.
    The ease of notifications alone makes it worth it to me. It is easy to quickly respond most of the time, too. I find myself using my phone WAY less, which is refreshing (and I am sure appreciated by those around me.)
    And the chirps, pings, whistles that used to emanate from my pocket all day are gone. Ahhhhh.
    A few other things I have found convenient:
    Actually knowing the time, date, weather etc. easily.  Sure, I could have been wearing a wrist watch for some of that, but for the last few years I have used my Smartphone for these things. They are just so much simpler on the wrist.
    Answering the phone easily when doing something.  I am not one to wear a Bluetooth headset around like a Borg, so being able to easily answer when my wife calls as I am fixing lunch for the kid is really convenient.
    Having the next thing on my daily calendar right there visible when I look at the Watch. I use the Mickey Mouse watch face normally (hey, I have an 18 month old daughter who loves pushing and seeing Mickey "dancing") and right there on the bottom it tells me the next thing on the list. I don't know how other folks do things on their phones, but I always had trouble sifting through notifications on the phone seeing what was on the agenda for the day. Yeah I could go to the calendar several times during the day on the phone, but it wasn't convenient. It is simple on the Watch seeing what is coming up during the week. And I say "week" because the Watch only shows you what is coming up in the NEAR future. To me that makes sense. Again, it is all about quick information and what works best in a glance. On the Watch it makes sense to quickly see what is coming soon. On the phone it makes sense to meander over months and make full edits in a more convenient manner.
    Setting quick timers, reminders or alarms is a breeze using Siri on the Watch.  So much more convenient than digging out the phone.
    Getting a quick overview on the Watch on how active I have been (or not been) has already spurred me to get up and move more often. Yes there are other devices that help with this (I had a Fitbit previously) but having it all self contained within the Watch is nice and (here I go again) convenient.
    A few things that are not perfect on the watch:
    The speaker is pretty quiet when trying to have a hands free "Dick Tracy" conversation. Any kind of louder noise in the room and you will have trouble.
    Apple is synonymous with consistency. Their entire platform is built on making a consistent experience for everyone that just works.  On the Watch, however, there are some inconsistent uses of actions to do certain things. For example, sometimes when I get a notification and I want to dismiss it off the watch I can "Force press" which brings up a "Clear All" button to tap. Other times I have to scroll to the bottom of the notification to "dismiss." I like the "Force press" thing... let's make it happen consistently.
    Most apps now are really pretty useless on the watch.  For one thing, the screen times out too quickly for them. For another, anything in which one needs more than a glance to get the information is MUCH easier to do on the phone. Of all the apps in the Watch App store, the only things I have downloaded and find I actually use are a quick note dictation app, a "what is nearby me" type app, and a sports scores app. That being said, I am perfectly OK with that because that is really not what the Watch is for in my opinion. We aren't SUPPOSED to be doing things on the Watch that are more easily done on the phone. Things that are designed to be quick (check time, check weather, check who just sent a message) are great on the Watch. Things like searching for the best item on Amazon are just ridiculously silly on the Watch (really, Amazon?)
    Conspicuously missing from the core apps on the Watch is Apple's "Notes" app. A perfect use for the Watch is to quickly take a note of something you need to remember later. I was forced to download a 3rd party app, Evernote, for this. The Evernote app works well, but I am very surprised that this was missed by Apple as a perfect example of what would be helpful to use the Watch to do.
    There is no way to set the "screen on" time to a custom time period. Six seconds or so is default and unchangeable. This makes the Watch worthless for anyone in a health profession. Nurses and EMTs still take pulses using their watch to time the heart rate. Often, with irregular heart rates, a full 60 seconds must be observed. One just can't do this with the Watch. This is quite surprising as the Watch has actually been marketed to health workers with apps even designed solely to assist health workers in their daily planning. Apple clearly wanted to be able to control battery life with such a quick screen off "feature" but allowing us to decide for ourselves the tradeoff of battery life vs. usability would be a much better choice.
    There are ways to make Tweets, Facebook status updates and the like on the Watch, but it really doesn't make sense to try to do it "all" socially on the Watch.  It is so much easier on the phone to actually interact socially, that it really only makes sense to do so on the Watch in more of a "one off" way. When you just have to share something quickly, but don't really have time for give and take.
    Finally, some things work a bit slow or wonky right now. I expect this to improve greatly over time with future versions of the software. Stuff like this ALWAYS gets better.
    So for me, the Watch is working as I expect it should. There are certainly improvements that Apple can and will be able to make, but it is saving me time, adding ease of use to many actions I do every day, and is kind of fun to use. I am enjoying it because I am not expecting it to do things for which ANY wearable would not be well suited. The things it is best for, it does pretty well.
    That is worth a dollar a day... to me at least.

    To put the iPod into forced disk mode, this is what you should be doing.
    Press and hold the Menu and Select buttons for at least 6 seconds until the Apple logo appears.
    When the Apple logo appears, release the Menu and Select buttons and immediately press and hold the Select and the Play/Pause buttons until the Disk Mode screen appears.
    Have you also seen this?
    iPod shows only an Apple logo and doesn't start up.

  • SharePoint - Error_1_Error occurred in deployment step 'Add Solution': Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was rea

    Hi,
    I am Shanmugavel, SharePoint developer, 
    I am facing the below SharePoint 2013 deployment issue while deploying using VS2012.
    If i will deploy the same wsp or existing wsp
    (last build) using direct powershell deployment, the solution adding properly, but the same timeout exception coming while activation the features.  Please find the below error.
    I tried the below activists:
    1. Restarted my dev server, DB server. 
    2. tried the same solution id different server
    3. tried existing wsp file (last build version)
    4. Deactivated all the features, including project Active deployment configuration.... but still i am facing the same issue.
    I hope this is not coding level issue, because still my code is not start running, before that some problem coming.
    Please help me any one.....  Last two days i am struck because of this...

    What you need to understand is the installation of a WSP does not do much. It just makes sure that you relevant solution files are deployed to the SharePoint farm.
    Next comes the point when you activate the features. It is when the code which you have written to "Activate" certain features for your custom solution.
    Regarding the error you are getting, it typically means that you have more connections (default is I guess 100) open for a SQL database then you are allowed to.
    If you have a custom database and you are opening a connection, make sure you close it as well.
    Look at the similar discussion here:
    The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool
    size was reached[^]
    I would suggest further to look at the
    ULS logs[^] to get better insight.
    Manas Bhardwaj's Stream : www.manasbhardwaj.net

  • How do I change: when I double click on a day to add a new event it defaults to All Day and Busy

    iCal 5.0.2 (1571) Is there any way to change this? I can't do it in preferences.
    This is a real pain. To make an event for a specific time I have to double click again, uncheck "All Day" and then put in the time for the start of the event. Even then, if I put in the start time, the end time remains at 6:30 PM, so I have to change that too.
    If I really do want an All Day event, why does it sometimes default to Busy, rather than always to Free?
    The old iCal was far superior in this regard; double click once on a day and the add an event dialogue box appears, defaulting to a time close to when you were making the event, and, if my memory serves correct observing the preference I set with respect to default length of the event.
    I'm aware that Command N gets me a new Quick Event, its a bit better in that if the event i enter opens the big "add an event dialogue box", it has defaulted to an hour long event. But, if I click on a day, and then hit Command N, the new event is put in Today, and not the day I had selected. It also defaults to All Day, unless I put in a time for the event in the Quick Event box.  Why would I do that when I know I want to enter info into a number of fields, and doing so is easiest from the big dialogue box. If i don't enter a time in Quick Event, or enter a day, I still have to double click the event that was created by Quick Event to open the big dialogue box, and start fresh entering everything.  So, I find Quick Event's implimentation cumbersome, overall ending up with more keystrokes and clicks to enter the details I normally enter, than the old iCal.
    So, if someone knows how to change the double click behaviour back to the old way, or how to get Quick Event to open the dialogue box on the day i have already selected, any help will be appreciated.
    Also, is there some way to get this feedback to Apple? Support SiteMap doesn't show a link for feedback.
    Thanks
    Ian

    I have sort of the exact same problem. Extremely far away from user friendly
    I have an second issue as well: When I hook off all-day it comes up with an 8 hour event!
    And then if I put in a late start hour it pushes end time to next day due to the 8 hour event suggestion.
    All in all this gives a lot of changes just to enter an event.
    Command N
    I learnt from your input to use this fuction. At least that comes up with a one hour event as default.

  • ResultSet Select MAX() Problem

    Im using mySQL and when i write the following query :
    SELECT MAX(attribute) FROM table;
    and theres no records in the table i cant know what it returns ... my problem is i want to get the max() number
    <code>
    resultSet = connectivity.statement.executeQuery("SELECT MAX(number) FROM urls");
    resultSet.next();
    if(resultSet.getObject(1) != null)
    .... Do certain things
    else
    ....Do other
    </code>
    an SQLexcecption is thrown from this line :
    if(resultSet.getObject(1) != null)
    so how can i solve it ??!

    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
    at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3908)
    at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5699)
    at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:353)
    at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:410)
    at indexer.Indexer.insertNewRecords(Indexer.java:80)
    at indexer.Indexer.startIndexing(Indexer.java:31)
    at jranker1.JRanker.writeToDB(JRanker.java:187)
    Its an SQL Exception ...

  • "Use Firefox Web Browser (default)" instead of trying to render a page starts FF again

    Expected behaviour: Firefox actually trying to open a document.
    What happens: Firefox, ''as the default option'', re-feeds a document to itself in a roundabout way that leads only to repeating the same choice. If "Do this automatically..." box is checked, this causes ''spamming tabs or windows recursively''. Which certainly constitues a bug.
    Happens e.g. when trying to open HTML pages that have ".asp" extension due to being saved with original server filenames. Which also is the easiest way to reproduce this bug. Same files renamed or ''hard''linked as "*.asp.html" open normally, thus it happens only due to "Open with: Use Firefox Web Browser (default)" choice not working correctly. I didn't find addons to circumvent this, either.
    Version: 26.0 (Mozilla Firefox for Ubuntu canonical - 1.0) - but a web search shows that the same happened 10 years ago and under Windows.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    [[Image:FirefoxSafeMode|width=520]]<br><br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • Select max date from a table with multiple records

    I need help writing an SQL to select max date from a table with multiple records.
    Here's the scenario. There are multiple SA_IDs repeated with various EFFDT (dates). I want to retrieve the most recent effective date so that the SA_ID is unique. Looks simple, but I can't figure this out. Please help.
    SA_ID CHAR_TYPE_CD EFFDT CHAR_VAL
    0000651005 BASE 15-AUG-07 YES
    0000651005 BASE 13-NOV-09 NO
    0010973671 BASE 20-MAR-08 YES
    0010973671 BASE 18-JUN-10 NO

    Hi,
    Welcome to the forum!
    Whenever you have a question, post a little sample data in a form that people can use to re-create the problem and test their ideas.
    For example:
    CREATE TABLE     table_x
    (     sa_id          NUMBER (10)
    ,     char_type     VARCHAR2 (10)
    ,     effdt          DATE
    ,     char_val     VARCHAR2 (10)
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0000651005, 'BASE',    TO_DATE ('15-AUG-2007', 'DD-MON-YYYY'), 'YES');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0000651005, 'BASE',    TO_DATE ('13-NOV-2009', 'DD-MON-YYYY'), 'NO');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0010973671, 'BASE',    TO_DATE ('20-MAR-2008', 'DD-MON-YYYY'), 'YES');
    INSERT INTO table_x (sa_id,  char_type, effdt,                          char_val)
         VALUES     (0010973671, 'BASE',    TO_DATE ('18-JUN-2010', 'DD-MON-YYYY'), 'NO');
    COMMIT;Also, post the results that you want from that data. I'm not certain, but I think you want these results:
    `    SA_ID LAST_EFFD
        651005 13-NOV-09
      10973671 18-JUN-10That is, the latest effdt for each distinct sa_id.
    Here's how to get those results:
    SELECT    sa_id
    ,         MAX (effdt)    AS last_effdt
    FROM      table_x
    GROUP BY  sa_id
    ;

  • I need to do a clean install of maverick on my 2010 mbp what disk do i use and how do i move certain files from an external hard drive

    I want to do a clean install of maverick on my 2010 mbp.  I need to know what disk to use and also how i take certain files off my external hard drive and put on my computer.  When I was having problems with my airport they did a clean install and they pulled files of my time machine.   however they forgot to put the partition back in for a windows side.  Originally I had Parellels on my computer.  After my external hard drive got corrupted i called apple and they fixed the problem but didn't have me set up the time machine except for the external hard drive.  Now my only back up is from the external not from the laptop.    I am not sure how to do any of this.  I am not computer savvy...PLEASE I NEED  HELP>

    First, you need to make a backup of your MBP onto your external drive. I suggest you start by cloning your MBP drive to the external drive:
    Clone Mavericks, Lion/Mountain Lion using Restore Option of Disk Utility
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
         1. Select Disk Utility from the main menu then press the Continue
             button.
         2. Select the destination volume from the left side list.
         3. Click on the Restore tab in the DU main window.
         4. Select the destination volume from the left side list and drag it
             to the Destination entry field.
         5. Select the source volume from the left side list and drag it to
             the Source entry field.
         6. Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    This clone is fully bootable and also contains a clone of your Recovery HD.
    Second, you need to do a clean install of OS X onto your MBP as follows:
    Install or Reinstall Mavericks or Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    OS X Mavericks- Erase and reinstall OS X
    OS X Mountain Lion- Erase and reinstall OS X
    OS X Lion- Erase and reinstall Mac OS X
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.
    This should accomplish your goals. You will have a clean install of OS X on your MBP and a bootable clone of your old system and all your files on the external drive.

  • Using Select statement in IF condition?

    hi all,
    Can i use select statement in IF COndition in pl sql ?
    eg like- if( select 1 from ASD) then
    end if;

    There is no way to do any kind of select statement inside if conditions.
    Why don't test simple cases like this first?
    An example to show it.
    SQL> begin
      2   if exists (select 1 from dual) then
      3    dbms_output.put_line('ok');
      4   end if;
      5  end;
      6  /
    if exists (select 1 from dual) then
    ERRORE alla riga 2:
    ORA-06550: line 2, column 5:
    PLS-00204: function or pseudo-column 'EXISTS' may be used inside a SQL
    statement only
    ORA-06550: line 2, column 2:
    PL/SQL: Statement ignored
    SQL> begin
      2   if ( (select count(*) from dual) > 0 ) then
      3    dbms_output.put_line('ok');
      4   end if;
      5  end;
      6  /
    if ( (select count(*) from dual) > 0 ) then
    ERRORE alla riga 2:
    ORA-06550: line 2, column 8:
    PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
    ( - + case mod new not null others <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternativ
    ORA-06550: line 2, column 33:
    PLS-00103: Encountered the symbol ")" when expecting one of the following:
    . , @ ; for <an identifier>
    <a double-quoted delimited-identifier> group having intersect
    minus order partition start subpartition union where connect
    SQL> begin
      2   if ( 0 in (select count(*) from dual) ) then
      3    dbms_output.put_line('ok');
      4   end if;
      5  end;
      6  /
    if ( 0 in (select count(*) from dual) ) then
    ERRORE alla riga 2:
    ORA-06550: line 2, column 12:
    PLS-00405: subquery not allowed in this context
    ORA-06550: line 2, column 2:
    PL/SQL: Statement ignoredBye Alessandro

Maybe you are looking for

  • My apps are in Italian and I can't change

    I am trying to get new apps but everything is in Italian and I can't get anything. It's telling me that I have to change to the Italian store but I want to go back to the US apps. Can anybody help please?

  • Problems with Popup Menu on Mac

    Hi, i've created an application which displays a Popup menu. i've used me.isPopupTrigger() to display the popup.it works well on windows. but when i run the same on Mac OS-X .it is not at all showing the Popup menu. is there any way i can solve this.

  • How do I stop buttons from Highlighting in Adobe Encore?

    I'm making a DVD menu for a college project in Adobe Encore. When my mouse moves over a button when previewing the menu, it becomes highlighted with some disgusting orange colour. I would like it to simply be blank when the mouse moves over the butto

  • Sync Events AND Albums ?

    Is there a trick to get both Events and Albums listed on the ATV? I use allways Events which contain all the pictures available and sometimes an Album with a selection for slide show. Would be nice to see both Event and Album on the large screen....

  • Mac itunes trying to restore my iphone 6 plus

    Both my Mac iTunes and iPhone 6 Plus are updated to the latest version. When I connect my iPhone via usb to my MBA, the Mac iTunes is asking to either set up my iPhone as new or restore from backup. The problem is the back up is only showing my iPad