How to write the SQL codes  of the login system for a database system

If I have a table stored with a Column staff_ID and Password. How can I make use of this 2 columns information to setup the login system?

Hi,
Create Table Modules          -----e.g. payroll, inventory etc.
(ModID    NUMBER(10),
ModName  VARCHAR2(50)); 
Create Table Modules_Forms    ------e.g. Sales Transaction Form
(FormID   NUMBER(10),
ModID    NUMBER(10),
FmxName  VARCHAR2(32));           
Create Table Modules_Reports  ------e.g. Sales Report
(RepID    NUMBER(10),
ModID    NUMBER(10),
RepName  VARCHAR2(32));           
Create Table Usr              ------------From the Employee Information Module
(UserID   VARCHAR2(20),       ------------you can find the designation of
Password VARCHAR2(10)        ------------the user who wants to connect
Emp_Code Varchar2(25));      ------------that is why, I am Addng Emp_Code.
Create Table User_Modules     ------------Control the Module Access.
(UserID   VARCHAR2(20);
ModID    NUMBER(10),
Access   VARCHAR2(1));
Create Table User_Forms       ------------Control the Forms Access
(UserID   VARCHAR2(20),
FormID   NUMBER(10),
Read     VARCHAR2(1),
Write    VARCHAR2(1),
Execute  VARCHAR2(1),
Delete   VARCHAR2(1));
Create Table User_Reports     ------------Control the Report Access
(UserID   VARCHAR2(20),
RepID    NUMBER(10),
Access   VARCHAR2(1));
1 ) After Creating these Tables, Control the Application Access of the users
    From the application (Oracle Forms).
2 ) I think you should create a Menu from oracle forms.
3 ) For Controlling the Database Level Access, you can create a ROLE
4 ) Forms Forum Site:-
    http://www.forums.oracle.com/forums/forum.jsp?forum=82Regards
Muhammad Waseem Haroon
[email protected]

