Is a Stop Word stopping my query?

I'm executing a query which searches for IN-LAW not NEXT OF KIN. I get a zillion returns on LAW but none on IN-LAW.
I know that we have text with IN-LAW in it.
My question is two-part:
1) are the Stop Words, in this case IN, interfering?
2) What can I do to get around this? How do I form my query to accomodate this?
NEXT OF KIN works just fine but no examples of IN-LAW are returned.
Thanks.

IN and OF are default stopwords, so it you want them to be tokenized, indexed, and searchable, you need to specify a stoplist that does not include them. A hyphen has special meaning to Oracle Text and is the same as MINUS, which tells it to subtract the score of the second term from the score of the first term. If you want characters that have special meaning to be treated like regular characters, you need to escape them, either by putting a backslash in front of an individual character or by surrounding a whole phrase in curly braces. Please see the demonstration below. By default, once you have specified that a hyphen is to be treated as a regular character, it is regarded a whitespace, so IN and LAW are tokenized separately and "IN-LAW" and "IN LAW" are treated the same. If you want to treat them separately, then you would also need to specify the hyphen as a printjoin in a lexer and specify that lexer in your index parameters.
SCOTT@10gXE> CREATE TABLE test_tab  (test_col  VARCHAR2 (30))
  2  /
Table created.
SCOTT@10gXE> INSERT ALL
  2  INTO test_tab VALUES ('IN-LAW')
  3  INTO test_tab VALUES ('IN LAW')
  4  INTO test_tab VALUES ('NEXT OF KIN')
  5  INTO test_tab VALUES ('IN')
  6  INTO test_tab VALUES ('LAW')
  7  INTO test_tab VALUES ('NEXT OF KIN')
  8  INTO test_tab VALUES ('NEXT')
  9  INTO test_tab VALUES ('OF')
10  INTO test_tab VALUES ('KIN')
11  INTO test_tab VALUES ('IN-LAW NEXT OF KIN')
12  INTO test_tab VALUES ('IN-LAW NEXT WHATEVER OF KIN')
13  INTO test_tab VALUES ('IN-LAW KIN')
14  INTO test_tab VALUES ('IN LAW KIN')
15  SELECT * FROM DUAL
16  /
13 rows created.
SCOTT@10gXE> CREATE INDEX test_ind ON test_tab (test_col)
  2  INDEXTYPE IS CTXSYS.CONTEXT
  3  PARAMETERS
  4    ('STOPLIST CTXSYS.EMPTY_STOPLIST')
  5  /
Index created.
SCOTT@10gXE> SELECT token_text FROM dr$test_ind$i
  2  /
TOKEN_TEXT
IN
KIN
LAW
NEXT
OF
WHATEVER
6 rows selected.
SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, 'IN-LAW not NEXT OF KIN') > 0
  2  /
TEST_COL
IN
SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, 'IN\-LAW not NEXT OF KIN') > 0
  2  /
TEST_COL
IN-LAW
IN LAW
IN-LAW NEXT WHATEVER OF KIN
IN-LAW KIN
IN LAW KIN
SCOTT@10gXE> SELECT * FROM test_tab WHERE CONTAINS (test_col, '{IN-LAW} not NEXT OF KIN') > 0
  2  /
TEST_COL
IN-LAW
IN LAW
IN-LAW NEXT WHATEVER OF KIN
IN-LAW KIN
IN LAW KIN
SCOTT@10gXE>
SCOTT@10gXE> spool off

