Confusing record Count Problem

I am having problems figuring out how to pull this off. What
I have is one database with two tables, one table is used to
display a list of product categories and the other talbe is used to
store the products information.
The first table is named: prod and has a 2 columns that have
information as follows:
Prodtype: and Prodcat:
Sewing Machines Serger
Sewing Machines Professional
Vacuum Upright
Vacuum Canister
The second table is called prodmat and has various columns
but the ones I need are listed below
cat cat2 cat3
Serger Professional this field is null
Now what I am have is a page that pulls all of the categories
out and displays them on a page from the prod table. What I want to
do is have a recordcount next to each category. So if there are 15
records in the prodmat table that have Serger in the cat, cat2, or
cat3 it will display a 15 next to the category that says Serger.
Here is the code from the page:
<CFQUERY NAME="sewing" DATASOURCE="absi">
SELECT *
FROM prod
WHERE Prodtype = 'Sewing Machines'
</cfquery>
<<<<<<---The
output---->>>>>>>>
<cfoutput query="sewing">
<A href="sewing.cfm?Prodcat=#Prodcat#">#Prodcat# (this
is where I want the total number of products to appear each
category)
</cfoutput>
Any help would be greeatly appreciated, I am tearing my hair
out trying to make this work.

You have a bad data model. Instead of having different
columns for each category within your model table, you should
migrate the associated categories to their own associative entity
(link table) where you would have entries for each category for
each model. This would resolve your many to many relationship
between model and category, rather than having to have multiple
columns for categories in model. In other words, this "link table"
would contain something like the model ID and category ID values
for each model and category association.
Then all you would need to do to get category information by
model would be to join your model category-model, and category
tables. The process is called normalization, and you might consider
looking into this to help you create a data model that would
facilitate your application development.
Phil

