Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. aravindk

    Getting recent date joining two tables.

    this is what i got so far: select * from cust_sales a, cust_promo b where a.customer_key = b.customer_key and b.promo_dt = (select max(promo_dt) from cust_promo x where x.customer_key = b.customer_key and a.invoice_dt <= x.promo_dt) and I get 56 inv1 2010-05-15 00:00:00.000 56 promo2...
  2. aravindk

    Getting recent date joining two tables.

    Hello all, I need help with a correlated query. I am trying to join two tables on a key and get a record that is the latest from the other table. Let me try to explain this with an example. I have a cust_sales table with multiple records per customer. I also have promo table that have multiple...
  3. aravindk

    Powerplay Transformer on Windows &amp; cube in Unix

    Hello, We usually build the cube on windows ftp the .mdc file to solaris unix server. I would like to take advantage of the 'copy and activate' feature in 8.4 and wondering how do I add the unix location in Windows Transformer. I know this is possible since the user guide talks about it. Has...
  4. aravindk

    retrieving xml data

    Can someone help me understand how I can retrieve data from a xml data type? In this example below, I want to retrieve AddressNo & Area from the table. Sample code below. I am using Sql server 2005. I need a select statement returns the values from the column. Any help that you can provide is...
  5. aravindk

    Comibing results from two tables

    Looks like I can actually make this work. Thanks a lot!
  6. aravindk

    Comibing results from two tables

    I need to join two tables where when the join condition is true, it should return YES and returns NO if it doesnt. Let me try to give an example: I have BOOK_RENTALS which contains customer names and books: JOHN SMITH, BOOKA JOHN SMITH, BOOKB JOHN SMITH, BOOKC and I have a BOOK_MASTER: BOOKA...
  7. aravindk

    Performance tuning

    I will try reorganizing the index and try the query again. Also thanks for forwarding me the metalink document. I appreciate it.
  8. aravindk

    Performance tuning

    Santa, "I tried this in another model environment." - thats what I said in the beginning of my prior posting. Pl. go back and read. Btw, Thanks for your valuable input.
  9. aravindk

    Performance tuning

    So apparently some threshold was crossed whereby the optimizer concluded the index would actually slow things down." I am trying to find out what that threshold is and adjust it so that the optimizer helps my query rather than hurt it. By the way, the I added a use_nl hint to the query and...
  10. aravindk

    Performance tuning

    A) How can a FTS be more efficient when it returns only .1% of the table? B) When it used the index (before analyze) it ran the query in 200 msecs and when it did a FTS (after analyze) it took 13 secs for returning the same output. So obviously FTS was not more efficient than using the index...
  11. aravindk

    Performance tuning

    I tried this in another model environment. When I first tried the same query, the explain plan used the index as expected. I did not use any hints. Now I looked at the stats for the table and realized that the table was never analyzed. Now I went ahead and analyzed the table and retried the...
  12. aravindk

    Performance tuning

    Here is the actual query: select sum(mtd_written_prm_am) /*+ index(t5 covsumm_monthsk), index(t1 idx_tdate_year_month_ct)*/ from "MISP"."TCOVERAGES_SUMMARY" T5, "MISP"."TDATE" T1 where (T5."MONTH_SK" = T1."DATE_SK") and (T1."YEAR_MONTH_CT" = 200312) In this the TCOVERAGES_SUMMARY has nearly...
  13. aravindk

    Performance tuning

    Well, thats my job ;-)
  14. aravindk

    Performance tuning

    LAST_ANALYZED 2/7/2007 11:24:24 AM I ran the analyzer few times today :-( hoping that'd help.
  15. aravindk

    Performance tuning

    Hi all, I have two tables using simple inner join. For example, SELECT SUM(ACTUAL_AM) FROM SALES_SUMMARY SS, CALENDAR_TABLE CT WHERE SS.MONTH_KEY = CT.CALENDAR_KEY AND CT.YEARMONTH = 200612 I have an index on the sales_summary table on the month_key column. However, when i see the explain...
  16. aravindk

    Surrogate keys & join performance

    Thanks for the posting. I did come across the first two links with some googling, before posting the message here. As you may have already noted in Kimball's article he says that by using the surrogate keys that the join performance is *likely* to improve. He also underlines the fact that it...
  17. aravindk

    Datastage?

    Datastage is an ETL tool. Something like informatica. We have been using it for almost a year and like it a lot.
  18. aravindk

    Surrogate keys & join performance

    Hello all, Lots have been talked about the surrogate keys improving the join performance. Has anybody really tested it? Can someone point me to some benchmarking test results? Any help in this direction is much appreciated. Thanks & Regards,
  19. aravindk

    Covered Item Dimension

    TR, Thank you. I am going to go by your suggestion with a small change. Instead of making fromdate & todate as a measure, I am going to make them as fks to date table which will make this a factless fact table. For some strange reason I was reluctant in using a factless fact table in my design...
  20. aravindk

    Covered Item Dimension

    I agree with you. It is indeed a SCD type 2.

Part and Inventory Search

Back
Top