Similar Messages

  • Stopping a Query taking more time to execute in runtime in Oracle Forms.

    Hi,
    In the present application one of the oracle form screen is taking long time to execute a query, user wanted an option to stop the query in between and browse the result (whatever has been fetched before stopping the query).
    We have tried three approach.
    1. set max fetch record in form and block level.
    2. set max fetch time in form and block level.
    in above two method does not provide the appropiate solution for us.
    3. the third approach we applied is setting the interaction mode to "NON BLOCKING" at the form level.
    It seems to be worked, while the query took long time to execute, oracle app server prompts an message to press Esc to cancel the query and it a displaying the results fetched upto that point.
    But the drawback is one pressing esc, its killing the session itself. which is causing the entire application to collapse.
    Please suggest if there is any alternative approach for this or how to overcome this perticular scenario.
    This kind of facility is alreday present in TOAD and PL/SQL developer where we can stop an executing query and browse the results fetched upto that point, is the similar facility is avialable in oracle forms ,please suggest.
    Thanks and Regards,
    Suraj
    Edited by: user10673131 on Jun 25, 2009 4:55 AM

    Hello Friend,
    You query will definitely take more time or even fail in PROD,becuase the way it is written. Here are my few observations, may be it can help :-
    1. XLA_AR_INV_AEL_SL_V XLA_AEL_SL_V : Never use a view inside such a long query , becuase View is just a window to the records.
    and when used to join other table records, then all those tables which are used to create a view also becomes part of joining conition.
    First of all please check if you really need this view. I guess you are using to check if the records have been created as Journal entries or not ?
    Please check the possbility of finding it through other AR tables.
    2. Remove _ALL tables instead use the corresponding org specific views (if you are in 11i ) or the sysnonymns ( in R12 )
    For example : For ra_cust_trx_types_all use ra_cust_trx_types.
    This will ensure that the query will execute only for those ORG_IDs which are assigned to that responsibility.
    3. Check with the DBA whether the GATHER SCHEMA STATS have been run atleast for ONT and RA tables.
    You can also check the same using
    SELECT LAST_ANALYZED FROM ALL_TABLES WHERE TABLE_NAME = 'ra_customer_trx_all'.
    If the tables are not analyzed , the CBO will not be able to tune your query.
    4. Try to remove the DISTINCT keyword. This is the MAJOR reason for this problem.
    5. If its a report , try to separate the logic in separate queries ( using a procedure ) and then populate the whole data in custom table, and use this custom table for generating the
    report.
    Thanks,
    Neeraj Shrivastava
    [email protected]
    Edited by: user9352949 on Oct 1, 2010 8:02 PM
    Edited by: user9352949 on Oct 1, 2010 8:03 PM

  • Is there a way to stop a query just after the cursor/plan is produced by CBO?

    Following suggestions of Kerry Osborne’s Oracle Blog » Blog Archive » Explain Plan Lies – Kerry Osborn…
    on the lies of "Explain plan" (and of "set autotrace on"  too) I'd like to try to stop a query/DML before actually it starts, just after the plan was produced and sql_id assigned.
    Is there any CLEAN way (other than trying CTRL-C) to do that?
    Thanks
    Paolo

    Hi
    PaolFili wrote:
    Thanks rp.
    I think my question is a little dofferent, but your reply give me an idea.(which has clear disadvantages , but can do the work).
    The problem is obtain in Lybrary Cache a plan,a SLQ_ID,PLAN_HASH for a query ( i.e. a 10days running query) that I cannot start-up.
    So my (suggested from your reply) idea is:
    1) to LOCK EXCLUSIVE (a table level) , **if it's possible** every table accessed in the query ( Yes, it can be really expansive in some production environment, but sometimes can be necessary ..)
      using :  LOCK TABLE table IN EXCLUSIVE MODE
    for each table accessed from query
    2) Startup the query that will be suspended form the lock on tables accessed + kill the sid,serial#,@Inst_id for the query.
    3) UNLOCK tables from EXCLUSIVE using "ROLLBACK"  in the session where LOCK TABLE.... was send.(to remake  tables to work for other queries)
    Any other ideas?
    Thanks
    Paolo
    you're planning on using locks to stop a query and you think in order to do so you need exclusive locks  on every table accessed in the query? And you are prepared to do that on a production system?
    And all of this is needed to troubleshoot a query that was running for 10 days -- i.e. a query that was available for all kinds of diagnostics during 10 days?
    Sorry, I think it wasn't a good idea for you to read that Osborne's blog post -- you should've started with more basic things. Way more basic.
    Best regards,
      Nikolay

  • Newbie to sql developer, how to stop a query

    Hi All,
    A very basic question and I've searched through this forum and Tom's site, i think i read it somewhere but i forgot where and what it was.
    How can I stop a query running in Sql Developer with what key combination?
    Ctrl-C D E Q .........., help!
    When I 'leave' for another application there a nice grey screen appearing so i can't use the buttons.
    Thanks in advance and my appologies if there is an answer already and I didn't find it.

    A query in the worksheet can be stopped using the Cancel button in the worksheet's toolbar (the 5th button). Hovering over it, you see the default hotkey assigned is "Ctrl-Q".
    If you get a gray screen means your SQL Developer locked up. There's currently no way of canceling what is locking him up. You could kill its session, but that's pretty radical and takes its share of time fining out what to kill and how.
    What another user on this forum (EricH) suggested, is running 2 SQL Developers side by side. When 1 locks up, he uses the other one. Although I'd like SQL Developer in the future to run it's queries in separate sessions by itself, thus preventing the whole program to lock up.
    K.

  • How to stop specific query attached with other query in same process using With method

    Would it be possible to stop one query out of two queries attached to single process...because i see it is returning one IDisposable inteface...if i call dispose() method...two queries are stopped/killed...
    So how to stop specific query which is combined with other queries in a  same process at runtime i.e., attach or detach kind of thing?
    Thanks in advance
    Satish

    Yes, the overloading of the term "Process" can be confusing. In SI, depending on your edition of StreamInsight, a process can run on one or more threads from a pool of threads and are scheduled together. Don't think of a process necessarily as a single
    thread or multiple processes as a method of multi-threading.
    As for a limit on the number of queries, there isn't a hard limit that I'm aware of. However, there will be a practical limit that will vary based on the complexity of the query, the event rate and your hardware (# of cores). If you are using Standard Edition,
    this limit is much smaller as you only have a single scheduler thread. With Premium Edition, you have a scheduler thread for each core on the machine so you can get higher throughput and lower latency. But if you have, say, 4 cores on the machine (don't count
    hyperthreaded cores, just real cores), 100 queries and a target throughput of 100K events/second, you'll likely have some problems. At 1K events/sec, you'd likely be fine though. With 32 cores and Premium Edition, you'd probably be OK with 100K events/sec.
    So ... like I said, it depends.
    DevBiker (aka J Sawyer)
    Microsoft MVP - Sql Server (StreamInsight)
    If I answered your question, please mark as answer.
    If my post was helpful, please mark as helpful.

  • How to stop a query on a last record?

    I have a basic question. I have put a button on my form, which goes to the next_record (it goes on id-es). (on when button pressed action)
    But I have a problem, when it comes to the last_record, it goes to the nex record which is not there ( it does not exist). I would like to stop the query on my last record. How to do it?
    I had sometihng like it
    if :atletika.idRezultata is null
    last_record;
    else
    next_record;
    end if;
    but its not working.

    Hai,
    If the block's INSERT ALLOWED property is set to YES, then it will go to new record.
    Try setting this property to NO
    Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • Stop executing query once the result is more than n rows

    Hi,
    Is it possible to stop executing a query for a View Object once the result hits n rows?
    Any pointers are appreciated
    Thank you for your time.
    Edited by: user594688 on Sep 12, 2008 8:21 AM

    Rownum is indeed the attribute. If you really want to stop the query after the first n rows, that's pretty much the only way to do it, to my knowledge.
    If you're primarily worried about database load, but want to give the user the option to query more rows if and when they really need them, check out the following in the Fusion Dev Guide for Forms/4GL developers:
    37.1.5 Efficiently Scrolling Through Large Result Sets Using Range Paging
    (Note that this is not the same as simply using a range size, which ADF does by default--the range size simply limits the number of rows displayed ot the user, not the number queried. It's also not the same as setting the JDBC Fetch size, which limits the number of rows loaded into the cache, and therefore onto the app server, at one time, but again not the actual query result.)

  • How to handle a phrase like a single word in a query rewrite template?

    Hi there,
    i would like to handle a case like this:
    "hewlett packard" printer
    I have a custom thesaurus where {hewlett packard} is a synonym of {hp}, and viceversa of course.
    Now, i can successfully find records like "hp printer" or "printer model hp 2575 "by issuing the following query:
    select * from sale_items
    where contains(item_name,
    'SYN(hewlett packard,cust_thes) AND printer')>0
    or its equivalent form containing curly braces:
    select * from sale_items
    where contains(item_name,
    'SYN({hewlett packard},cust_thes) AND printer')>0
    My problem is that i can't find a way of successfully passing the phrase "hewlett packard" as a single word in a query rewrite template like this one:
    select * from sale_items
    where contains(item_name,
    '<query>
    <textquery grammar="CONTEXT">{hewlett packard} printer
    <progression>
    <seq><rewrite>transform((TOKENS, "SYN(", ",cust_thes)", " AND "))</rewrite></seq>
    </progression>
    </textquery>
    <score datatype="INTEGER" algorithm="COUNT"/>
    </query>')>0
    When i run this query i get no rows.
    The same happens if i substitute curly braces with double quotes.
    So, how to get phrases to be recognized in the query rewrite template?
    Bye,
    Flavio

    I am unable to find out a way to search on the particular phrase like I have a document containing the text
    “Oracle Text is a good searching tool.” Now if searches for the phrase “searching tool”, it doesn’t return any rows but if I search for “searching” and “tool” in 2 separate queries, it gives the document.
    If any one has done it before, please tell me the solution.
    I have used the following queries to create index on BLOB column:-
    CREATE INDEX doc_ indx ON doctest(document)
    INDEXTYPE IS ctxsys.CONTEXT PARAMETERS('lexer doc_lexer sync (on commit) ');
    select * from doc_test where contains(document, 'searching tool') > 0;
    select * from doc_test where contains(document,'searching') > 0;
    select * from doc_test where contains(document,'tool') > 0;
    Should I specify something while creating the indexes ?
    Regards
    Inderjeet

  • SSRS Report Viewer 2012 Cancel Link on loading spinner not stopping SQL Query

    Hi
    I searched the forum for this one and didn't find anything germane, so here goes.
    In SSRS 2012 when running a report interactively if you hit cancel it basically does nothing but stop the spinner and prevent the request from completing.
    I'd like to kill the SQL Query (dataset refresh) when the Cancel link is pressed.
    I recall seeing on article somewhere about doing a callback and calling some other method on the web service to kill the query, but I can't find it now.
    Any help is much appreciated!
    Thanks

    Hi James,
    In SQL Server Reporting Services, a job will be created by SQL Server Agent if any of the following processes is underway:
    query execution on a remote or local database server
    report processing
    report rendering
    To cancel a job that is running on the report server, we can cancel the job directly or reduce the report execution time-out value in the SQL Server Management Studio. Please refer to the steps below:
    Open SQL Server Management Studio, and connect to "Reporting Services".
    Under the Report Server node, right-click on the "Jobs" folder and select "Refresh". Then, right-click on "Jobs" again and click "Cancel All Jobs".
    Right-click on the Report Server node and open the "Server Properties" dialog.
    Click the "Execution" option, and set the "Limit report execution to the following number of seconds:" to a much smaller number. After this issue is resolved, this configuration should revert to the previous state.  
    Reference:
    Managing a Running Process
    Setting Time-out Values for Report and Shared Dataset Processing
    In addition, we can also use the KILL Transact-SQL statement to terminate a normal connection by terminating the transactions that are associated with the specified session ID. For the details information, you can refer to:
    KILL (Transact-SQL)
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to STOP a QUERY

    Is it possible to stop/break a QUERY in Forms?

    Oliver,
    Please check the "Interaction Mode" form property.
    Prepare to wait at least 6 seconds before the "Cancel Query?" alert appears.
    And no, there is no control over that alert.
    If Interaction Mode is blocking (the default), Oracle Forms doesn't care which keys you are pressing (except for ctrl+alt+del on Windows 9*, probably).
    Hope this helps,
    Pedro

  • Stop refresh query in WAD

    Hi Gurus,
    How to stop refresh the query in WAD ? Any advice I would appreciate it.
    Thanks
    Liza

    Hi Liza,
    I hope you should unschedule the process triggered in reporting Agent.
    Hope it helps.
    Regards,
    Vicky

  • Another "itunes (11.0.5.5) stopped working" query

    Hello
    I would be really grateful if someone can help me......anybody!
    After downloading the latest version of itunes, 11.0.5.5 I can no longer access itunes or the itunes store. Window pops up saying itunes stopped working...blah....blah.....blah (I hate playing russian roulette with itune updates)
    I've tried to resolve problem using the suggestions on this forum but to no avail. My event log/data is below if that will help.
    I am running on Windows 7 64bit
    I have quicktime unistalled (problem persists when I had quicktime installed)
    1. I've tried this fix: (I've tried disabling and then enabling)
    http://support.microsoft.com/kb/2639417
    2. I've tried everything in this link, user specific and system wide,
    http://support.apple.com/kb/TS1717
    3. I've tried narrowing the issue by adjusting startup programs and services etc using msconfig doo dah
    4.I've tried uninstalling/reinstalling itunes it made the issue worse. Before reinstalling itunesI was able to open itunes and listen to music but not able to connect to itunes store.
    5. I've updated all my laptop drives to the latest one's.
    6. I've tried command prompt/ sfc _scannow
    7. I've tried various other quack remedies on the net and all have failed
    Anyone...help me....Please!
    Thank you for reading
    Xavvie
    My most recent General Event log
    Fault bucket 3771473443, type 1
    Event Name: APPCRASH
    Response: http://oca.microsoft.com/resredir.aspx?SID=7277&iBucketTable=1&iBucket=-52349385 3&BucketHash=66f28217598f0bfd41a97ef550884909
    Cab Id: 0
    Problem signature:
    P1: iTunes.exe
    P2: 11.0.5.5
    P3: 520e4d27
    P4: KERNELBASE.dll
    P5: 6.1.7601.18015
    P6: 50b83c8a
    P7: c06d007e
    P8: 0000c41f
    P9:
    P10:
    Attached files:
    C:\Users\Jay\AppData\Local\Temp\WERACE3.tmp.WERInternalMetadata.xml
    These files may be available here:
    C:\Users\Jay\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_iTunes.e xe_cc96e928f79422de2efda754141464c8ccfb97df_08d9c4d6
    Analysis symbol:
    Rechecking for solution: 0
    Report Id: 35499b79-0f55-11e3-afe1-d4bed94abbe6
    Report Status: 0
    Detailed Event Data:
    0

    Hi,
    I discovered that iTunes tried to use QTMovieWin.dll and that the file is in the directory.
    Guide to add a PATH:
    Windows 8
    Drag the Mouse pointer to the Right bottom corner of the screen
    Click on the Search icon and type: Control Panel
    Click on -> Control Panel -> System -> Advanced
    Click on Environment Variables, under System Variables, find PATH, and click on it.
    In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    Close the window.
    Windows 7
    Select Computer from the Start menu
    Choose System Properties from the context menu
    Click Advanced system settings > Advanced tab
    Click on Environment Variables, under System Variables, find PATH, and click on it.
    In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    Windows XP
    Start -> Control Panel -> System -> Advanced
    Click on Environment Variables, under System Variables, find PATH, and click on it.
    In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may select to add a new variable and add PATH as the name and the location of the class as the value.
    Close the window.

  • How do I stop a query from running when the page is loaded

    Hi All,
    I'm using JDeveloper 10.1.3.4. I have a JSPX page that is used to collect search parameters and then when a button is clicked uses those values to run a query and then populate a table on the same page. The problem is that when the page is loaded the system attempts to run the query. The query is a method in a session bean. I can keep the method from running the query code by wrapping it in an 'if' statement and checking the parameters for null (or other value). Once the parameters are collected the query is invoked but it looks like the method is running twice, once with the parameters (here I've checked that the result actually has rows in the list) and then again where the parameters are null and the method returns null.
    What is the best way to do what I want here? From the buttons action method I am called the session beam method and returning null to stay on the same page. I think that is why the method is running the second time and returning null.
    TIA,
    Dave

    Have a look at these screen casts from Steve Muench and see if one of these techniques works for you, or gives you the clue you need.
    Creating Three Simple Search Pages with ADF Business Components and ADF Faces (JSF)
    Part 1: Web-Style Search Form
    Part 2: Oracle Forms-Style EnterQuery/ExecuteQuery Mode Page
    Part 3: Search Form Using View Object with Named Bind Parameters
    I had trouble viewing these with Firefox, but they worked in Internet Explorer.

  • Paramerterized Interactive Reports - is there a quick solution to stop the query from executing when entering the page prior to user clicking go.

    Example
    Currently, when the user enters the page the interactive report runs (without the user hitting "go")and - indicates no data found because one of the "parameterized" fields is required and the sql is not setup for nulls.
    I'm Looking for a way to not perform a query  at all -------until the user hits go for the first time on the page - then each time they re-enter the page in the same session it would be ok to auto submit the query.
    I believe I can setup a hidden item and check on my interactive report E1 not null.  Then create a "computation" on "after submission" that would set this value to a value - say 1.
    I can seem to be able to get this to work however.
    In my interactive report - I'm wondering what "condition type" should I be using.  Any thoughts would be greatly appreciated.

    In this case I just have 2 parameters.  The goal is to allow the user to "pre filter" BEFORE rendering the interactive due to the possible size of the report.  This pre fliter could be by say- order type or region or branch etc.
    Right now, I believe its all one region - see below.
    My first attempt, I put a branch on the after submit on the go button and then put a condition on the interactive report.  This worked but caused a looping issue when trying to select a column on the interactive report itself.  My guess is , because that drop down was also using that same go button.
    Anyway, please advise how to best  "pre filter" prior to rendering an interactive report.  Should I have two seperate regions or can I use one region.  Any assistance would be greatly appreciated. 
    Order Parameters 2 
    Before Header 
    Branches
    Computations
    Processes
    After Header 
    Computations
    Processes
    Regions
    Before Regions 
    Computations
    Processes
    Regions 
    Body (3) 
    Search 
    Items 
    P6_TEXT
    P6_ITEM_NUMBER
    Region Buttons  P6_GO
    Order Type &P6_TEXT 
    Report Columns 
    Order Type
    Operating Unit
    Order Number
    Line Number
    Item Number
    Invoice Week
    Items 
    P6_NAME
    P6_ITEM_NUMBER_ALT
    Position 01  Breadcrumbs
    After Regions 
    Computations
    Processes

  • Stopping select query to fetch entries containing special characters

    Hi Friends,
                      I want a way by which my select query does not bring those entries which contains any special characters present in those records.
    Eg:
    MATNR
    PC1----
    ALLOWED
    PC2----
    ALLOWED
    PC3-1-2----
    NOT ALLOWED
    PC4_5_3-------NOT ALLOWED
    I wrote
    where matnr not like '%-%'
    and it works but for underscore it doesnt..also if u can tell me to obstruct those records which contains any special characters from DB.
    Thanks and Regards,
    Gaurav

    Hi,
    First fetch it from the database..
    Then check if it contains any '_' By using 'CA"...
    delete those records ...
    Loop at itab into wa.
    if wa-matnr CA '_'. <------ You can also use 'CS'
    wa_itab-matnr = wa-matnr.
    append wa_itab to itab2.
    endloop.
    delete itab where matnr in itab2.

Maybe you are looking for

  • Dv4 1123us hdmi sound crackling

    Hi All, I have a dv4 1123us. When I connect the laptop to my tv , the sound is popping and cracking every few seconds. I tried with a different laptop and there wasn't any problem. I also downaloded the most recent drivers but it didn't help either.

  • Acrobat sdk, not able to run samples, getting a message, unable to start the program

    Hi, I have downloaded Acrobat sdk XI and tried to run plugin samples  in visual studio 2010, It is build successfully but when I try to run the program am getting an error message saying " Unable to start  Program 'C:\Users\downloads\sdk110_VI_win\Ad

  • How to handle multiple repositories with 11g

    Hi all, this question probably is easy but is right that the only way to manage multiple repositories is to have multiple BIEE 11g installation? With old 10g with OC4J having multiple installation was quite simple, but here with all weblogic environm

  • Need help adding 2nd laptop to router WRT160N

    I need to add another laptop to our home network so it can connect to our internet connection.  The 2nd laptop shows our home network as an available network connection, however, when I try to connect and enter in the key, the computer gives me a mes

  • Can I put candy crush from my iPhone on my new iPad air?

    Can you put candy crush on a new iPad air from your current iPhone?