Similar Messages

  • Invalid Leaf Record Count??

    After Software Update installed new versions of QuickTime and iTunes, my computer hung while doing the required restart. It got stuck at the point where the spinning clock thing appears. I had to force a shutdown by pressing and holding the power button. Now when I run Disk Utility (from an OS X install CD) to repair the disk, I get the following error message:
    Invalid leaf record count.
    It should be 7, instead of 66.
    The repair ends with a message that the disk could not be repaired. However, when I start-up in single-user mode and do a disk repair by typing in “fsck –yf”, I get no error messages, and it says the hard disk appears to be OK. I also ran DiskWarrior, but that did not fix the “invalid leaf record count” problem.
    I would be interested to know what “invalid leaf record count” means and if I should be concerned.
    Thanks.
    Lou

    You can get this error if you use an older Panther CD instead of the Tiger DVD on your 10.4 as per this article.
    http://docs.info.apple.com/article.html?artnum=301266

  • Problem in getting update records count while executeBatch()

    hi,
    I have used "Select in Insert" queries for migrating data from one table to another.
    like
    INSERT INTO TABLE1 (COL1, COL2)
    SELECT COL1,COL2,... FROM TABLE2
    WHERE COL1 = ... AND COL2 = ...;
    Case 1:
    I added these statements as addBatch() & at the end i execute method " executeBatch()". It returned the array of integer having record count for each query respectively.
    But that count was always be -2 i.e. SUCCESS_NO_INFO.
    Case 2:
    If i run the same code with executeUpdate() method , it returned me the correct number of records counts that are inserted into the table.
    I cudn't able to understand that it is failing for case1.
    Can anybody tell the reason for this behaviour .......................
    Edited by: user11187328 on Mar 17, 2010 3:45 AM
    Edited by: user11187328 on Mar 17, 2010 3:46 AM

    hi,
    Thanks again for a correct reply but can u also tell me tht which jar i needs to included.
    There are so many jar files & should i remove old jar files or jvm auto picks the updated jar file.
    Following jar files are shown on the link:::
    ojdbc5.jar (1,996,228 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types.
    ojdbc5_g.jar (3,081,328 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code.
    ojdbc6.jar (2,111,220 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
    ojdbc6_g.jar (3,401,519 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code.
    ojdbc5dms.jar (2,429,777 bytes) - Same as ojdbc5.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc5dms_g.jar (3,101,875 bytes) - Same as ojdbc5_g.jar, except that it contains instrumentation to support DMS.
    ojdbc6dms.jar (2,655,741 bytes) - Same as ojdbc6.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc6dms_g.jar (3,423,263 bytes) - Same as ojdbc6_g.jar except that it contains instrumentation to support DMS.
    orai18n.jar (1,656,280 bytes) - NLS classes for use with JDK 1.5, and 1.6. It contains classes for NLS support in Oracle Object and Collection types. This jar file replaces the old nls_charset jar/zip files.
    demo.zip (603,363 bytes) - contains sample JDBC programs.

  • Problem in getting correct update records count while getUpdateCount()

    hi,
    I have used "Select in Insert" queries for migrating data from one table to another.
    like
    INSERT INTO TABLE1 (COL1, COL2)
    SELECT COL1,COL2,... FROM TABLE2
    WHERE COL1 = ... AND COL2 = ...;
    Case 1:
    I added these statements as addBatch() & at the end i execute method " executeBatch()".
    Then i execute
    getUpdateCount() method
    on that prepareStatement ,but that count was not correct all the time.
    Case 2:
    If i run the same code with executeUpdate() method , it returned me the correct number of records counts that are inserted into the table.
    I cudn't able to understand that it is failing for case1.
    Can anybody tell the reason for this behaviour .......................
    Edited by: user11187328 on Mar 18, 2010 4:52 AM

    hi,
    Thanks again for a correct reply but can u also tell me tht which jar i needs to included.
    There are so many jar files & should i remove old jar files or jvm auto picks the updated jar file.
    Following jar files are shown on the link:::
    ojdbc5.jar (1,996,228 bytes) - Classes for use with JDK 1.5. It contains the JDBC driver classes, except classes for NLS support in Oracle Object and Collection types.
    ojdbc5_g.jar (3,081,328 bytes) - Same as ojdbc5.jar, except that classes were compiled with "javac -g" and contain tracing code.
    ojdbc6.jar (2,111,220 bytes) - Classes for use with JDK 1.6. It contains the JDBC driver classes except classes for NLS support in Oracle Object and Collection types.
    ojdbc6_g.jar (3,401,519 bytes) - Same as ojdbc6.jar except compiled with "javac -g" and contains tracing code.
    ojdbc5dms.jar (2,429,777 bytes) - Same as ojdbc5.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc5dms_g.jar (3,101,875 bytes) - Same as ojdbc5_g.jar, except that it contains instrumentation to support DMS.
    ojdbc6dms.jar (2,655,741 bytes) - Same as ojdbc6.jar, except that it contains instrumentation to support DMS and limited java.util.logging calls.
    ojdbc6dms_g.jar (3,423,263 bytes) - Same as ojdbc6_g.jar except that it contains instrumentation to support DMS.
    orai18n.jar (1,656,280 bytes) - NLS classes for use with JDK 1.5, and 1.6. It contains classes for NLS support in Oracle Object and Collection types. This jar file replaces the old nls_charset jar/zip files.
    demo.zip (603,363 bytes) - contains sample JDBC programs.

  • Invalid record count - grey screen- Target Mode Cures

    Hi there,
    I have a common problem: I was doing nothing particular that I remember: No fancy file uploads, doanloads, creation, erasing - nothing special:
    Anyway after a customary week, or few days of leaving the macbook permanently on, I think "let's give it a rest".
    Then switch back on:
    - Grey screen, spinning grey progress wheel fine.
    - Takes a while. Strange. After say a minute - it just switches off wordlessly.
    - Reset PRAM: No solution. Take a look with single-user startup in console: Files are all there, OK. Disk not dead.
    - Start up from OS X 10.5 disk:
    Permissions repair fine. Good.
    Verify disk: FAIL! +*Invalid Record Count.Volume check failed.*+
    Next: *Try target disk mode to back up essentials* - that works fine: I now have Time Machine AND a smaller important essentials backup.
    But finally, here's the surprise: Just for kicks, I *shut the macbook down, try a reboot - and it works!*
    But I note that root system files are unchanged since the problem occurred: ".hotfiles.btree" for example (I don't know what that is but suspect it's relevant).
    Then: I tried restarting again - and back to square one, it won't boot.
    Do the "Target disk" firewire mode trick again, and browse a few folders: And it boots (slowly).
    If I just leave the Macbook on permanently - everything seems fine. Not even sluggish.
    So:
    - Why can connecting a disk with an incorrect file system in target disk make the system forget about these problems when booting?
    - Why does the problem return on a successive reboot?
    - Is it related to some system files being ignored if booting straight after a target mode session?
    - What is ".hotfiles.btree", and should it not exist ?
    And the big one:
    - +Can extended Applecare, wot cost me loads of money, help me?+

    Hi Cornelius:
    Having been a faithful Apple-groupie for a while, and despite some problems over the years (hard drive failing, screen going, etc.) this is the first time I'm disappointed with them, because theor Micromat Applecare deal is a ripoff:
    You fork out for Applecare extension: All you get is something that say "Yep, you've got a problem. Now go and buy techtoolpro".
    That is, the TechTool Deluxe is practically useless. Argh.
    Worse: They keep that rather quiet. If you run TechTool deluxe, and it fails: It points you to the Techtool site to
    "download the TechTool Deluxe software with diagnostic and repair capabilities".
    You think "Aha, right, I need an update, or a DMG rather than just the executable".
    Download another 1.25Gb.
    So you try again: Same thing.
    The chiselling little crooks, to quote Ken Livingstone, won't even come out and say "Buy TechTool Pro to fix it". The website as reported above is wrong.
    Result: I'm not happy with them. And I'll never buy anything off Micromat.
    In the meantime, I've got a bootable backup thanks to CC-Cloner (excellent, I'll send him some money), and I'm waiting until I don't have any critical deadlines to allow myself time to restore a daily bootable backup.
    The dodgy files seem to be the Sun Developper Java suite according to CC Cloner.

  • Getting the record count from result set

    i'm retreiving the result set using the executeQuery method, now i want to know how many records are there in the result set, that is the record count of the result set.
    one solution to that is to first use the executeUpdate and then use the executeQuery but i think that is not the right way.
    so please tell me is there any method in jdbc to get that thing done
    Tanx

    Hi
    Do you know if your DB supports "insensitive scrolling"?
    SQL generally do, but some don't - I had the same problem with the
    open source version of Interbase from Phoenix...
    Anyway - try creating your statement this way:
    public Statement createStatement(int resultSetType, int resultSetConcurrency)
    throws SQLException
    ...where resultset type should be:
    ResultSet.TYPE_SCROLL_INSENSITIVE
    Then you can do this:
    ResultSet rs = stm.executeQuery(q);
    int size = rs.last(); //this what you looking for?
    rs.beforeFirst();
    while(rs.next()){
    }

  • Oracle 10g - Insert in to Temporary Table - Record count mismatch between s

    We are trying insert records from a select query in to temporary table, some of the records is missing in the temporary table. The select statement is having multiple joins and union all which it little complex query. In simple terms the script contains 2 part 1st Part Insert in to temporary table 2nd part Select query with multiple joins, inline sub queries, unions and group by classes and conditions
    Eg. If we execute select statement alone it returns some count for example => 60000 After inserting into the temp table, in temp table the count is around 42000 why is the difference?
    It is simple bulk inserts... insert in to temp table select from xxx. also, there is no commit in between. The problem is all the records populated by the select statement are not inserted in to temp table. some records are not inserted.*
    Also, we had some other observation. It only happens in its 2nd execution and not its first run. Hope there might be some cache problem
    Even, we also did not believe that. We are wondering. In TOAD, we tested however at times it happens. In application jar file, after "insert in to temp select * from xxx" we take the i. record count of temp table and ii. record count of "select * from xxx" separately but both doesn't match. Match only at 1st time.
    Thank you in advance for your efforts and help.
    Shiva.

    The code looks like
    sql = "insert in to temptable select x,y,z,.... from xxx,abc,pqr..where...."; (logial but not real is very complex around 700 lines with multiple joins, inline sub queries, group by etc. )
    stmt = conn.createStatement();
    rCount= stmt.executeUpdate(sql);
    Actual issue is
    rCount = xxxx = Count(temptable) < count(select x,y,z,.... from xxx,abc,pqr..where....)
    why this diffference ? some records populated in the select but not inserted in to temp table
    Anyone can explain?

  • Record counts by hour,day - report

    Record count, grouped by day, hour
    Intended output:
    DATE | 00:00 | 01:00 | 02:00 | .....
    07-21-2011 | 100 | 200 | 300
    07-22-2011 | 500 | 0 | 200
    The below returns a version, but it doesn't account for when there are no records for a given hour.
    I've created a successful script, but it involves too many subqueries, and is an abmonination
    Any help would be awesome!
    (any table with a date field will work)
    with
    hrly_ttls as
    select to_char(sdate,'YYYY-MM-DD') as dte, to_char(sdate,'HH24') as hr,
    count(*) as cnt from df_audit_batches
    group by to_char(sdate,'YYYY-MM-DD'),to_char(sdate,'HH24')
    select dte,
    max(ltrim(sys_connect_by_path(cnt,' '),' ')) keep
    (dense_rank last order by level) as Ttls
    from (
    select hrly_ttls.*, row_number() over(partition by dte order by hr) as rn
    from hrly_ttls
    start with rn = 1
    connect by prior dte = dte
    and prior rn = rn - 1
    group by dte;
    ==> returns
    DTE TTLS
    2011-07-01     2 1 1 1
    2011-07-02     1 2 1 1

    Hi,
    Welcome to the forum!
    Whenever you post a question, please include CREATE TABLE and INSERT statements for some sample data. That way, people who want to help you can re-create the problem and test their ideas. Also post the results you want from that data. Simplify if possible. For example, if you need a query for all 24 hours in a day, you can post a question that only has data and results for maybe 3 hours. Adapting the result should be easy.
    Always say which version of oracle you're using.
    Since this is your first post, I'll post some sample data for you:
    CREATE TABLE     df_audit_branches
    (     sdate     DATE
    INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('21-Jul-2011 00:00', 'DD-Mon-YYYY HH24:MI'));
    INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('21-Jul-2011 00:01', 'DD-Mon-YYYY HH24:MI'));
    INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('21-Jul-2011 02:02', 'DD-Mon-YYYY HH24:MI'));
    INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('22-Jul-2011 01:40', 'DD-Mon-YYYY HH24:MI'));And the results you want from that data might look like this:
    DAY         TXT
    21-Jul-2011    2   0   1
    22-Jul-2011    0   1   0In the real problem, of course, you would need 24 "columns" in txt, not just 3.
    To include all hours, even if there is no data for a particular hour, do an outer join to a "table" (I used a sub-query, all_hours, not a real table) that has one row per hour.
    Here's one way to do that:
    WITH     got_cnt          AS
         SELECT       TRUNC (sdate)               AS day
         ,       TO_CHAR (sdate, 'HH24')     as hour
         ,       COUNT (*)               AS cnt
         FROM       df_audit_branches
         GROUP BY  TRUNC (sdate)
         ,       TO_CHAR (sdate, 'HH24')
    ,     all_hours     AS
         SELECT     LEVEL               AS n
         ,     TO_CHAR ( LEVEL - 1
                   , 'FM00'
                   )          AS hour
         FROM     dual
         CONNECT BY     LEVEL <= 3     -- or 24, for the real query
    SELECT       c.day
    ,       REPLACE ( SYS_CONNECT_BY_PATH ( TO_CHAR ( NVL (c.cnt, 0)
                                    , '999'
                )          AS txt
    FROM            all_hours     h
    LEFT OUTER JOIN     got_cnt          c       PARTITION BY (day)
                             ON     c.hour     = h.hour
    WHERE     CONNECT_BY_ISLEAF     = 1
    START WITH     h.n     = 1
    CONNECT BY     h.n     = PRIOR h.n + 1
         AND     c.day     = PRIOR     c.day
    ORDER BY  c.day
    ;This will work in Oracle 10.1 (and up).

  • Record Count + Resultset

    Hi All,
    I am executing a query in back and returning ref cursor to front end. Before returning recordset, I am doing record count. If record count is more then max record count defined, then I do not return any recordset.
    Now the problem is that I have to execute this query twice, once for counting and another for fetching. This increases my response time. I tried to get Cursor%ROWCOUNT after fetching, so that I can get total time during fetch itself, but it shows 1 as it always fetch single record at time.
    Is there any way through which I can execute query once and get records as well as its count.
    Thanks,
    Danish

    When you OPEN a cursor the SQL statement associated with it is executed. i.e. Oracle allocates the required resources for that statement and also identifies the rows that needs to be processes.
    Thats all happens when you issue OPEN. The records are not fetched.
    ROWCOUNT is a pseudocolumn that only indicates how many rows are fetched currently. So initially it will be zero. So it will give the total count only when you finish fetching all the rows.
    So as far now i dont see any other option other than querying the table for COUNT to get the count of rows.

  • Get estimated record count

    for pagination, we want to show the total pages. the way is to get the total count,then divided by the record number per page. The problem is its too expensive to get the total count.
    In pl/sql, we can get the estimated record count with
    select * from table(dbms_xplan.display_cursor(null,null,'ALLSTATS LAST')); but my question is how to get this number from application code, like java or php.
    Thanks,

    Hi,
    Though what you're trying to do can be achieved in three steps *(i)* importing of java.io.* and java.sql.* packages *(ii)* establishment of a connection using JDBC driver, and *(iii)* query execution, it would NOT be constructive for the fact that a SELECT statement (as stated in the above reply) will always be a part of the query sentence for the following reasons:
    (a) When objects are executed in Java, the first statement that is compiled is a SQL statement.
    (b) Parameters cannot be defined in SQL strings.
    Hence, as per my understanding, you can either stick to the existing approach or modify it as per the defined standards and not customized ones.
    Regards,
    Naveed.

  • Infocube record count.

    Hi all,
    I want to find out for a selection criteria ie fiscalyear = 2003 in a cube how many total records are retrieved.  In infocube->manage, and then in 'infocube content' I filtered the selection criteria by fiscal year and also selected the check box 'Output number of hits' thinking it will display record counter, but I am getting one's in record count field.  Any help in this.....is really appreciated.
    thanks
    Kiranmai.

    Hi Bhanu,
    I started again from infocube->manage and then infocube content.  When I select both 'Use DB aggregation' and 'Output number of hits' check box then I get only one row as output and it gives me the total number of records for the selection criteria fiscalyear=2003. 
    It did solved my problem, but will try to do what you said in your previous post.
    thanks

  • Get records count of all tables

    Hi ,
    I am trying to get the record count of all tables using dynamic query. I don't know how to put the value in placeholder. I tried the below code.
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
         CURSOR table_list
         IS
         select OBJECT_NAME from user_objects
         where object_type in ('TABLE')
         and object_name not like '%AUDIT_DDL%'
         AND object_name not like 'MD_%'
         AND object_name not like 'EXT_%'
         AND object_name not like 'STG_%'
         AND object_name not like 'SYS_%'
         AND object_name not like 'TMP_%'
         AND object_name not like 'TEMP_%'
         order by 1;
         v_count     NUMBER :=0;
         query_str VARCHAR2(1000);
    BEGIN
         FOR table_name IN table_list
         LOOP
              query_str :='SELECT COUNT(1) FROM  ' || table_name.OBJECT_NAME;
    dbms_output.put_line(query_str);
              dbms_output.put_line('Table Name:' || table_name.OBJECT_NAME );
              v_count:= execute immediate query_str;
              dbms_output.put_line('Table Name:' || table_name.OBJECT_NAME || ', Count ' || v_count );
         END LOOP;
    END;
    I know I am doing wrong in the bold lines. But not sure how to fix it. Please help. Thanks in advance.

    Hi,
    Welcome to the forum!
    What you posted is basically right, assuming you really want to do dynamic SQL t all.
    The only problem with
    961618 wrote:
              query_str :='SELECT COUNT(1) FROM  ' || table_name.OBJECT_NAME; would be if the object name included special characters (such as single-quotes) or lower-case letters. To avoid any possible problems, I would put the object name inside double-quotes:
    ...     query_str := 'SELECT COUNT (*) FROM "' || table_name.OBJECT_NAME
                                               || '"';
              v_count:= execute immediate query_str;
    The correct syntax is
    execute immediate query_str INTO v_count;V_count will be the number of rows in a single table. Keep another variable (say total_v_count) that keeps the total count so far.
    Do you really need dynamic SQL?
    SELECT     SUM (num_rows)     AS total_rows
    FROM     user_tables
    WHERE     table_name     NOT_LIKE '%AUDIT_DDL%
    AND     ...
    ;gets the same information, accurate as of the last time statistics were gathered, and some of the numbers may be approximate. Depending on how you use the results, that may be good enough for you. If you actually have 10,000,123 rows, and the query says you have 10,000,000, does it really matter?

  • Please help! Invalid node structure and invalid record count

    My MacBook Pro is about 6.5 years old. I upgraded to Snow Leopard 2 years ago and added RAM at the same time. My first problem ever occurred three days ago when my computer got super sluggish, I restarted and got the gray screen with apple and spinning wheel...no boot up. I ran disk utility from the snow leopard install disk and found "invalid node structure" and "invalid record count". After reading on here what to do...try to repair the disk and so on with no success I went out and bought Disk Warrior. Got home expecting to fix everything and Disc Warrior won't boot...I just get a file with a question mark and the disc is ejected. I tried erasing the hard drive but was only able to use the "don't erase data" option. Then I tried to reinstall Snow Leopard with no luck. Now I am stuck. Any ideas? 
    One thing to note is I am to the point of not caring about the files on the hard drive, I was a dummy and never backed them up...lesson learned!  I just want my computer back without having to spend $1000+ for a new one. Then again I am always willing to do that too as a last resort.
    PLEASE HELP!

    When you contact Alsoft, make sure you let them know that you are using Snow Leopard (10.6.8).
    Try the following in the meantime -
    Disconnect all peripherals from your computer.
    Boot from your install disc & run Repair Disk from the utility menu. To use the Install Mac OS X disc, insert the disc, and restart your computer while holding down the C key as it starts up.
    Select your language.
    Once on the desktop, select Utility in the menu bar.
    Select Disk Utility.
    Select the disk or volume in the list of disks and volumes, and then click First Aid.
    Click Repair Disk.
    Restart your computer when done.
    Repair permissions after you reach the desktop-http://support.apple.com/kb/HT2963 and restart your computer.
    Try DiskWarrarior again if it's combatible with the os system.
    YOu cannot reformat until you get your issue corrected.

  • How to compare record count of two tables?

    Hi,
    i am in need of simple sql script where i can compare two table record count.
    i have something like below:
    (select count(*) from table1) minus (select count(*) from table2)
    now the problem is if the table1 count greater then table2 count the output is fine.
    If the table2 record count is more then i am getting zero as the output.
    how can i get the difference in two tables record count?
    Thanks a lot in advance.
    --Raman.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Doing a MINUS between the counts does not yield the diff.
    e.g. if table A has 100 records and table B has 70 records then,
    SELECT count(*) FROM A
    minus
    SELECT count(*) from B
    will give 100 and not 30.
    Try this:
    SELECT (
    CASE WHEN ((select count(*) cnt from A) - (select count(*) cnt from B)) <0
    THEN ((select count(*) cnt from A) - (select count(*) cnt from B))* -1
    ELSE ((select count(*) cnt from A) - (select count(*) cnt from B)) END) Difference
    FROM dualor this is simpler
    SELECT abs(((select count(*) cnt from A) - (select count(*) cnt from B))) difference FROM dualEdited by: Caitanya on Jan 9, 2009 7:12 AM
    Applied abs function after seeing BluShadow's post :)

  • Wrong Record count in Monitor maybe datasource issue

    Hi Gurus,
    I have an interesting problem; I am not sure if these are related problems.  First, I am loading data from a flat file to an DSO (using BI 7.0)  I created a transaction datasource.  Does it technically matter if I create a master data attribute datasource vs a transaction datasource when loading to a particular InfoProvider?  Can I specify that my datasource is a master data attribute datasource when loading into a DSO.  Will the system behave differently during a dataload based on the datasource type?
    Here is why I am asking my question:  I created an InfoPackage for the new datasource and when I execute it; it is reading the wrong record count based on my file.  I only have 20 records (using a test file); but yet it is saying 98 in the monitor?  I double checked and my file only has 20 records and on the "Extractor" tab, the system is pointing to the correct file.  Can the datasource have any connection to this problem?
    Thank you

    Hi,
    Technically it is possible to fill a DSO from e.g. a Master Data InfoSource but obviously before creating a new DataSource you must decide whether it concerns Master vs. Transactional data (depending on the nature of it).
    In some rare cases Transactional data from e.g. R/3 is treated as Master data in BW, for example PM orders.
    About your recourd count problem, do you have 98 records in the PSA as well? (because that should be the 'bold' representation of your file).
    If PSA gives 20 recs than the problem lies elsewhere (upstream): is there any abap-code in Startroutine or elsewhere doing some sort of redistribution of the data before it is loaded into the DSO?
    Hope this helps!
    Grtx
    Marco

Maybe you are looking for

  • Issue with G_FXX  while creating a Process

    Hello Friends, I have a Manual Tabular form made with APEX_ITEM, I am trying to create a process to perform DML operations based on the values from the G_FXX arrays of APEX_APPLICATION. Below is the error I am getting ORA-06550: line 9, column 30: PL

  • Oracle 11g - Problem in referring ROWNUM in the SQL

    Hello All, We are facing a strange problem with Oracle 11g (11.2.0.1.0). When we issue a query which refers the rownum, it returns a invalid record ( which is not exists in the table). The same sql is working fine once we analyze the table Note: The

  • What will happen if I reset all setting

    What will happen if I reset all settings

  • Batch Scheduler - why it is not in menu?

    Hi, Im using EPM Workspace 11.1.3 Fusion Edition. My user has Scheduler role assigned, but in my Navigator-> Schedule menu there is no Batch Scheduler option! I've tried changing user roles, creating new users, restarting server but with no effect. W

  • Virus software for macs

    Once again we are being told something is on the way .. but the news reports never mention if macs are vulnerable. So what is the best (preferably free) virus software for a mavericks machine?