Join for first

Hello Everybody!
I have run into a common situation but I can't find the perfect solution.
I have two tables: transaction and event with one to many connection. One transaction may have one or more events. I need a join-query to get transaction and not all events related to this transaction but only the oldest one.
ex.
Transaction table --------------- Event table
TransactionID ......-------------- EventID....Timestamp
1------------------------------------------10-----------1980 =>OK
2------------------------------------------11-----------1981 => It's OK this is older than 12
2------------------------------------------12-----------1982 => I don't need this!
3------------------------------------------13-----------1980 =>OK
Thanks Your Help!
Topicfun

Hello Everybody!
I have run into a common situation but I can't find
the perfect solution.
I have two tables: transaction and event with one to
many connection. One transaction may have one or more
events. I need a join-query to get transaction and
not all events related to this transaction but only
the oldest one.
ex.
Transaction table --------------- Event table
TransactionID ......--------------
EventID....Timestamp
1------------------------------------------10---------
--1980 =>OK
2------------------------------------------11---------
--1981 => It's OK this is older than 12
2------------------------------------------12---------
--1982 => I don't need this!
3------------------------------------------13---------
--1980 =>OK
Thanks Your Help!
Topicfuncreate table my_transaction (transaction_id number(10));
insert into my_transaction values(1);
insert into my_transaction values(2);
insert into my_transaction values(2);
insert into my_transaction values(3);
create table my_event (transaction_id number(10),event_id number(10),my_dt timestamp(6));
insert into my_event values (1,10,sysdate);
insert into my_event values (2,11,sysdate);
insert into my_event values (2,12,sysdate);
insert into my_event values (3,13,sysdate);
select E.transaction_id,min(E.event_id),to_char(E.my_dt,'yyyy') from my_event E,my_transaction T
where T.TRANSACTION_ID=E.transaction_id
group by E.transaction_id,to_char(E.my_dt,'yyyy')
order by E.TRANSACTION_ID

