Creating a user thats saved to a table? possible or not???

Ok.....so my uni assignment is to make an SQL database and then a front end in access...for a shoe store...i can make test databases and get access to connect to the sql....yay
now im never going to get a brilliant grade because im TERRIBLE at all sort of programming (im doing computer networks not programming yet i have to do lots :(..)..............BUT one thing in the assignment states is that the shoe store would like cutomers to 'sign up' as it were....if i could get it to work that would be like one 'trick' thing that might get me a couple more marks...
SO can i create a user that is saved to the customer table easily? or...would it take lots of knowledge and years of experience or can someone point me to some sample code or a tutorial...????
or can this not be done and im barking up the wrong tree here?
thanks in advance to everyone who is better at this than me!!!

You can create a simple form with two text item each to input userid (text1) and password (text2)
You add a submit button and you create a WHEN_BUTTON_PRESSED trigger
In that trigger you code something like this
Insert into Customer_Table (UserId,Password)
Values (text1.text,text2.text)
commit;
there you are... you can add many users as you want.
and when you create log in page. you create also two text item each to input userid (text1) and password (text2)
You add a submit button and you create a WHEN_BUTTON_PRESSED trigger
In that trigger you code something like this
Declare
VarID Varchar2....
VarPass Varchar2.....
Begin
select UserId,Password into VarID,VarPass where UserId = VarID
exception
when others then
RAISE .... 'Wrong ID'
End;
If VarPass = text2.text then 'OK' else 'Wrong Password'

Similar Messages

  • Need help in creating a page that populates 3 related tables

    Hi All,
    I am pretty new to Oracle and have been trying to use the wizards in HTML_DB to create one page that will populate three tables. I have thus far have NOT been able to find my solutions. I do not know enough experience in SQL/PL_SQL to create the code on my own.
    Here is my dilemma. I have three tables:
    con (for contacts) - with regular contact info = l_name, f_name, phone...
    pro (for different programs) - with different program info = pro_name, priority..
    procon (Contact/program) - that joins the two together with initial, follow-up and close date fields.
    I created a composite primary key in the procon table that consists of the two pk's of the other two tables (using fk relationships).
    I want to be able to use one page in HTML_DB to enter in the data which will populate all three tables. Is there a way to do this in PL/SQL?
    * Also: Is there a book out there that you can recommend that really teaches SQL/PL_SQL?
    I would really, really, REALLY appreciate the help!!!!!
    Thanks,
    d.

    This isn't as bad as you think. I would create one procedure in a package and pass the parameters to the package via htmldb
    procedure insval(in_a in number, in_b in number, in_c in number)
      begin
       insert into tablea(cola)
        values(in_a);
      insert into tableb(colb)
       values(in_b);
      insert into tablec(colc)
       values(in_c);
      end;and then you call it from htmldb using a process
    schema.package.insval(:p1_a,:p1_b,:p1_c);That's ultra-simplified, but will get the job done.
    -Scott

  • Creating a datasource that sits on a table

    Hello All,
    I have to create a datasource that sits on a table and reads certain fields. I have found the relevant table via the data browser "RSPCLOGCHAIN". I am now in transaction sbiw - please advise further.
    Thank you and kind regards,
    Keith

    Hi Keith,
    The steps would be as follows:
    1. Goto to RSO2.
    2. Create a datasource with a technical name and assign it to a Application Component.
    3. Choose the Extraction from view section and enter you table name.
    4. Save it.
    5. It would list all the fields of that table. You can hide the ones that you do not want. Save again.
    Bye
    Dinesh

  • How to create a user that can login the LDAP?

    I want to create a user that can login the OID/LDAP. I know how to create a user, it is allowed to login OIDDAS, but I also want the user to grant access to ldap directly. How do i do that?
    And how can I give it read rights and or update/delete rights on a specific tree?
    Regards
    Eelco

    Eelco,
    did you see the OiD developers guide? Here you find some examples how to create users in OiD using pl/sql or java.
    http://download-west.oracle.com/docs/cd/A97329_03/manage.902/a95193/smplcode.htm#637294
    how to use directory access control can be found in
    http://download-west.oracle.com/docs/cd/A97329_03/manage.902/a95192/access.htm#1054232
    --Olaf

  • How do we create a CURSOR that consists of two TABLES

    I would like to access a cursor that has columns from two tables.

    How do we create a CURSOR that consists of two TABLESA cursor does not consist of data. A cursor is not a result set that is created in the memory of the database server and populated with "+results+".
    A cursor is source code (SQL or anonymous PL/SQL block) that has been compiled into an executable program. The execution plan (see the EXPLAIN PLAN SQL command) describes the structure of this program and how it will be executed.
    When you fetch data from a cursor, you are receiving the output of this executable program known as a cursor.
    So as the other respondents explained in this thread, you need to create SQL source code that joins tables. Then you send this SQL to the server, where it is parsed and compiled into a cursor in the database's Shared Pool (together with all other SQLs that the database received - all SQLs are compiled as cursors).
    Once this is done, you can open the cursor (execute the cursor program) and fetch data from it.

  • Created a user with permissions to one table, but unable to access the table

    I've tried to create a Login that will have access to a single table from a few different databases.
    When I try and query the table, using the created Login I get the following error:
    "The server principal "log_Reader" is not able to access the database "MyDB" under the current security context."
    Here's the SQL I used to create the Login/User:
    USE MASTER
    GO
    CREATE LOGIN log_Reader
    WITH PASSWORD = '<password>'
    GO
    USE DB1
    GO
    CREATE USER log_Reader FOR LOGIN log_Reader
    GRANT SELECT ON dbo.logtable TO log_Reader
    USE DB2
    GO
    CREATE USER log_Reader FOR LOGIN log_Reader
    GRANT SELECT ON dbo.logtable TO log_Reader
    USE DB3
    GO
    CREATE USER log_Reader FOR LOGIN log_Reader
    GRANT SELECT ON dbo.logtable TO log_Reader
    USE DB4
    GO
    CREATE USER log_Reader FOR LOGIN log_Reader
    GRANT SELECT ON dbo.logtable TO log_Reader
    Does anyone have any ideas what I've missed ?
    Thanks, Jason
    MCITP BI Developer - MCTS SQL Server (http://bichopsuey.wordpress.com/)

    I cannot reproduce the error, can you run my script?
    USE [master]
    GO
    CREATE LOGIN [test1] WITH PASSWORD=N'test',
     DEFAULT_DATABASE=[master], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF
    GO
    USE [B]
    GO
    CREATE TABLE [dbo].[t1](
    [c] [int] NULL,
    [c2] [char](1) NULL
    ) ON [PRIMARY]
    CREATE USER [test1] FOR LOGIN [test1] WITH DEFAULT_SCHEMA=[dbo]
    GO
    GRANT SELECT ON [t1] TO [test1]
    EXECUTE AS USER = 'test1';
    --Use B database
    SELECT * FROM [t1] ---works
    REVERT
    USE master
    GO
    EXECUTE AS USER = 'test1';
    SELECT * FROM B.dbo.[t1] ---works
    REVERT
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Create a user that can only access to one schema - please help!!

    Hi all,
    I want to create one user in a Oracle DB that can only access to one schema. I did the following:
    CREATE USER "TEST" PROFILE "DEFAULT"
    IDENTIFIED BY "test" DEFAULT TABLESPACE "USERS"
    TEMPORARY TABLESPACE "TEMP"
    ACCOUNT UNLOCK;
    GRANT SELECT ON "TESTDTA"."F0007" TO "TEST"
    GRANT "CONNECT" TO "TEST";
    I have done a test and the user TEST can access all schemas, when I only gave explicit permissions to the schema TESTDTA.
    Any suggestion/clarification???
    Many thanks in advance.
    Víctor.

    Hello Andreas and Pavan,
    I have launched the query:
    select * from dba_tab_privs
    where grantee = 'PUBLIC'
    and owner = 'PRODDTA'
    and table_name= 'F0009';
    And the result:
    GRANTEE OWNER TABLE_NAME GRANTOR PRIVILEGE GRA HIE
    PUBLIC PRODDTA F0009 PRODDTA ALTER NO NO
    PUBLIC PRODDTA F0009 PRODDTA DELETE NO NO
    PUBLIC PRODDTA F0009 PRODDTA INDEX NO NO
    PUBLIC PRODDTA F0009 PRODDTA INSERT NO NO
    PUBLIC PRODDTA F0009 PRODDTA SELECT NO NO
    PUBLIC PRODDTA F0009 PRODDTA UPDATE NO NO
    PUBLIC PRODDTA F0009 PRODDTA REFERENCES NO NO
    PUBLIC PRODDTA F0009 PRODDTA ON COMMIT REFRESH NO NO
    PUBLIC PRODDTA F0009 PRODDTA QUERY REWRITE NO NO
    PUBLIC PRODDTA F0009 PRODDTA DEBUG NO NO
    PUBLIC PRODDTA F0009 PRODDTA FLASHBACK NO NO
    11 rows selected.
    Then I supose that I have to change the value on column GARANTEE. How can I do that?
    Thanks a lot for your help!!
    Víctor.

  • Can't create the user that was deleted by me previously on web.

    1. first, i create one user named "test1", and i can logon using it successfully.
    2. then, i delete it in RPD;
    3. third, i search out the user "test1" on web and delte it:
    Settings –> “Oracle BI Presentation Services Administration”–>”Manage Presentation Catalog Groups and Users”
    search out the user "test1" on web and delte it.
    4. re-create the same name user "test1" in RPD.
    5. but now , i can't logon successfully. after input the correct user/pwd, the page show:
    access denied for user to path /users/test1/_portal.*
    Error Details*
    Error Codes: O9XNZMXB*
    帖子经 854623编辑过

    check these will be helpful BI Dashboard - access denied for user to path /users/administrator/_portal/
    http://obiee-blog.info/administration-tool/error-access-denied-for-user-to-path/
    Cheers,
    KK

  • Need to create Mail User that Only Sends

    is there a way i can set up a user that can only send emails but not receive? the user does not want any emails to come to this address, but needs to send information occasionally to others via this address.
    i guess this would be much like the 'automated' emails sometimes received that say 'do not reply to this sender'
    thanks in advance

    One way to do this would be to just set up a mail account in your favorite email app, and set all the user information as you like (i.e. name, reply-to address, etc.). Then in Server Admin, just put that user's ip in the list of machines that are allowed to relay. No need to even set up a real account on the server for that user.
    MacBook Pro   Mac OS X (10.4.6)  

  • Create a view that limits a large table, but also allows an outer join ?

    oracle 10.2.0.4
    CREATE TABLE MY_PAY_ITEMS
    ( EMP     VARCHAR2(8) NOT NULL
    , PAY_PRD VARCHAR2(8) NOT NULL
    , KEY1    VARCHAR2(8) NOT NULL
    , KEY2    VARCHAR2(8) NOT NULL
    , LN_ITEM VARCHAR2(4) NOT NULL
    , ITEM_AMT NUMBER(24,2) NOT NULL
    , FILLER  VARCHAR2(100) NOT NULL)
    INSERT INTO MY_PAY_ITEMS
    SELECT A.EMP
    , B.PAY_PRD
    , C.KEY1
    , D.KEY2
    , E.LN_ITEM 
    , F.ITEM_AMT
    FROM (SELECT TO_CHAR(ROWNUM, '00000000') "EMP" FROM DUAL  CONNECT BY LEVEL <= 50 ) A
    , (SELECT '2010-' || TO_CHAR(ROWNUM,'00') "PAY_PRD" FROM DUAL CONNECT BY LEVEL <= 52) B
    , (SELECT TO_CHAR(ROWNUM, '000') "KEY1" FROM DUAL CONNECT BY LEVEL <= 8) C
    , (SELECT TO_CHAR(ROWNUM, '000') "KEY2" FROM DUAL CONNECT BY LEVEL <= 5) D
    , (SELECT TO_CHAR(ROWNUM,'000') "LN_ITEM" FROM DUAL CONNECT BY LEVEL <= 20) E
    , (select round(DBMS_RANDOM.VALUE * 400,2)  "ITEM_AMT" from dual) F
    CREATE UNIQUE INDEX MY_PAY_ITEMS ON MY_PAY_ITEMS (EMP, PAY_PRD, KEY1, KEY2, LN_ITEM)
    CREATE TABLE MY_ITEM_DISPLAY
    ( DISPLAY_CODE VARCHAR2(4) NOT NULL
    , SEQUENCE     NUMBER(2) NOT NULL
    , COLUMN_ITEM1 VARCHAR2(4) not null
    , COLUMN_ITEM2 VARCHAR2(4) not null
    , COLUMN_ITEM3 VARCHAR2(4) not null
    , COLUMN_ITEM4 VARCHAR2(4) not null)
    INSERT INTO MY_ITEM_DISPLAY VALUES ('01',10,'001','003','004','005');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('01',20,'007','013','004','009');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('01',30,'001','004','009','011');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('01',40,'801','304','209','111');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('02',10,'001','003','004','005');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('02',20,'007','013','004','009');
    INSERT INTO MY_ITEM_DISPLAY VALUES ('02',30,'001','004','009','011');
    MY_PAY_ITEMS is a table that stores payslip line items.  It has a total size of 500,000,000 rows.
    EMP is the unique employee id,  We have approx 200,000 employees (with approx 50,000 being active today).
    PAY_PRD is a weekly pointer (2010-01, 2010-02 ... 2010-52), we have data from 2004 and are adding a new pay period every week.  2010-01 is defined as the first monday in 2010 to the first sunday in 2010 etc.
    KEY1 is an internal key, it tracks the timeline within the pay period.
    KEY2 is a child of KEY1, it tracks the sequence of events within KEY1.
    LN_ITEM is the actual pay item that resulted from the event on average a person generates 20 rows per event.  Note that in this example everybody gets the same LN_ITEM values, but in practice it is 20 selected from 300
    ITEM_AMT is the net pay for the line item.
    FILLER is an assortment of fields that are irrelevant to this question, but do act as a drag on any row loads.
    MY_ITEM_DISPLAY is a table that describes how certain screens should display items.  The screen itself is a 4 column grid, with the contents of the individual cells being defined as a lookup of LN_ITEMS to retrieve the relevant LN_AMT.
    We have an application that receives a DISPLAY_CODE and an EMP.  It automatically creates a sql statement along the lines of
    SELECT * FROM MY_VIEW WHERE DISPLAY_CODE = :1 AND EMP = :2
    and renders the output for the user.
    My challenge is that I need to rewrite MY_VIEW as follows:
    1) Select the relevant rows from MY_ITEM_DISPLAY where DISPLAY_CODE = :1
    2) Select the relevant all rows from MY_PAY_ITEMS that satisfy the criteria
       a) EMP = :2
       b) PAY_PRD = (most recent one for EMP as at sysdate, thus if they last got paid in 2010-04 , return 2010-04)
       c) KEY1 = (highest key1 within EMP and PAY_PRD)
       d) KEY2 = (highest key2 within EMP, PAY_PRD and KEY1)
    3) I then need to cross reference these to create a tabular output
    4) Finally I have to return a line of 0's where no LN_ITEMs exist ( DISPLAY_CODE 01, sequence 40 contains impossible values for this scenario)
    The below query does part of it (but not the PAY_PRD, KEY1, KEy2 )
    select * from (
    SELECT A.DISPLAY_CODE
    , B.EMP
    , A.SEQUENCE
    , MAX(DECODE(B.LN_ITEM, A.COLUMN_ITEM1, B.ITEM_AMT, 0)) "COL1"
    , MAX(DECODE(B.LN_ITEM, A.COLUMN_ITEM2, B.ITEM_AMT, 0)) "COL2"
    , MAX(DECODE(B.LN_ITEM, A.COLUMN_ITEM3, B.ITEM_AMT, 0)) "COL3"
    , MAX(DECODE(B.LN_ITEM, A.COLUMN_ITEM4, B.ITEM_AMT, 0)) "COL4"
    FROM MY_ITEM_DISPLAY A, MY_PAY_ITEMS B
    WHERE B.PAY_PRD = '2010-03'
    GROUP BY A.DISPLAY_CODE, B.EMP, A.SEQUENCE)
    WHERE DISPLAY_CODE = '01'
    AND EMP = '0000011'
    ORDER BY SEQUENCE
    My questions
    1) How do I do the PAY_PRD, KEY1, KEY2 constraint, can I use some form of ROW_NUMBER() OVER function ?
    2) How do I handle the fact that none of the 4 column LN_ITEMS may exist  (see sequence 40, none of those line items can exist)...  Ideally the above SQL should return
    01, 0000011, 10, <some number>, <some number>, <some number>, <some number>
    01, 0000011, 20, <some number>, <some number>, <some number>, <some number>
    01, 0000011, 30, <some number>, <some number>, <some number>, <some number>
    01, 0000011, 40, 0            , 0            , 0            , 0           
    I tried a UNION, but his prevented the view from eliminating the bulk of the MY_PAY_ITEMS rows, as it resolve ALL of MY_PAY_ITEMS instead of just retrieving rows for the one EMP passed to the view.  The same seems to be true for any outer joins.

    Hi, if i understood you properly, you need :
    select nvl(q.display_code,lag(q.display_code) over (order by rownum)) display_code,
           nvl(q.emp,lag(q.emp) over (order by rownum)) emp,
           m.s,
           nvl(q.COL1,0) COL1,
           nvl(q.COL2,0) COL2,      
           nvl(q.COL3,0) COL3,
           nvl(q.COL4,0) COL4,
           nvl(PAY_PRD,lag(q.PAY_PRD) over (order by rownum)) PAY_PRD,
           nvl(KEY1,lag(q.KEY1) over (order by rownum)) KEY1,
           nvl(KEY2,lag(q.KEY2) over (order by rownum)) KEY2  
    from(
    select d.display_code,
           t.emp,
           d.sequence,
           max(DECODE(t.LN_ITEM, d.COLUMN_ITEM1, t.ITEM_AMT, 0)) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) "COL1",
           max(DECODE(t.LN_ITEM, d.COLUMN_ITEM2, t.ITEM_AMT, 0)) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) "COL2",
           max(DECODE(t.LN_ITEM, d.COLUMN_ITEM3, t.ITEM_AMT, 0)) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) "COL3",
           max(DECODE(t.LN_ITEM, d.COLUMN_ITEM4, t.ITEM_AMT, 0)) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) "COL4",
           max(t.PAY_PRD) PAY_PRD,
           max(t.key1) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) key1,
           max(t.key2) keep (dense_rank first order by to_date(t.pay_prd,'yyyy-mm') desc ) key2
      from MY_PAY_ITEMS t
      join MY_ITEM_DISPLAY d
        on d.display_code = '01'
    where t.emp = '00000011'
    group by d.display_code, t.emp, d.sequence
    ) q
    full outer join (select level*10 s from dual connect by level <= 4) m
    on m.s = q.sequence
    DISPLAY_CODE
    EMP
    S
    COL1
    COL2
    COL3
    COL4
    PAY_PRD
    KEY1
    KEY2
    01
    00000011
    10
    101.1
    103.1
    104.1
    105.1
    2010-03
    008
    005
    01
    00000011
    20
    107.1
    113.1
    104.1
    109.1
    2010-03
    008
    005
    01
    00000011
    30
    101.1
    104.1
    109.1
    111.1
    2010-03
    008
    005
    01
    00000011
    40
    0
    0
    0
    0
    2010-03
    008
    005
    Ramin Hashimzade

  • Is there any way to sync contacts created on iPhone that saved to Outlook through an exchange account without CSV migration?

    I thought setting up my work email on my iPhone would be a wonderful help in making after-hours labor easier...I had no idea how much I would be blending my business and personal life. I didn't know it would set Outlook as the default account for new contacts so, all newly created contacts became outlook entries. The second I noticed some really random numbers in my work account virtual roladex, I did the research and immediately made the change. (It would be really difficult to explain that "4/20 Josh" is legitimately a brewery friend to whom I was introduced on April 20th, at a special beer release event.) Needless to say, I am hoping to separate the work and non-work friends. 
    Now I'm wondering if there is a way to migrate or backup those contacts to an alternate account other than through a CSV file migration. A lot of contacts are saved with photos and strange fields of info, it would be great if there were a better way to transfer the content than by way of commas.
    Thoughts or suggestions?
    Many thanks!!!

    Worked like a charm and resolved my problem totally. The only issue I had is that, unlike the Computer (Mac OS). the iPad doesn't give constant visibility to what it is doing (feedback), so I wasn't initially sure it had done anything.
    When I opened my emailed message with .vcf file attached, and tapped the .vcf attachment icon, I saw activity on the icon for just a few seconds, then it reverted to the original with nothing apparently happening. After about 30 seconds, the secondary menut popped up indicating the transfer of 1200 addresses would be completed, if I approved the action. Another 10 to 15 seconds then transpired before the completed Contact list appeared on the ipad. So you must be patient, if you have a large Addressbook. That's reasonable,but unexpected lack of feedback left me wondering, like so many other things on the iPad.
    THank you for the assist. Apparently Apples Mac Genius people did not know this procedure, and I will pass it on to my local Apple Store Instructor.
    -- Chuck

  • How to change protected variants created by users that no longer exist

    There are several older variants for which background jobs are scheduled for daily prcessing.  These variants were created and protected by uses that no longer exist in SAP.
    How to  unprotect and change these variants to reflect new requirements.

    Hi Anam
    1. Execute tcode VARCH and enter the program and variant name and make the changes, if the system allows you to do so.
    2. Check with the basis/security team if they can extend the validity and reset the password for the old ids.
    3. If the above doesnt work, you will need to copy the variants manually
    Moving forward, when you create/change jobs, request the basis/security team to create common ids like OTCADM, P2PADM, etc. Ensure that all the variants and jobs are created/changed using this common id. Basis/Security team can controll by opening and closing the ADM account on request from project team and the usage can be recorded for tracking.
    To check the jobs that use a known variant, use tables TBTCP, TBTCO.
    Best Regards
    Sathees Gopalan

  • How to provide Admin access to users that are in external table

    Hello All,
    I have configured external table authentication in OBIEE 11.1.1.5.0, i am able to login, i have some couple of users, i want to provide for some users as ADMIN Privileges
    . Also how to identify these users in application roles, when i am trying to add in the application roles, i am not able to find these users.
    Thanks,
    Sreekanth

    Try
    DBA_STMT_AUDIT_OPTS
    DBA_PRIV_AUDIT_OPTS
    DBA_OBJ_AUDIT_OPTS
    SYS@etest> audit role;
    Audit succeeded.
    SYS@etest> SELECT * FROM DBA_STMT_AUDIT_OPTS;
    USER_NAME                      PROXY_NAME
    AUDIT_OPTION                             SUCCESS    FAILURE
    ROLE                                     BY ACCESS  BY ACCESS

  • HT201493 it shows me appr.100 km. wrong location and I've never been there. There sholuld be an apple user that adress , and İs it possible to same account with me ?

    Find my friends appl. shows my location as wrong approx. 100 km away and same adress that never been there before . There should be another apple user these adress. How will I fix problem ?

    rightwingrb wrote:Also...I have no idea what "code" tags are but hopefully the above is acceptable ;-)
    When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode
    like this
    It makes the code more readable and - in case of longer listings - more convenient to scroll through.
    Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309
    Last edited by karol (2014-02-18 22:23:24)

  • Created a user account for my daughter but itunes will not open, just says something about digital signature policy

    Hi there, newbie here. Wondered if anyone can help, opened another user account for daughter on windows 64, and when we tried to open itunes a message came up saying it could not open because of digital signature policy, when i go back to my user it opens ok.
    Could anyone help.
    Cheers

    am not prepared to enter my credit card also on her account application.
    You can enter it on the registration page then delete it immediately after you complete the registration.
    If I purchase a iTunes card with some credit, can I open the account for her just with the code?
    If you wish. Instead of going to Create new accout, go to Redeem on the main iTunes store screen, enter the code, then select *Create new account*.
    What will happen if the credit on the card gets to zero?
    She will not be able to make a purchase until another gift card is entered or a CC is linked to the account.

Maybe you are looking for