Similar Messages

  • How to write this sql code ?

    for example below shows:
    create table temp
    order_type varchar2(30),
    order_num number);
    insert into temp values('apple',000001);
    insert into temp values('banana',000002);
    insert into temp values('chair',000003);
    select *
    from temp
    where instr(order_type,decode(x,1,'a',2,'b',2,'c',order_type)) >0
    if i let x equals 2 and i want to get b and c from above querying .
    why above query could not get 'c' and only get 'b' if i give 2 to x ?
    how to write above select clause ?
    who can help me ?
    thanks!

    Decode will return the first match;
    SQL> select decode(2,1,'a',2,'b',2,'c')
    from dual
    D
    b
    1 row selected.This may help;
    old: select *
    from temp
    where regexp_like(order_type, case to_number(&x)
                                     when 1 then 'a'
                                     when 2 then 'b|c'
                                  end)
    new: select *
    from temp
    where regexp_like(order_type, case to_number(2)
                                     when 1 then 'a'
                                     when 2 then 'b|c'
                                  end)
    ORDER_TYPE                      ORDER_NUM
    banana                                  2
    chair                                   3
    2 rows selected.

  • How can I write the analogous code to the logic:iterate tag functionality

    Hai This is Rayalu .And I am very new to the Java World. I have a doubt?.How can I write the analogous code to the<logic:iterate> tag functionality using the JSP Tag Libraries . Pleae Send me some examples .

    Hi,
    SELECT objnr objid aufnr
            from afih
            into table t_afih.
    SELECT objnr
            from JEST
            into table t_JEST
            where stat = 'A0045'
               OR stat = 'A0046'
               AND inact 'X'.
    SELECT objnr
            from COBRB
            into table t_cobrb.
    SELECT arbpl werks objid objty
          from crhd
          INTO table it_crhd
          FOR ALL ENTRIES IN it_afih
          WHERE objty eq 'D'
          AND gewrk = it_afih-objid.
    SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
            FROM caufv
            INTO table t_caufv
            FOR ALL ENTRIES IN it_afih
            WHERE aufnr = it_afih-aufnr
              And pspel = ' '
              AND txjcd = ' '
             ANd objnr ne it_crhd-objnr
              AND auart in s_wtype
              AND werks in s_plant.
             AND objnr ne it_jest-objnr.
    dont use NE in the select statements, it may effect performance also. Instead use if statements inside
    loops.
    loop at t_caufv.
    read table it_chrd............
      if t_caufv-objnr ne it_chrd-objnr.
      read table it_jest..........
       if   if t_caufv-objnr ne it_jest-objnr.
        (proceed further).
       endif.
      endif.
    endloop.
    hope this helps.
    Reward if useful.
    Regards,
    Anu

  • How to write this sql query in php code ?

    for example:
    insert into temp
    select *
    from testtable;
    after this, i will query data from sql below:
    select *
    from temp;
    how to write this php code ?
    who can help me ?
    thanks!

    Have a look at the manual to find out how to issue queries.
    http://us3.php.net/oci8

  • How to write a start routine in the trasnformations ?

    Hi Experts,
    I am working on BI 7, As I want to write a start routine in transformations of 0FIGL_O02 DSO, to allow the GL accounts with cost center data. Already there is a delete statement please find.
    *DELETE SOURCE_PACKAGE where BAL_FLAG = 'X'. I had made comment to allow the G/L accounts. since I have some GL Accounts which does'nt have the cost center data, so in this case I have to write a ABAP code to allow this G/L accounts with cost center data.
    So Let me know if anyone can help me how to write the ABAP code in the start routine.
    Thanks
    sekhar

    Hi,
                Yopu can write the below lines of code adn try
        SORT source_package BY Receive nr  Type ASCENDING.
        DELETE ADJACENT DUPLICATES FROM source_package COMPARING Receive nr  Type.
    But you should make sure which record of the either rows need to deleted
    i.e in
    F9001;LU;J001;662;
    F9001;LU;J002;662
    You need to decide to eliminate 1st or 2nd one.(depends on your requirement)

  • How to get the ANSI codes in the program

    Hi,
    In my program, I have to get the ANSI codes 30 and 31 in the program. After getting those codes, I have to concatenate with some other text and display in the report.
    Can someone tell me how to get these ANSI codes in the program..?
    Is there any function module to get the ANSI codes in the program. or Is there any other way to get the ANSI codes in the program.
    Please help me. It is quite urgent.
    Thanks in advance,
    Best Regards,
    Pradeep.

    hi check this ....
    How can I get Ascii value of any letter
    How can I get Ascii value of any letter.  Is there any function?
    This is how you do it : 
    report demtest.
    data : c.
    field-symbols : <n> type x.
    data : rn type i.
    c = 'A'.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    This will convert 'A' to 65.
    Tom Demuyt
    How to convert ascii value to character.
    If I give input as 65 (ascill value) I want display 'A'.
    Below logic is for convert from character to ascii value , now I want to know how to convert ascii value to character.
    Naveen
    report demtest.
    *going from A to 65
    data : c value 'A'.
    field-symbols : <n> type x.
    data : rn type i.
    assign c to <n> casting.
    move <n> to rn.
    write rn.
    *going from 66 to B
    data : i type i value 66.
    data : x type x.
    field-symbols : <fc> type c.
    move i to x.
    assign x to <fc> casting type c.
    move <fc> to c.
    write c.
    regards,
    venkat.

  • How to write a pgm to change the existing encrypted password

    Hi all,
    can anybody tell me how to write a pgm to change the existing encrypted password.
    thanks in advance.

    Well, it's going to depend on how it's implemented in the current system.
    But basically it's going to look a lot like the current login actions. Presumably you have something that takes the user ID and password, encrypts the password, looks up the encrypted password in the database matching that user ID, and compares them. This functionality would also take a new password (preferably twice so they can be checked for consistency), and if the existing encrypted passwords match, it will encrypt the new password and put it in the database where the old one was.
    And if the application has a mechanism for new users to sign up, it'll look a lot like this as well.
    But I'm just guessing. This is all going to depend on how the existing functionality is written. Probably the best thing you can do is talk to a programmer at your organization who has worked on the application, and ask them for help.
    Hope this helps anyway.

  • How can i pass the Input value to the sql file in the korn shell ??

    Hi,
    How can i pass the Input value to the sql file in the korn shell ??
    I have to pass the 4 different values to the sql file and each time i pass the value it has to generate the txt file for that value like wise it has to generate the 4 files at each run.
    can any one help me out.
    Raja

    Can you please more elaberate., perhaps you should more elaberate.
    sqlplus is a program. you start it from the korn shell. when it's finished, processing control returns to the korn shell. the korn shell and sqlplus do not communicate back and forth.
    so "spool the output from .sql file to some txt file from k shell, while passing the input parameters to the sql file from korn shell" makes no sense.

  • Family sharing verification has an old credit card number to verify. I have updated the credit card info but it is still not appearing in the verification process asking for the security code of the card. How lng to have account info updated to cloud

    I am trying to set up a family sharing with a new iMac and other Mac pro computer and other apple products. When I click to manage account and the add a member, I am told to verify the user by entering the security code from the credit card. The card listed is an old one and has since been changed. I updated the info on my apple account, but it is not getting to the iCloud for the family sharing. The number shown is the old card. When I enter a code it says invalid. How long does it take for the info to udate to all systems?

    Hi Mofro1,
    Happy Holidays!  The resource below explains how to edit the credit card information for the Apple ID account that you want to use for Family Sharing.  Once you've made the changes, I would suggest you sign out of your iTunes Store on all of your devices, and then restart them.  The changes should take place quickly.  There is a link to the iTunes Store support below if you need more help.
    Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support
    http://support.apple.com/en-gb/HT1918
    Change your payment information on a Mac or PC
    Click to open your account in iTunes. (You might need to sign in with your Apple ID.)
    Alternatively, you can:
    Open iTunes.
    Click iTunes Store.
    Click Sign In and enter your Apple ID.
    Click your Apple ID and select Account Info.
    From the Account Information page, click Edit to the right of Payment Type.
    You can see the payment methods that the iTunes Store accepts in the Payment Type section. If you want to remove the payment method, select None in the Payment Type section. See what to do if None isn't showing or you can't select it.
    Change your information and click Done.
    After you change your payment information, the iTunes Store places an authorization hold on your credit card.
    Family Sharing
    If you’re using Family Sharing, and you're the family organizer, you can’t set your payment information to None. You need to use a credit card or debit card. Only the Family Organizer can edit payment information for a family group. If you're not the organizer, you'll see this message: "The payment method for your Family is managed by [Apple ID]."
    Get help
    If you need help changing your payment information, credit card details, or billing information, contact iTunes Store support. Or you might find the answer to your question below:
    If you change your payment method, make sure your account information matches the credit card information on file with your financial institution.
    If you use an AOL screen name to sign in to the iTunes Store, editing your information on the Account Information page won't update your AOL account. If you need to update your AOL account information, contact AOL.
    If your previous payment wasn't accepted, you might need to change your payment information.
    Last Modified: Oct 31, 2014
    Cheers,
    - Judy

  • How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your repl

    How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your reply. Thanks!

    It's good to read Antoniad's post.  It reassures me that I can use my new iPad as an international communication device which is the reason I purchased the thing.  However, I called Verizon today (my provider of cellular data) who told me that I can't just pop in a SIM card as you suggested.  He also said that he was from the "Pre-Pay" division of Verizon and he was certain that I couldn't do what I planned to do.  I was extremely disappointed as I had called Apple prior to buying the iPad and I read the algorhythm on the website for choosing an iPad before purchasing.  Those sources were quite specific and the information seemed clear.  I would be able to use my iPad to communicate through cellular connections while traveling on the road, literally, abroad.  I was told that I could pop in a data card wherever I was, just as you indicated in your message above, and voila I was good to go.  The Verizon rep definitively rained on that parade, but said that I might be able to do this if I have a "Post-Pay" account, a different area of Verizon.  I haven't had the chance to talk to this division yet, so I looked to Apple's Support for answers.  Maybe I will find out that I can use my iPad as an international communication device while traveling on the road afterall, however, it appears I may need a different type of account (Post-Pay), something I was never warned about. Can I switch to this kind of account?  I don't know.  I have to find out.  If you have any information about this issue, it would be good to share since I strongly suspect there are others who bought the iPad for the same purpose that I have.

  • I try to export my Imovie and I always get the error code"Unable to prepare project for publishing...File already open with write permission"  it even does it when I am just trying to export to my external hard drive to save the file

    I try to export my Imovie and I always get the error code"Unable to prepare project for publishing...File already open with write permission"  it even does it when I am just trying to export to my external hard drive to save the file

    Thanks!!! I had same error (with -49) and the mac had an external hard drive attached.. and it was doing a backup.  Stopped, disconnected and the project exported!

  • How to find out the condition type of the tax code in the PO document

    Hi friends,
    My questions is how to find out the condition type of the tax code in the PO document.
    When you use me23n to display one PO document. In the invoice tab, there is one text field named 'tax code' whose value could be T1, T2, J1, J2 and so on. Beside the text field, there is one button named taxes. When you click the button taxes, it will show you the condition type of the tax code. For example, if the tax code is 'T1', then its condition type 'mwcn'.
    I want to use the information on the PO to find out the value 'mwcn' of the tax code 'T1'. Could anybody help to describe the logic?it looks like the value is saved in the table konp. But I don't know the logic. Please describe. Thank you.

    Hi,
    Hope you have asked for select query..
    select single knumh from a003 into wa_knumh
      where mwskz = wa_itpotab-mwskz
      and kappl = 'TX'
      and aland = 'IN'.
    select single kbetr from konp into wa_kbetr
      where knumh = wa_knumh.
    cheers,
    Dep

  • How to get the java code of the message mapping

    how to get the java code of the message mapping,
    I mean to ask how to get the background java code of the message mapping(graphical mapping).
    And where to view it?

    Hi Satya,
    The JAVA code for graphical msg mapping is in below folder:
    \usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
    Here all the mapping jars are there in this folder.
    Just decompile these jars and you can see the code.
    Thanks,
    Rajeev Gupta
    Message was edited by:
            RAJEEV GUPTA

  • How do I change the Version Code in the Flash Android settings Android app market?

    I recently tried to update my app in the Android app market and when I uploaded it I got the following message:
    "The new apk's versionCode (1000000) already exists."
    In the Flash Adnroid settings I changed the version label but that did not help.
    So I have two questions:
    How do I change the Version code in the Flash Android settings? I changed the version number and version label but that did not work.
    What is the difference between the version number and version label?

    I tried that but it did not work. Apparently there is a difference between the version code and version number (which is set in the Android settings). From my research the version label is optional, so there are no problems there.
    This is the what the XML file says:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/2.6">
      <id>com.company.nameofapp</id>
    //Below is the correct version number, but has no relation to the version code.
      <versionNumber>1.1.0</versionNumber>
      <versionLabel>NewLayout</versionLabel>
      <filename>Name of app</filename>
      <description/>
    I did find this piece of information for Androin version codes. (http://developer.android.com/guide/publishing/versioning.html)  But I don't know how to place it into the xml file without conflicting with other code.
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.package.name"
          android:versionCode="2"
          android:versionName="1.1">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
        </application>
    </manifest>
    Any other thoughts are much appreciated.

  • How do I change the Version Code in the Flash Android settings for the Android app Market?

    I recently tried to update my app in the Android app market and when I uploaded it I got the following message:
    "The new apk's versionCode (1000000) already exists."
    In the Flash Adnroid settings I changed the version label but that did not help.
    So I have two questions:
    How do I change the Version code in the Flash Android settings? I changed the version number and version label but that did not work.
    What is the difference between the version number and version label?

    I tried that but it did not work. Apparently there is a difference between the version code and version number (which is set in the Android settings). From my research the version label is optional, so there are no problems there.
    This is the what the XML file says:
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/2.6">
      <id>com.company.nameofapp</id>
    //Below is the correct version number, but has no relation to the version code.
      <versionNumber>1.1.0</versionNumber>
      <versionLabel>NewLayout</versionLabel>
      <filename>Name of app</filename>
      <description/>
    I did find this piece of information for Androin version codes. (http://developer.android.com/guide/publishing/versioning.html)  But I don't know how to place it into the xml file without conflicting with other code.
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.example.package.name"
          android:versionCode="2"
          android:versionName="1.1">
        <application android:icon="@drawable/icon" android:label="@string/app_name">
        </application>
    </manifest>
    Any other thoughts are much appreciated.

Maybe you are looking for

  • IPod nano no longer works correctly

    I have an iPod nano and I have only just purchased it less than a month ago. Whenever it is laying somewhere not plugged in to the computer it will be a blank screen. If I press menu it will come up with a note that reads "use iTunes to restore" and

  • Increasing of the length of the field of short text

    hai gurus i want to increase the length of the field while creating the purchase order is there any facility for  that plese give me the details

  • Prevent log to be created for Failed RFC calls in SM21.

    Can you find out if there is way to stop RFC cancelled transactions thru CALL_TRANSACTION from getting logged as u201Ccancelled transactionsu201D in SM21. Thanks in advance. Rajiv Kanoria

  • I can't print no matter what I try.  Please help.

    Hi. I bought an Airport Express and installed it successfully. I use it with my iMac OS X 10.5.8. I previously used my HP Officejet 5610 with the iMac through a direct USB connection. I've tried printing to the Officejet via Airport but can't get it

  • Ea3500 won't let me connect with IOS device

    When I bought this router, I'm pretty sure I could connect with my ipad.  Now, when I try to connect, Safari crashes. So I tried with my iphone - and I get a message saying my browser isn't supported and I must download your frigging APP in order to