How do I get a count of consecutive records?

I have broken down my problem into a simpler car use problem. (My table really has many more rows, car types and car names.)
A car is used sequentially but not every day. Each row in the table represents a sequential use.
I want to know the number of times it was used sequentially and then the first day and the last day of that use.
I think I need to use OVER PARTITION but I am not sure how.
If anyone can provide a solution or point me in the right direction for the answer I really appreciate it!
Here is the table data:
TRANSACTION_NO     CAR_TYPE     CAR_NAME     TRANSACTION_DATE
2     COUPE     D     02/28/2012 03:36:37
3     COUPE     D     02/28/2012 03:38:37
12     COUPE     D     02/29/2012 10:04:58
183     COUPE     D     03/26/2012 12:18:41
184     COUPE     D     03/26/2012 13:56:43
185     COUPE     F     03/26/2012 15:24:44
186     COUPE     F     03/26/2012 18:02:55
206     COUPE     F     04/03/2012 00:13:48
207     COUPE     E     04/03/2012 05:39:29
208     COUPE     E     04/03/2012 08:32:02
272     COUPE     E     04/09/2012 11:21:26
273     COUPE     E     04/09/2012 14:34:26
274     COUPE     D     04/09/2012 17:42:25
275     COUPE     D     04/09/2012 21:29:32
276     COUPE     D     04/10/2012 00:31:57
349     COUPE     D     04/15/2012 16:41:16
350     COUPE     F     04/15/2012 18:21:54
351     COUPE     F     04/15/2012 20:10:12
376     COUPE     F     04/19/2012 01:57:39
377     COUPE     F     04/19/2012 05:43:06
380     COUPE     F     04/19/2012 08:26:25
381     COUPE     F     04/19/2012 12:19:27
Here is the output I would like (note car D and F were reused two times):
CAR TimesUsed First_use_date Last_use_date
D     5     02/28/2012 03:36:37     03/26/2012 13:56:43
F     3     03/26/2012 15:24:44     04/03/2012 00:13:48
E     4     04/03/2012 05:39:29     04/09/2012 14:34:26
D     4     04/09/2012 17:42:25     04/09/2012 14:34:26
F     6     04/15/2012 18:21:54     04/19/2012 12:19:27
Here is the table and data.
CREATE TABLE CAR_USE
TRANSACTION_NO NUMBER(3),
CAR_TYPE VARCHAR2(10 BYTE),
CAR_NAME VARCHAR2(2 BYTE),
TRANSACTION_DATE DATE
LOGGING
MONITORING;
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(2, 'COUPE', 'D', TO_DATE('02/28/2012 03:36:37', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(3, 'COUPE', 'D', TO_DATE('02/28/2012 03:38:37', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(12, 'COUPE', 'D', TO_DATE('02/29/2012 10:04:58', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(183, 'COUPE', 'D', TO_DATE('03/26/2012 12:18:41', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(184, 'COUPE', 'D', TO_DATE('03/26/2012 13:56:43', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(185, 'COUPE', 'F', TO_DATE('03/26/2012 15:24:44', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(186, 'COUPE', 'F', TO_DATE('03/26/2012 18:02:55', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(206, 'COUPE', 'F', TO_DATE('04/03/2012 00:13:48', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(207, 'COUPE', 'E', TO_DATE('04/03/2012 05:39:29', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(208, 'COUPE', 'E', TO_DATE('04/03/2012 08:32:02', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(272, 'COUPE', 'E', TO_DATE('04/09/2012 11:21:26', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(273, 'COUPE', 'E', TO_DATE('04/09/2012 14:34:26', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(274, 'COUPE', 'D', TO_DATE('04/09/2012 17:42:25', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(275, 'COUPE', 'D', TO_DATE('04/09/2012 21:29:32', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(276, 'COUPE', 'D', TO_DATE('04/10/2012 00:31:57', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(349, 'COUPE', 'D', TO_DATE('04/15/2012 16:41:16', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(350, 'COUPE', 'F', TO_DATE('04/15/2012 18:21:54', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(351, 'COUPE', 'F', TO_DATE('04/15/2012 20:10:12', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(376, 'COUPE', 'F', TO_DATE('04/19/2012 01:57:39', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(377, 'COUPE', 'F', TO_DATE('04/19/2012 05:43:06', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(380, 'COUPE', 'F', TO_DATE('04/19/2012 08:26:25', 'MM/DD/YYYY HH24:MI:SS'));
Insert into CAR_USE
(TRANSACTION_NO, CAR_TYPE, CAR_NAME, TRANSACTION_DATE)
Values
(381, 'COUPE', 'F', TO_DATE('04/19/2012 12:19:27', 'MM/DD/YYYY HH24:MI:SS'));
COMMIT;

Frank Kulash wrote:
Using the Fixed Difference technique, you can do it with only 1 sub-query:Yes, but this assumes transaction_date is unique and, afaik, this is not the case - two or more cars can be taken at same time making ROW_NUMBER non-deterministic. For example:
SQL> update car_use a set transaction_date = (select max(b.transaction_date) from car_use b where b.transaction_no < a.transaction_no)
  2  where a.transaction_no in (185,207,274,350);
4 rows updated.
SQL>  SELECT car_name, transaction_date
  2   , ROW_NUMBER () OVER ( ORDER BY      transaction_date)
  3         - ROW_NUMBER () OVER ( PARTITION BY  car_name
  4                 ORDER BY      transaction_date
  5         )     AS grp_id
  6   FROM    car_use
  7  /
CA TRANSACTION_DATE        GRP_ID
D  02/28/2012 03:36:37          0
D  02/28/2012 03:38:37          0
D  02/29/2012 10:04:58          0
D  03/26/2012 12:18:41          0
D  03/26/2012 13:56:43          0
F  03/26/2012 13:56:43          5
F  03/26/2012 18:02:55          5
F  04/03/2012 00:13:48          5
E  04/03/2012 00:13:48          8
E  04/03/2012 08:32:02          8
E  04/09/2012 11:21:26          8
CA TRANSACTION_DATE        GRP_ID
D  04/09/2012 14:34:26          6
E  04/09/2012 14:34:26          9
D  04/09/2012 21:29:32          7
D  04/10/2012 00:31:57          7
D  04/15/2012 16:41:16          7
F  04/15/2012 16:41:16         13
F  04/15/2012 20:10:12         13
F  04/19/2012 01:57:39         13
F  04/19/2012 05:43:06         13
F  04/19/2012 08:26:25         13
F  04/19/2012 12:19:27         13
22 rows selected.
SQL> As you can see, cars D & E were used at same date 04/09/2012 14:34:26 and using Fixed Difference technique produced wrong groups. And bad part is - result is, as I already mentioned, non-deterministic. It can change next time you run same query against same table data.
SY.

Similar Messages

  • How to get a count of unique records

    How do you get a count of unique records? Looking only for one number, not a list..so if the data is:
    ID
    ===
    1234
    1234
    1234
    1236
    1236
    1237
    Then, the count total will be one field called 'ID' with the value '3' in it..
    All I know how to do is get a count that will count all records, or do it in two queries. Looking to do this in one query statment..
    Thanks..

    Just a small clarification...
    Concatenation could potentially give wrong result, depending on the data.
    For example...
    sudhakar@ORCL>ed
    Wrote file afiedt.buf
      1  with t1 as
      2  (select 'AA' c1, '101' c2 from dual union
      3  select 'AA1' c1, '01' c2 from dual union
      4  select 'AA101' c1, null c2 from dual union
      5  select 'BB2' c1, '345' c2 from dual union
      6  select 'AA101' c1, null c2 from dual union
      7  select 'BB2' c1, '345' c2 from dual union
      8  select 'BB234' c1, '5' c2 from dual
      9  )
    10* select count(distinct c1 || c2) from t1
    sudhakar@ORCL>/
                        2IMHO, the required answer will be...
    sudhakar@ORCL>ed
    Wrote file afiedt.buf
      1  with t1 as
      2  (select 'AA' c1, '101' c2 from dual union
      3  select 'AA1' c1, '01' c2 from dual union
      4  select 'AA101' c1, null c2 from dual union
      5  select 'BB2' c1, '345' c2 from dual union
      6  select 'AA101' c1, null c2 from dual union
      7  select 'BB2' c1, '345' c2 from dual union
      8  select 'BB234' c1, '5' c2 from dual
      9  )
    10* select count(distinct c1 ||'.'|| c2) from t1
    sudhakar@ORCL>/
                             5
    sudhakar@ORCL>vr,
    Sudhakar B.

  • How do you get word count to print at the end of a document in Pages?

    How do you get word count to print at the end of a document in Pages?

    Pages v5 does not provide a user assignable word count variable. With some AppleScript, and a paste operation from the clipboard, you can have locale punctuated word count in this format: 7,803 — anywhere in your document. The following AppleScript works with Pages '09 v4.3 through Pages v5.5.2 on Yosemite.
    I would suggest that you copy paste the following AppleScript into your [Apple] Script Editor and save it (suggestion) wordcnt.applescript. Then, follow this with an option+Save As… and this time set the File format to Script Bundle, or Application with hidden extension — saved to your Desktop. Provided you have a Pages document open, you are then a double-click from the ability to paste your current word count into Pages.
    Note: If you have Pages word count display enabled, it will automatically count your pasted value as another word which initially may deceive on true word count at the time the script was run.
    AppleScript
    --- copy below this line ---
    property locale : "en_US.UTF-8" -- In Terminal, use the locale command to see yours
    if not ApplicationIsRunning("Pages") then
         display dialog "Pages must be running to use this utility."
         return quit
    end if
    tell application "Pages"
        tell body text of front document
            set wordCnt to count words
            -- Don't want punctuated numbers? Remove the single quote from printf format
            set the clipboard to (do shell script "export LC_ALL=" & locale & "; printf \"%'d\" " & wordCnt)
        end tell
    end tell
    on ApplicationIsRunning(appName)
         tell application "System Events" to set appNameIsRunning to exists (processes where name is appName)
         return appNameIsRunning
    end ApplicationIsRunning

  • How can I get a count of objects in the near cache? (Extend client)

    Hi,
    I'm trying to figure out how to get the count of objects in my near cache (from c++ client). Knowing the size of the near cache is a key factor when optimizing configurations for performance.
    However if I call size() on the cache handle I get the count of objects in the cache (ie the cluster). How can I get a count of objects in the near cache?
    Thanks
    Rich Carless

    H Rich,
    It may not be ideal, but I think you may be able to infer the size by using the HeapAnalyzer (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_heap_analyzer.html) facility, specifically the "class" based HeapAnalyzer. Its Snapshot representation http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_snapshot.html provides a mapping between class name and ClassStats (http://download.oracle.com/docs/cd/E15357_01/coh.360/e15728/classcoherence_1_1lang_1_1_class_based_heap_analyzer_1_1_class_stats.html) which provides information on how many instances of a given class type are in memory. Note the reported counts are process wide but if your key or value type are distinct you may be able to infer your answer. I realize this is rather complex, my only other suggestion would be to just make some guesses on size and see how they effect performance.
    Mark
    Oracle Coherence

  • How do you get  the count of number of  checkbox selected?

    hi,
    plz tell me how do you get the count of number of checkbox selected?

    Not sure what you are doing so I will attempt to answer your question. If have one question which can have multiple answers you have will recieve an array so you have to do getParameterValues("name") and move it into an array.
    If you have multiple questions and only value will be selected do a getParameter("name") on each form element.
    HTH, if not provide more detail.
    J.Clancey

  • How do I get my old Surround Mixer recording sources back?

    I recently had my computer repaired where I basically had a complete overhaul. In the process they installed a second soundcard (the one that went with the new motherboard) alongside my original Creative Sound Blaster Audigy card (Sound Blaster Audigy Platinum eX). Before, when I would record audio into my computer, I opened the Surround Mixer software and in the record pulldown menu it showed all of the inputs as they relate to my Audigy interface (SPDIF, Aux In 2, Line In 2, etc.). Now when I open the Surround Mixer software, I only get generic options such as Analog Mix, CD Digital, Microphone, etc. and therefore I can't get any outside audio into my computer.
    I figured the computer?was defaulting to the?new sound card so I disabled the onboard audio in my BIOS and then installed the Creative Sound Blaster Series 2 Driver. I clicked on the driver and it said that it needed to uninstall another driver that was already there. The install went a little funny and it got hung up a couple of times. Then, I couldn't get Surround Mixer to work at all so I went to the Creative website and installed Software Auto Update. I downloaded and installed all the critical components?but that also went a little funny. It took about three tries and it didn't seem like it actually finished installing, but when I checked on Auto Update again, it said that I was up to date and that everything had installed. I noticed at the beginning that it installed a new version of Surround Mixer but when I opened it later, it still had those same generic options, not the the ones that match my external interface.
    What do I need to do to get my original settings back?
    Message Edited by audiodrome on 04-30-2009 06:46 PMMessage Edited by audiodrome on 04-30-2009 07:32 [email protected]

    >Re: How do I get my old Surround Mixer recording sources back?p audiodrome,
    Is the external Audigy Dri've properly connected? Does the Plat Ex have the rear jacks? If so, can you record from the rear LineIn or mic jack and play sound files through headphones or speakers? What happens when you run the Creative Diagnostic? What does Device Manager show? Otherwise, yes, uninstall and reinstall the Creative software. If your install CD has a repair option, try that first. However, you may find you need to remove the Audigy from your PC, reboot without it, and then reinstall everything. Some Soundblaster cards don't play well with some integrated soundcards, so you may also want to disable the integrated soundcard in BIOS.
    Message Edited by Katman on 05-04-2009 :00 AM

  • How can i get the rowNumber of a record in a table ?

    How can i get the rowNumber of a record in a table ?

    Marcel,
    Please consult the "Tables" chapter in the UIX Developer's Guide. You can search for a method titled "doSelectionEvent" that will indicate how to deal with table selections.
    Hope this helps,
    Ryan Pollock

  • How can i get the count vaule from GPIB?

    I want to get the count waule from GPIB ,but I find that the vaule I get from GPIB now is the trace vaule ,
    so I ask How can i get it.

    The count of what? What kind of instrument are you using?

  • How to get the count of the records

    Hi all,
    how can we get the record count after the read statement.Means if we write a read statement based on a condition,then how can we know that how many records get effected for this read statement

    You can use loop statement to read the records and write in some internal table and after the end of the loop, you can use describe command to find the number of records.
    For eg. DESCRIBE TABLE tablename LINES lines.
    Here the "Lines" field will give the total number of records present in the table "tablename"

  • How can I get a count of records in a DB?

    If I want to get a count of the number of records in a table how do I do it?

    Generally, it's good practice to close the connection once you're done with it unless you have a reason to keep going back to it, in which case it probably becomes a performance issue. If you need to keep accessing the same connection repeatedly while your form is running (in Acrobat), I think you would be best to leave it open after initialization.<br /><br />You might consider placing the code which counts the records into a function inside a Script Object. This way, you can just call the Script Object method and retrieve the record count whenever you need it.<br /><br />Make sure you define the <b>oDB</b> variable outside the function but inside the Script Object:<br /><pre>var oDB = null;<br /><br />function GetRecordCount()<br />{<br />  if (oDB == null)<br />  {<br />    var sDataConnectionName = "<value>"; // example - var sDataConnectionName = "MyDataConnection"; <br /><br />    // Search for sourceSet node which matchs the DataConnection name <br />    var nIndex = 0; <br />    while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName) <br />    { <br />      nIndex++; <br />    } <br /><br />    var oDB = xfa.sourceSet.nodes.item(nIndex); <br />    oDB.open();<br />  }<br /><br />  oDB.first(); <br /><br />  // Search node with the class name "command" <br />  var nDBIndex = 0; <br />  while(oDB.nodes.item(nDBIndex).className != "command") <br />  { <br />    nDBIndex++; <br />  } <br /><br />  // Backup the original settings before assigning BOF and EOF to stay <br />  var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction"); <br />  var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction"); <br /><br />  oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction"); <br />  oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction"); <br /><br />  var itemCount = 0; <br /><br />  while(!oDB.isEOF()) <br />  { <br />    itemCount++; <br />    oDB.next(); <br />  } <br /><br />  // Restore the original settings <br />  oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction"); <br />  oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction"); <br /><br />  return itemCount;<br />}</pre><br />You can create a script object by right-clicking on the top-level form node ("form1" by default). Say you name your script object "Utils", you can then call the function inside of it from any event script like this:<br /><pre>this.rawValue = Utils.GetRecordCount();</pre><br />Stefan<br />Adobe Systems

  • How can I get a count at the same time I am inserting into another table

    I have a requirement where I have to find out the count(number of records inserted into another table) at the same time I insert into the table:
    Like
    I am copying records from table B to A, while doing this I have to find out how many records I've inserted since I need this count in subsequent steps
    INSERT INTO A
    SELECT * FROM B
    how can I store the count into any variable while doing above statement
    Please advice

    No, Warren that doesn't work!
    SQL> set serveroutput on
    SQL> declare
      2     vCtr  number := 0;
      3  begin
      4     insert into emp2
      5     select * from emp;
      6
      7     select count(*)
      8       into vCtr
      9       from emp2;
    10
    11     dbms_output.put_line('rows created '||to_char(vCtr));
    12  end;
    13  /
    rows created 15
    PL/SQL procedure successfully completed.
    SQL> declare
      2     vCtr  number := 0;
      3  begin
      4     insert into emp2
      5     select * from emp;
      6
      7     select count(*)
      8       into vCtr
      9       from emp2;
    10
    11     dbms_output.put_line('rows created '||to_char(vCtr));
    12  end;
    13  /
    rows created 30
    PL/SQL procedure successfully completed.
    SQL>

  • How can I get a count of ALL nodes in a JTree?

    Not sure if I am missing something here or what. Is there an easy way to determine the total number of nodes in a JTree? I thought there would be a method to return this, but I'm not seeing it in JTree or DefaultTreeModel. Do I have to start at the root and recursively get child counts? Yuck!
    Jamie

    You are absolutely right! Create a recursive method and count all your children from the root.
    Denis Krukovsky
    http://dotuseful.sourceforge.net/

  • Any ideas on how to quickly get a count of logged-in users?

    Hi, is there an easy and quick way to get the count of users currently logged into the system, i.e. without having to scoll tens of pages of the Company Sign-In log.
    pr

    Very simple:
    Create a new analysis:
    Active Subject Area: Usage Tracking Analysis
    User Adoption Metrics and your field is the "% Logged In"
    (i think, this report section have to be enabled in admin, or maybe have to be licensed....)

  • How can I get the number of distinct records that each field of a DB table has?

    Hi everyone,
    I would like to know how to get he number of distinct records that each field of a DB table has. When tracing a SQL statement either in ST12 or ST05, in the plan execution, if the sentence made useage of an index, then I can click in the index name and see this kind of information (no. of distinct values for each field of that index).
    Can I do something like this but with the whole fields of a table?
    What I have found until now is in Tx ST10; I search for whatever kind of table statistics and then use the function of "Analyze table" (which takes me to Tx DB05). In here, I can enter a table and up to 5 fields in order to get the information that I want.
    Is there any other way to do this?
    Regards,
    David Reza

    Hi David,
    You can export the same to excel and sort as per requirement.
    Sorry is that what you are looking for ?
    Regards,
    Deepanshu Sharma

  • How do I get the line-in to record low frequencies?

    The iPhone with GarageBand is potentially one of the most powerful tools for mobile recording ever.  Unfortunately there are several tragic yet avoidable drawbacks that reduce it to nothing more than a mere toy.  1. You can't use the camera usb adapter to bring in loss-less digital stereo input.  2. Even if you could, you can't split the stereo into 2 seperate mono tracks.  And to take the cake...  3. You can't do much recording with the 3.5 jack's line-in because you get ABSOLUTELY NO LOWS!  This is due to the iPhones roll-off low frequency limiter filter, which i'm told since ios6 can possibly be disabled, though it's not in the Settings and i have yet to find an app that will do it in the background while running Garageband.  Sure, the Garageband app could do that, but then it would be a powerful incalculably valuable tool in the hands of everyone.  No lows means no drums, no bass, and vocals that sound like...well...like they were recorded via telephone.  Yes, it's painfully clear you recorded that demo on a phone, because when you play it back in your home or car it sounds like your listening to someone play it for you on the other end of a phone call.  There is no adjustment to compensate for the absence of low frequencies.  SOMEONE PLEASE TELL ME I AM WRONG and that you have a work-around or know of something I've missed.  How do you get lows into Garageband???

    Thanks for the info.  I am not wanting flat stereo nor digital input from the 3.5.  Only wanting flat mono.  But before I go the apogee route (which is a $150-200 solution, not to mention a solution that will add more devices to the connection and thus more opportunities for noise), I will probably just resort to purchasing an ipad (can get a mini for $299) .  My mixer has usb out, and I can go straight into the ipad digitally with the usb camera kit, albeit I still can't split 1 stereo channel into 2 mono channels.  But I digress:  my entire purpose for this post is that i would like to stay as mobile as possible by using the iphone, but with all the darn limitations imposed by no one other than Apple, what could be an easy way to record has been nullified.  What's frustrating is that all the components are there and I have them, all the hardware is more than capable; but in both cases (the 3.5 mono or the usb stereo) there is a software feature (or lack thereof) blocking me.
    Again if anyone knows of an app that will disable the software low-cut, please respond...

Maybe you are looking for