Similar Messages

  • The book who I selected doesn't move to the right in CheckedListBox and the reason is that I can't make an return.his code is good just for first user who I selected

    Imprumut = loan
    I have 6 tables: 
    I have one combobox(from where I select utilizatori(users)) and 2 CheckedListBox(Between first box and second box I have 2 buttons:imprumuta(loan) and restituie(return))
    This c# code works just for first user: Utilizator, but something's not good. When I add new utilizator(user) and select it,  the loan will be add in my SQL DataBase, but... the book who I selected doesn't move to the right in CheckedListBox and the reason
    is that I can't make an return
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using MySql.Data.MySqlClient;
    namespace proiect
        public partial class Imprumut : Form
            MySqlConnection con = new MySqlConnection("DataSource=localhost;UserID=root;database=biblio1");
            //stabilim conexiunea
            MySqlCommand comUser;//interogarea pe baza careia umplem comboBox
            MySqlDataAdapter adaptu;
            DataTable userT = new DataTable();
            MySqlCommand cmdCarti;//interogarea pe baza careia umplem checkListBox
            MySqlDataAdapter adaptCarti;
            DataTable CartiTabel = new DataTable();
            MySqlCommand cmdCartiImprumutate;//interogarea pe baza careia umplem checkListBox
            MySqlDataAdapter adaptCartiImprumutate;
            DataTable CartiImprumutateTabel = new DataTable();
            public int UserId
                get
                    return Convert.ToInt32(user.SelectedValue.ToString());
            void Completez_Combo_User()
                try
                    comUser = new MySqlCommand("SELECT n.userid, CONCAT(n.UserName) as UserN FROM users n left join userroles us on n.userid=us.userid left join roles r on r.roleid=us.roleid WHERE r.roleid='3'",
    con);
                    adaptu = new MySqlDataAdapter(comUser);
                    adaptu.Fill(userT);
                    user.Items.Clear();
                    user.DataSource = userT;
                    //DataTable din care sunt preluate datele pentru ComboBox user
                    user.ValueMember = "UserID";
                    //Valoarea din coloana UserID nu se afiseaza in combobox
                    user.DisplayMember = "UserN";
                    //Eelementele afisate in combobox, preluate din concatenarea mai multor coloane
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
            void Completez_CheckList_Carti()
                try
                    cmdCarti = new MySqlCommand("SELECT BookID, CONCAT(title, ' ', ISBN,' ',author)as date_carte FROM books WHERE NumberLeft > 0 ORDER BY BookID", con);
                    adaptCarti = new MySqlDataAdapter(cmdCarti);
                    adaptCarti.Fill(CartiTabel);
                    imp.Items.Clear();
                    //carti.DataSource=null;
                    imp.DataSource = CartiTabel;
                    //DataTable din care sunt preluate datele pentru ComboBox carte
                    imp.ValueMember = "BookID";
                    //Valoarea din coloana BookID nu se afiseaza in combobox
                    imp.DisplayMember = "date_carte";
                    //Eelementele afisate in combobox, preluate din concatenarea mai multor coloane
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
                void Completez_CheckList_Cartires()
                    try
                        cmdCartiImprumutate = new MySqlCommand(string.Format("SELECT b.BookID, CONCAT(title, ' ', ISBN,' ',author) as date_carte FROM books b inner join userbooks ub on ub.bookid = b.bookid
    WHERE ub.userid = {0} ORDER BY BookID", UserId), con);
                        adaptCartiImprumutate = new MySqlDataAdapter(cmdCartiImprumutate);
                        adaptCartiImprumutate.Fill(CartiImprumutateTabel);
                        res.Items.Clear();
                        //carti.DataSource=null;
                        res.DataSource = CartiImprumutateTabel;
                        //DataTable din care sunt preluate datele pentru ComboBox carte
                        res.ValueMember = "BookID";
                        //Valoarea din coloana BookID nu se afiseaza in combobox
                        res.DisplayMember = "date_carte";
                        //Eelementele afisate in combobox, preluate din concatenarea mai multor coloane
                    catch (Exception ex)
                        MessageBox.Show(ex.Message);
            void Inregistrez_imprumut_in_BD()
                int useridu = Convert.ToInt32(user.SelectedValue.ToString()); //useridu = id book
                int bookidi;
                try
                    DateTime azi = System.DateTime.Now; //  Data imprumutului
                    DateTime atunci = termenul.Value;   //  Data restituirii
                    MySqlTransaction tranzactie = con.BeginTransaction();
                    MySqlCommand adaugImpr = new MySqlCommand("INSERT INTO bookshistory(UserID, BookID,BorrowDate) VALUES(@UserID, @BookID, CAST(@BorrowDate as datetime))", con);
                    MySqlCommand scadCarti = new MySqlCommand("UPDATE books SET numberleft=numberleft-1 WHERE bookid=@bookid", con);
                    MySqlCommand adauga_userbooks = new MySqlCommand("INSERT INTO userbooks(userId,bookID)VALUES(@userID,@bookID)", con);
                    adauga_userbooks.Transaction = tranzactie;
                    adaugImpr.Transaction = tranzactie;
                    scadCarti.Transaction = tranzactie;
                    try
                        foreach (int i in imp.CheckedIndices)
                            imp.SelectedIndex = i;
                            bookidi = Convert.ToInt32(imp.SelectedValue.ToString());
                            MessageBox.Show(bookidi.ToString());
                                     //bookidi va fi id-ul cartea bifata, pe rand din checklistBox
                                     //Inregistrez in tabela imprumut
                            adaugImpr.Parameters.AddWithValue("@UserID", useridu);
                            adaugImpr.Parameters.AddWithValue("@BookID", bookidi);
                            adaugImpr.Parameters.AddWithValue("@BorrowDate", azi);
                            adaugImpr.ExecuteNonQuery();
                            adaugImpr.Parameters.Clear();
                            adauga_userbooks.Parameters.AddWithValue("@userID", useridu);
                            adauga_userbooks.Parameters.AddWithValue("@bookID", bookidi);
                            adauga_userbooks.ExecuteNonQuery();
                            adauga_userbooks.Parameters.Clear();
                                    //Scad numarl de carti disponibile pentru cartea imprumutat
                            scadCarti.Parameters.AddWithValue("@bookid", bookidi);
                            scadCarti.ExecuteNonQuery();
                            scadCarti.Parameters.Clear();
                        tranzactie.Commit();
                    catch (Exception ex)
                        tranzactie.Rollback();
                        string message = ex.Message;
                        if (ex.Message.ToLower().Contains("duplicate entry"))
                            message = "Una dintre carti mai exista deja";
                        MessageBox.Show(message);
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
            void Inregistrez_restituire_in_BD()
                int useridu = Convert.ToInt32(user.SelectedValue.ToString()); //useridu = id book
                int bookidi;
                try
                    DateTime azi = System.DateTime.Now; //  Data imprumutului
                    DateTime atunci = termenul.Value;   //  Data restituirii
                    MySqlTransaction tranzactie = con.BeginTransaction();
                    MySqlCommand modificIstoric = new MySqlCommand("UPDATE bookshistory SET returndate = @returnDate WHERE userID = @userID AND bookID = @bookID", con);
                    MySqlCommand adaugCarti = new MySqlCommand("UPDATE books SET numberleft = numberleft + 1 WHERE bookID = @bookID", con);
                    MySqlCommand sterge_userbooks = new MySqlCommand("DELETE  FROM userbooks WHERE userID = @userID AND bookID = @bookID", con);
                    sterge_userbooks.Transaction = tranzactie;
                    modificIstoric.Transaction = tranzactie;
                    adaugCarti.Transaction = tranzactie;
                    try
                        foreach (int i in res.CheckedIndices)
                            res.SelectedIndex = i;
                            bookidi = Convert.ToInt32(res.SelectedValue.ToString());
                            MessageBox.Show(bookidi.ToString());
                            //bookidi va fi id-ul cartea bifata, pe rand din checklistBox
                            //Inregistrez in tabela imprumut
                            modificIstoric.Parameters.AddWithValue("@UserID", useridu);
                            modificIstoric.Parameters.AddWithValue("@BookID", bookidi);
                            modificIstoric.Parameters.AddWithValue("@returnDate", termenul.Value);
                            modificIstoric.ExecuteNonQuery();
                            modificIstoric.Parameters.Clear();
                            sterge_userbooks.Parameters.AddWithValue("@UserID", useridu);
                            sterge_userbooks.Parameters.AddWithValue("@BookID", bookidi);
                            sterge_userbooks.ExecuteNonQuery();
                            sterge_userbooks.Parameters.Clear();
                            //Scad numarl de carti disponibile pentru cartea imprumutat
                            //adaugCarti.Parameters.AddWithValue("@bookid", bookidi);
                            adaugCarti.Parameters.AddWithValue("@bookid", bookidi);
                            adaugCarti.ExecuteNonQuery();
                            adaugCarti.Parameters.Clear();
                        tranzactie.Commit();
                    catch (Exception ex)
                        tranzactie.Rollback();
                        MessageBox.Show(ex.Message);
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
            public Imprumut()
                InitializeComponent();
                try
                    con.Open();
                catch (Exception ex)
                    MessageBox.Show(ex.Message);
                Completez_Combo_User();
                Completez_CheckList_Carti();
                Completez_CheckList_Cartires();
                //selecteaza_carti_utilizator();
                //  Initializez termenul din dateTimePicker la data de peste 15 zile fata de data sistemului
                termenul.Value = System.DateTime.Now.AddDays(15);
            private void imprumuta_Click(object sender, EventArgs e)
                Confirmare c = new Confirmare("Confirmati imprumutul?");
                DialogResult dr = c.ShowDialog();
                if (dr == DialogResult.Yes)
                    try
                        Inregistrez_imprumut_in_BD();
                        MessageBox.Show("Imprumutul a fost inregistrat");
                        //Dupa inregistrarea imprumutului o parte din carti nu mai sunt disponibile pentru imprumut
                        //Reincarc in CheckList cu Carti noua lista cu carti ramase dupa imprumut
                        //Pentru asta "resetez" datele din dataTable cartiT (sursa pentru carti.DataSource)
                        CartiTabel.Clear();
                        adaptCarti.Fill(CartiTabel);
                        CartiImprumutateTabel.Clear();
                        adaptCartiImprumutate.Fill(CartiImprumutateTabel);
                    catch (Exception ex)
                        MessageBox.Show(ex.Message);
                if (dr == DialogResult.No)
                    MessageBox.Show("Imprumutul NU a fost inregistrat");
                    imp.ClearSelected();
                    //deselecteaza cartea selectat
                    foreach (int i in imp.CheckedIndices)
                        imp.SetItemChecked(i, false);
                    //debifeaza cartile bifate
                //if (imp.CheckedItems.Count > 0)
                //    //res.Items.Clear();
                //    foreach (string str in imp.CheckedItems)
                //        res.Items.Add(str);//adauga in partea cealalta, imprumuta
                //    while (imp.CheckedItems.Count > 0)
                //        imp.Items.Remove(imp.CheckedItems[0]);
            private void restituie_Click(object sender, EventArgs e)
                Confirmare r = new Confirmare("Confirmati restituirea?");
                DialogResult dr = r.ShowDialog();
                if (dr == DialogResult.Yes)
                    try
                        Inregistrez_restituire_in_BD();
                        MessageBox.Show("Restituirea a fost inregistrata");
                        //Dupa inregistrarea imprumutului o parte din carti nu mai sunt disponibile pentru imprumut
                        //Reincarc in CheckList cu Carti noua lista cu carti ramase dupa imprumut
                        //Pentru asta "resetez" datele din dataTable cartiT (sursa pentru carti.DataSource)
                        CartiTabel.Clear();
                        adaptCarti.Fill(CartiTabel);
                        CartiImprumutateTabel.Clear();
                        adaptCartiImprumutate.Fill(CartiImprumutateTabel);
                    catch (Exception ex)
                        MessageBox.Show(ex.Message);
                if (dr == DialogResult.No)
                    MessageBox.Show("Restituirea NU a fost inregistrata");
                    res.ClearSelected();
                    //deselecteaza cartea selectat
                    foreach (int i in imp.CheckedIndices)
                        res.SetItemChecked(i, false);
                    //debifeaza cartile bifate
                if (res.CheckedItems.Count > 0)
                    foreach (string str in res.CheckedItems)
                        imp.Items.Add(str);
                    while (res.CheckedItems.Count > 0)
                        res.Items.Remove(res.CheckedItems[0]);
            private void button2_Click(object sender, EventArgs e)
                con.Close();
                this.Close();
            //private void selecteaza_carti_utilizator()
            //    res.Items.Clear();
            //    MySqlCommand selectcart = new MySqlCommand("select title from books,userbooks where userbooks.userid='" + user.SelectedValue.ToString() + "' and userbooks.bookid=books.bookid", con);
            //    MySqlDataReader reader = selectcart.ExecuteReader();
            //    try
            //        while(reader.Read())
            //            res.Items.Add(reader["title"]);
            //    catch(Exception ex)
            //        MessageBox.Show(ex.Message);
            //    finally
            //        reader.Close();

    Hello Vincenzzo,
    This issue seems to be a window form UI implemented related issue, for this i suggest that you could ask it to the windows form forum:
    http://social.msdn.microsoft.com/Forums/windows/en-US/home?forum=winforms
    The current forum you posted to is used to discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Joins for INV tables  R12

    Hi,
    Could you provide joins for below tables:
    mtl_system_items_b
    mtl_kanban_cards
    mtl_onhand_quantities_detail
    MTL_SECONDARY_INVENTORIES
    MTL_ITEM_CATEGORIES
    MTL_CATEGORY_SETS_TL
    MTL_CATEGORIES_B
    Thanks

    Yes it is kind of limitation in obiee. But there are some solutions which might deviate from best practices.
    Sol 1. Snowflake the dimensions in Business Model. Rather than merging both of them into single logical table, separate them into two different logical tables.
    Sol 2. For the logical table , have two LTSs. First LTS will have both tables and all columns mapped to both tables. Second LTS will have only main table, Columns belong to that table only mapped. In this way when you selected columns related to first source system will use second LTS which has only only one table.
    - Madan Thota

  • AV Coupler/Joiner for Mac Mini 2009 (MiniDVI version)?

    I'm sure it's wishful thinking but being that everyone's seemingly biggest gripe with Mac Mini '09 is that it's missing HDMI and subsequently utilizes the optical audio and MiniDVI outputs. This makes things very difficult when trying to set up a media center from it.
    This leads me to this thought. Is there a sort of coupler/joiner for the audio and video? For instance, an adapter that receives Mini (or fullsize) DVI as well as Toslink digital optical audio and outputs HDMI? Again I'm sure it's wishful thinking but I figured I'd ask. 

    You nearly sold me on that second option with taking the DVI and Optical and outputting to HDMI. I was so excited! ...until I saw these reviews under that product which made me very sad. Essentially it doesn't seem to be mac friendly? The whole issue comes down to the fact that my soundbar only receives 1 optical toslink cable and I have 2 devices that ultimately need it (due to the mac mini not having HDMI). Everything is running in to my HDTV via HDMI and out to the soundbar via Toslink. Now that the mini is in the picture, I tried finding an optical auto switch which essentially doesn't exist apparently. They have manual ones but I'm a lazy american that enjoys doing everything from my logitech harmony remote. I tried a cheap 2-to-1 optical combiner but that isn't outputting correctly either. --CUE THIS POST-- That's when I figured if I could get the mac mini to output to HDMI and go in to the TV, life would be merry. I almost want to try it and see if those two reviews were from a couple of whiners, however it seems to good to be true and with them complaining about it, it doesn't reinforce my confidence haha. Either way, your answer was an excellent one! I hope I get more feedback from you/others! :-D 
    Review #1
    "I should of listened to the first reviewer with a MacBook Pro. It also doesn't work at all on my intel Mac Mini connected to my HD TV. In the directions I read that it will not work on non compliant HDCP products. Well, ALL Macs are non compliant HDCP. So if you own any Apple Computer DON"T PURCHASE THIS DEVICE!!! Now I have to go through the process of paying to send this back and waiting for the refund. Plus I purchased a DVI to DVI cable that I also have to send back. To make your Mac ALL DIGITAL you need a Toslink mini cable with a standard Toslink on the other end and connect this to your ear phone jack and the other cable end to a toslink home theater connection- the ear phone jack can be standard analog or digital depending on what cables you purchase. Connect another cable with DVI on one end and HDMI on the other end. The DVI end connects to your MAC and the HDMI connects to your TV- this will be strictly for the video part of the digital connection. A DVI cable can only carry video. NOW click on that HDMI port on your HD TV (for your video) and click the port on your home theater where the Toslink optical connection is. Now both the video and audio are all digital. It takes me less than 10 seconds to do this and my h.264 movies look and sound FANTASTIC! Good luck..."
    Review #2
    "This is a piece of junk. The best resolution I can get from this on my 1080p 50" TV is 640x480. Absolute trash. My MacBook Pro can't detect the TV correctly. The plug and play information is not passed through correctly. And I get no sound."

  • Long time to open workbook for first time

    Hi,
    I have a workbook with three queries . Performance of workbook is good when it was created for first time. It has additional 22 sheets with formulas and other sheets with values based on query sheets.
    The problem starts after I close the existing session and open in another session when it takes 15 to 20 minutes to come up.But after that the book is slow even for single click button action.
    Version of analysis 1.4.6
    Win 7(64 bit)
    Ms office 2010(32 bit)
    Refresh on opening is disabled.
    Few thing which I did:
    >> I opened up task manager and did analyze wait chain, I found that excel.exe is waiting for splwow64.exe process.
    >> I enabled logging at "debugging information" in support setting for workbook and checked things out in log file.
    Found that
    There was warning "AddSerializer failed (Command processors not initialized)
    Looking at log file for events when book took time to open, I found that time stamp gap between  following events"
    -verbose: Working mode as serialized in document:'Local'
    -verbose: Successfully deserialized system info from workbook  XML
    - verbose: ...its logs various properties of queries like query name,id etc"
    and its immediate previous event of cache formula string is 20 mins.
    >> in another session I opened a workbook with normal performance.Found above mentioned warning message and deserialization... information.
    the difference in this case is that there is not delay in events.
    Has anybody faced this issue? Any idea on deserialization of workbook xml in analysis.
    Any idea where is metadata saved in analysis. is it in form of some hidden script object just as in BEx 7.0
    Thanks
    Pramod.

    Hi Pramod,
    Since you have several sheets in this workbook, have you checked the number of custom styles?
    Please check the SAP note http://service.sap.com/sap/support/notes/1899658
    According to the note, too many styles slow down Analysis for Office.
    The note also contains a macro that you can run on your workbook to delete the custom styles if you want to check.
    Regards,
    Filipe

  • HT201250 i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. do i keep my files in the portable hard disk when I connect it again with the macbook or the time machine will era

    i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. Am i keeping my files in the portable hard disk when I will connect it again with the macbook or the time machine will erase all?
    I would like to know if after I erase all my data, empy hard drive inside the macbook, the time machine will erase all my files that I have saved in my "WD "My passport" external hard drive

    Welcome to Apple Support Communities
    Time Machine has to erase the external disk in order to make backups. Before setting Time Machine up, copy the files of your external disk to the hard disk of the Mac in order not to lose them, and then, set up Time Machine. The first backup will start automatically.
    If you want more information about Time Machine, read the Pondini's site > http://pondini.org

  • How do I sync my new ipad mini with my old ipad 2, without losing any apps or data in notes?  I need step by step instructions for first-time sync with ipad mini.  Thanks.

    How do I sync my new ipad mini with my old ipad 2, without losing any apps or data in notes?  I need step by step instructions for first-time sync with ipad mini.  Thanks.

    If you synced it many times, you have to have a backup. It's just a question of how old that backup is now. When did you last sync?
    First of all launch iTunes on your computer and go to Edit>Preferences>Devices. Do you see any backups for you iPad in that window? If so, how new is the newest backup? That will be the backup that you will want to use. But remember that if you use that backup and it is one month old, you can only restore from that date back in time. Anything that you did on the iPad in the past month will not be in that backup.
    Turn on the new iPad Minin and start activating OTA via WiFi. You will get to a certain point in the process where you will be given the choice to Set up as new, Restore from iCloud - or Restore from iTunes. You will want to select Restore from iTunes.
    That is the short and sweet version. There are step by step instructions in this article. This applies to the mini as well as the iPad 4 or the iPad 3 for that matter.
    http://www.everythingicafe.com/how-to-set-up-new-ipad/2012/03/16/

  • HOw to start the project for first view in webdynpro application

    Hi,I am having  a problem regarding scenario for customer feedback for portal end user i.e..wen user login to a application for feedback there it check the Id of the user wether it had given the feedback or not by comparing the Id with the database Idu2019s from SQLserver.If the feedback is thr of that Id then a view shud say u hav already given feedback otherwise feedback form shud open ,the user will giv feedback and closes by thanking with other view.My problem is how to openthe  view were it will compare the userlogin Id with the database Id to move further.How shud I handle this scenario for first view.I am creating this application in webdynpro.In this project how shud I manage the viewsu2026

    Hanif,
    you can create a webdynpro application and create an iview and set the height and width to 0 .inside that webdynpro application open a popup that provides the feedback form .and you invoke this popup window in the WDDOINIT() or WDDOMODIFYVIEW() of the webdynpro main view.
    apart from this you need to get the logged user id in main view and get the output from database whether you want to open the feedback form
    check this forum on developing webdynpro application
    Web Dynpro Java
    Thanks
    Bala Duvvuri

  • Date for first day of current month

    How can i get the date for first day of current month ?

    select trunc(sysdate,'MM'),to_char(trunc(sysdate,'MM'),'DD'),to_char(trunc(sysdate,'MM'),'Day') from dual;

  • My system freezes during start-up "for first time" after running System Recovery.

    HP G62-227CL
    Win 7 (64 bit)
    No error message, per se; just a frozen screen during reboot.
    Months ago, my computer suddenly started glitching on me.  I shut down and tried a reboot.  The system froze on the boot screen with the flying colors.  Tried system recovery several times  but must have done something wrong because it would not run.  Resolved to buy a new hard drive and reinstall from recovery discs.  Delayed for no good reason until today, months later.
    Before buying new hard drive, decided to run System Recovery again.  It worked!  I tried the option that deleted everything and restored to original factory settings and software.  Everything appeared to work like a charm: hard drive reformatted, software reinstalled, system prompted me for a reboot.  I did.  Windows started to start, "Setup preparting your computer for the first use" appears . . . and freezes.  For hours.  Hard drive indicator light is off.
    BTW, made sure that the Wi-Fi button was on as I read about Recovery issues if it was off when the program ran.
    Rebooted.  Hit F11.  Ran maintenance and checked hard drive for errors.  There are errors.  Unfortunately, the default setting of CHKDSK does not repair them.   Opted for a command prompt.  Rand CHKDSK again with "/f /r" option seen in other posts.  I'm too ignorant here to get the program to run properly, I guess.  I ran CHKDSK on both drive X and C.  No errors found . . . sort of.  I know they exist because the system will not boot up.  (Yes, I tried again.)  Back at command prompt, I tried to run CHKDSK on drive C again.  This time I received a message that I would first have to unmount (dismount?) the drive.  As I do not know what this means, I opted for "no" and have decided to post this message for assistance.
    So.  Suggestions on what I do next?  More specifically: how do I get CHKDSK to repair the errors it found?  I believe the message was: "Errors in $130 of sector . . ."  It displays this message twice at 62% completion.  Freezes for a long time.  Gets going again only to slow to a crawl again around 70% but for not as long.  Then returns back to the start screen of System Recovery.
    Ran System Recovery again for kicks.  Again, appeared to work like a charm.  Unfortunately, the laptop is once again sitting frozen on the "Preparing . . . for first use" screen again.  It is getting hotter the longer it sits.  The fan is now audibly running at higher rpms . . . if any of that helps.  I'm shutting it down and waiting for your advice.
    Thanks!
    This question was solved.
    View Solution.

    Hello Miles1966.  I understand you're experiencing some issues with your notebook freezing.
    This does sound like a hard drive problem.  The freezes, missing HDD indicator light, and inability to perform a recovery are all symptoms of a failing hard drive.  You had been using CHKDISK previously but have you tried running the diagnostic which is built into the BIOS?  Try following these steps and post the result of the diagnostic.  I suggest running the memory test as well just in case.
    Let me know the result of these diagnostics.  I hope you have a great day!
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message

    Using iPod shuffle 4th generation for first time and receiving the error : one of the USB devices attached to this computer has malfunctioned, and windows does not recognize it. For assistance in solving this problem, click this message.
    Using win 7 and latest iTunes [10.6.3]. Have already gone through below links and did not find any solution.
    http://support.apple.com/kb/HT2292
    http://support.apple.com/kb/TS1369
    http://support.apple.com/kb/HT1923
    http://en.kioskea.net/forum/affich-17997-ipod-not-detected

    I was hoping it would be something like a USB device conflict, but now the shuffle is the only thing connected...
    This article was one of the ones you linked to above in your initial post
    http://support.apple.com/kb/TS1369
    Under Part 9. Verify that USB drivers are installed, did you try the steps in If only "Unknown Device" appears?  That appears to be your situation.
    Also, you said that the shuffle initially worked well enough to do a sync, then it had the same problem again.  If you can get it to work again initially, before doing anything else, try the following.  Select the shuffle in the iTunes sidebar, under DEVICES.  Over to the right, go to the Summary tab.  By default, the checkbox for Enable disk use should be unchecked.  If so, check it and Apply the change.  See if that makes any difference. 
    (If Enable disk use was already checked, try unchecking it and Apply the change.  Basically, set it the "other way" and see if there is any improvement.)
    NOTE:  When disk use is enabled, you have to eject the iPod in iTunes before disconnecting it physically.
    If the disk use change makes a difference, that may provide a clue about the actual cause.

  • HT1476 if i bought my ipod touch 32gb in germany where the voltage is 220v and i live in America where the voltage is 110, i will have to wait to get to my home to charge it for first time or I can charge it here and change the voltage of the battery in A

    if i bought my ipod touch 32gb in germany where the voltage is 220v and i live in America where the voltage is 110, i will have to wait to get to my home to charge it for first time or I can charge it here and change the voltage of the battery in America?
    please i need help, im worried that if I connect my ipod here, it will burn or sometihng bad.

    Just connect it to a computer's USB port.
    Most wall chargers are dual voltage (110- 220 volts) and only require a plug adopter. Check the wall charger to see if yours is.

  • I hate to say - DISATISFIED WITH with CUSTOMER CARE RESPONSE and VERIZON in all for first time.

    I am currently on National 900 plan on Motorola Droid. I switched from AT&T primarily because I love to use data on mobile. Verizon provided me the unlimited plan. I was a very happy customer with Verizon untill now.
    Scenario -
    Today, I called up Verizon customer care executive to see why bill for the month was not readjusted. Can anyone believe it its staggering $1137.73 [Roaming charges 1019.19].
    Since this January, I am visiting to Canada. On first visit in January, I called up customer care to see what options I do have to use my phone in Canada as I use it in US. Verizon had a wonderful plan - just the monthly data plan is escalated appear. 30-40$ extra than the normal appear. 29.99$ plan. I happily added that plan before visiting Canada. While there is Canada, I did get notification couple of time that I am exceeding data limit but again checked with customer care later - they readjusted the bill as that was 'FALSE ALERT' as I was on unlimited data plan while roaming as well in Canada since I paid the additional prorated of (30-40$) for period of my stay there.   
    This equation worked for first and second visit - Unlimited Data while I used to get FALSE ALERT.  
    On my  third visit , things changed - Verizon stopped providing the unlimited data services. I called up as usual before this visit. Customer care executive said - you are set to go to Canada now. I was not very specifically told on call that the rules have changed now and there is limit to data usage while roaming. During this visit also, I got the alerts - I assumed this was also a FALSE ALERT like prior one. 
    But this time, it was not FALSE ALERT, now I charged with this fee. I raised my concern and called up customer care appear. 10 day before [today is March 6th], they assured me that it is going to be re-adjusted ONLY for this time. And, they also asked to check account after 48 hours and if not readjusted please call. But, I checked my account today and it was not readjusted. So, I called up customer care executive for half an hour -- not willing to listen to any logic of mine and he said politely 'SIR, WE CANNOT READJUST YOUR BILL' . I am still trying to figure out where is my fault when I was not told DATA PLAN HAS CHANGED FROM THIS VISIT.
    I hope senior management will look into this matter and re-adjust current bill. It's due this March 10th. I would appreciate any positive response prior to this so that I can pay the bill and BE A HAPPY VERIZON CUSTOMER.
    Sincerely,
    Manoj K. [removed personal information]

    I called them back yesterday night, not willing to listen my story. Sir we sent you SMS notifications. But these notifications, I also got when I had unlimited plans on first and second visit. Then customer care told SIR you don't need to worry - but this time I should have been very specifically told rules are changed before changing my plans which I wasn't. I was under impression that I am on same unlimited plans.
    A job not well done in COMMUNICATING TO CUSTOMERS and using that an opportunity to OVERCHARGE $1100 - INSANE for one month bill. None of my fault. SMS notification is no communication as earlier SMS noitification were false positive and bills were adjusted as I was on unlimited data plan.
    Now you change the rules and send SMS Notification; RULE CHANGE, one is not aware of.. ANY NORMAL person will treat SMS notification as FALSE ALERT.. isn't it??

  • Cache and performance issue in browsing SSAS cube using Excel for first time

    Hello Group Members,
    I am facing a cache and performance issue for the first time, when I try to open a SSAS cube connection using Excel (using Data tab  -> From Other Sources --> From Analysis Services) after daily cube refresh. In end users
    system (8 GB RAM), for the first time, it takes 10 minutes to open the cube. From next run onwards, its open up quickly within 10 secs.
    We have daily ETL process running in high end servers. The configuration of dedicated SSAS cube server is 8 core, 64GB RAM. In total we have 4 cubes - out of which for 3 is full cube refresh and 1 is incremental refresh. We have seen after
    daily cube refresh, it takes 10 odd minutes to open the cube in end users system. From next time onwards, it opens up really fast with 10 secs. After cube refresh, in server systems (16 GB RAM), it takes 2 odd minutes to open the cube.
    Is there, any way we could reduce the time taken for first attempt ?
    Best Regards, Arka Mitra.

    Thanks Richard and Charlie,
    We have implemented the solution/suggestions in our DEV environment and we have seen a definite improvement. We are waiting this to be deployed in UAT environment to note down the actual performance and time improvement while browsing the cube for the
    first time after daily cube refresh.
    Guys,
    This is what we have done:
    We have 4 cube databases and each cube db has 1-8 cubes.
    1. We are doing daily cube refresh using SQL jobs as follows:
    <Batch xmlns="http://schemas.microsoft.com/analysisservices/2003/engine">
    <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <Object>
    <DatabaseID>FINANCE CUBES</DatabaseID>
    </Object>
    <Type>ProcessFull</Type>
    <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
    </Process>
    </Parallel>
    </Batch>
    2. Next we are creating a separate SQL job (Cache Warming - Profitability Analysis) for cube cache warming for each single cube in each cube db like:
    CREATE CACHE FOR [Profit Analysis] AS
    {[Measures].members}
    *[TIME].[FINANCIAL QUARTER].[FINANCIAL QUARTER]
    3. Finally after each cube refresh step, we are creating a new step of type T-SQL where we are calling these individual steps:
    EXEC dbo.sp_start_job N'Cache Warming - Profit Analysis';
    GO
    I will update the post after I receive the actual im[provement from UAT/ Production environment.
    Best Regards, Arka Mitra.

  • Performance issue in browsing SSAS cube using Excel for first time after cube refresh

    Hello Group Members,
    This is a continuation of my earlier blog question -
    https://social.msdn.microsoft.com/Forums/en-US/a1e424a2-f102-4165-a597-f464cf03ebb5/cache-and-performance-issue-in-browsing-ssas-cube-using-excel-for-first-time?forum=sqlanalysisservices
    As that thread is marked as answer, but my issue is not resolved, I am creating a new thread.
    I am facing a cache and performance issue for the first time when I try to open a SSAS cube connection using Excel (using Data tab  -> From Other Sources --> From Analysis Services) after daily cube refresh. In end users system (8 GB RAM but around
    4GB available RAM), for the first time, it takes 10 minutes to open the cube. From next run onwards, its open up quickly within 10 secs.
    We have daily ETL process running in high end servers. The configuration of dedicated SSAS cube server is 8 core, 64GB RAM. In total we have 4 cube DB - out of which for 3 is full cube refresh and 1 is incremental refresh. We have seen after daily cube
    refresh, it takes 10 odd minutes to open the cube in end users system. From next time onwards, it opens up really fast with 10 secs. After cube refresh, in server systems (32 GB RAM, around 4GB available RAM), it takes 2 odd minutes to open the cube.
    Is there, any way we could reduce the time taken for first attempt ?
    As mentioned in my previous thread, we have already implemented a cube wraming cache. But, there is no improvement.
    Currently, the cumulative size of the all 4 cube DB are more than 9 GB in Production and each cube DB having 4 individual cubes in average with highest cube DB size is 3.5 GB. Now, the question is how excel works with SSAS cube after
    daily cube refresh?
    Is it Excel creates a cache of the schema and data after each time cube is refreshed and in doing so it need to download the cube schema in Excel's memory? Now to download the the schema and data of each cube database from server to client, it will take
    a significant time based on the bandwidth of the network and connection.
    Is it anyway dependent to client system RAM ? Today the bigest cube DB size is 3.5 GB, tomorrow it will be 5-6 GB. Now, though client system RAM is 8 GB, the available or free RAM would be around 4 GB. So, what will happen then ?
    Best Regards, Arka Mitra.

    Could you run the following two DMV queries filling in the name of the cube you're connecting to. Then please post back the row count returned from each of them (by copying them into Excel and counting the rows).
    I want to see if this is an issue I've run across before with thousands of dimension attributes and MDSCHEMA_CUBES performance.
    select [HIERARCHY_UNIQUE_NAME]
    from $system.mdschema_hierarchies
    where CUBE_NAME = 'YourCubeName'
    select [LEVEL_UNIQUE_NAME]
    from $system.mdschema_levels
    where CUBE_NAME = 'YourCubeName'
    Also, what version of Analysis Services is it? If you connect Object Explorer in Management Studio to SSAS, what's the exact version number it says on the top server node?
    http://artisconsulting.com/Blogs/GregGalloway

Maybe you are looking for

  • My 17" macbook pro has started to shut itself down or restart for no reason. Can anyone tell me why?

    Today for no apparant reason, my macbook pro has been restarting itself. Has happened 8 times so far, very frustrating since I keep losing whatever I was working on at the time. L/top runs windows xp because 2 programs  I use for work ( CAD and Mapin

  • Release Workbench and BADI Help

    Hi All. I just finished a whole MAP scenario though the end result is very different to the business content and now I need to send the information to R/3 OAPC module, what I need now is to find the propper BADIs to do this so I can make a propper te

  • Dvd writer

    I bought a dvd burner off ebay that was advertised as mac compatible. It's not, but the people at sony said that the only reason is that it doesn't have toast. I know the new toast comes out today. Do I need a specific version, he said that the drive

  • ADF Portlet Support

    I have couple of questions Oracle Portal (10.1.4) and ADF Portlet(using jdeveloper10.1.3) 1) Whether ADF Portets can be deployed as JSR168 portlet? If yes, does it support inter portlet communication ? 2) Whether ADF portlets can be deployed as PDK-J

  • Matrix column

    Hai, How can i freez the matrix column. eg.   for example there are 20 columns in the matrix . I need to freez still 5 column. so that when the user can scroll and enter the data easily. regards Suresh S