Table by using the command

Hello world
I have a table of student where I have all the students of our school and now I also want to have control of daily assistance for each student. I need to create another table for this purpose or do you think I can use the same table for this?
This is my table:
SCHOOL_ID NOT NULL VARCHAR2 (5)
STUDENT_ID NOT NULL VARCHAR2 (15)
LAST_NAME VARCHAR2 (30)
FIRST NAME VARCHAR2 (30)
GRADE VARCHAR2 (8)
NATIONALITY VARCHAR2 (20)
Date of birth
STUDENT_EMAIL VARCHAR2 (50)
ADDRESS_1 VARCHAR2 (50)
ADDRESS_2 VARCHAR2 (50)
GUARDIAN_RELATIONSHIP VARCHAR2 (20)
GUARDIAN_LASTNAME VARCHAR2 (30)
GUARDIAN_NAME VARCHAR2 (30)
HOME_PHONE_CODE NUMBER (3)
HOME_PHONE VARCHAR2 (8)
STATUS VARCHAR2 (1)
TYPE VARCHAR2 (1)
GUARDIAN_MOBIL_CODE NUMBER (3)
GUARDIAN_MOBIL VARCHAR2 (8)
WORK_PHONE_CODE NUMBER (3)
WORK_PHONE VARCHAR2 (8)
GUARDIAN_EMAIL VARCHAR2 (50)
GUARDIAN_NATIONALITY VARCHAR2 (20)
GUARDIAN_LANGUAGE VARCHAR2 (20)
EMERGENCY_CONTACT VARCHAR2 (30)
EMERGENCY_PHONE_CODE NUMBER (3)
EMERGENCY_PHONE VARCHAR2 (8)
EMERGENCY_RELATION VARCHAR2 (30)
PHYSICIAN_NAME VARCHAR2 (30)
PHYSICIAN_PHONE_CODE NUMBER (3)
PHYSICIAN_PHONE VARCHAR2 (8)
STUDENT_ALLERGIES VARCHAR2 (80)
STUDENT_MEDICATION VARCHAR2 (80)
FAX_CODE NUMBER (3)
FAX VARCHAR2 (8)
GUARDIAN_EMAIL2 VARCHAR2 (50)

user626836 wrote:
Hi Ed and thanks for the reply,
The school year is because each term is 2 years old like the 2011-2012 school year.

Yes, but if you know the date of the action, you already know the "school year", because any given date can belong to a single "school year".

And you could treat 'back' as 'exercise '. An exercise generally does not begin on January 1, so covers parts of two calendar years, but is called by one of these years. as "fiscal 2012" starts in 2011 and ends in 2012. So if you really felt you need to record the 'back' separately, you might refer to "the year 2012" school to signify the school year begins in 2011 and ending in 2012. "

But again, this is redundant and violates the standards, because do you know always the school year if a calendar date.

My new table must be something like that? :
SCHOOL_ID NOT NULL VARCHAR2 (5)
STUDENT_ID NOT NULL VARCHAR2 (15)
LATES VARCHAR2 (1)
VARCHAR2 (1) ABSENCES
DATE DATE
SCHOOL_YEAR VARCHAR2 (9)

in this model, while the ABSENCES and DELAYS properly is a varchar (you just want to report it) the names of the columns imply a County. I would like to change the names simply 'AWAY' and LATE. Or better - they are mutually exclusive, so why not simply 'STATUS', null, 'A' (absent), or 't' (late).

Published by: EdStevens on November 3, 2011 09:49

Tags: Database

Similar Questions

  • Data accidentally deleted using the command replace the datapump

    All,

    I exported 2 partitions of a table using the pump data to the following address:

    expdp User1/password1 directory = DPUMP_DIR tables = tab1:P27, tab1:P28 logfile = tab1.log dumpfile = tab1_27_28.dmp

    I moved the dump to the staging file and tried to import with the following command:

    Impdp User1/password1 directory = DPUMP_DIR tables = tab1:P27, tab1:P28 = tab1.log = tab1_27_28.dmp = table_exists_action dumpfile logfile APPEND

    When I run the above command, I got the following error:

    ORA-31696: unable to import/export TABLE_DATA: "VOP. "' R_REQUEST ': 'P28. "' P28_RN ' using client specified AUT

    I checked this on the Oracle Support Web site and got the following advie:
    =====================================================
    + * < moderator edit - content removed from MOS Doc - please do not post content of MOS Docs - this is a violation of your Support contract > * +.
    =================================================================================

    I then proceeded to use table_exists_action = replace (thinking he would only replace the 2 were specified).



    With the help of table_exists_action = replace deleted lines of all others were leaving and loaded the 2 partitions that I exported.

    I tried to recover data using the command below lodt, but it did not work:

    SQL > flashback table user1.tab1 timestamp (systimestamp - interval minute '120');

    I have enable row movement and we always had enabled flashback:
    db_flashback_retention_target around 1440

    Does anyone know how I could have consulted lost data without having to export and import the entire table (which is almost 1 terabyte)

    If your database in archivelog mode? If so you can try to make CAMILLE

  • How to pass variables by using the command line when starting from a native application ActionScript

    How to pass in variables or arguments to start using the command line when starting a native ActionScript application? For example, I have my app MySweetWidget call and it was compiled with Adobe AIR runtime in captivity so now I have MySweetWidget.exe.

    In the command line, I call MySweetWidget.exe and would like to pass in variables or properties of the application. I guess that these variables are read from the loaderInfo.parameters object.

    Please let me know if the Adobe AIR runtime supports passing the parameters to native execution. If so, I would like to help determine the correct format of how pass variables. So would you want to read those loaderinfo.parameters object?

    Thank you

    Jeff

    I found the answer to my own question:

    Yes, it's a feature supported. It is documented on the following page:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/desktop/NativeApp lication.html #event:invoke

    When you subscribe to the event from the NativeApplication invoke it will subsequently send the event and you read the table of e.arguments object to get the start in the native application arguments.

  • can we use the command move to MV and MV newspaper?

    Hi friends,

    DB: 9.2.0.7
    OPERATING SYSTEM: AIX 5.3

    can we use the command move against MV & MV newspaper to place them in a different tablespace?
    something like "alters the materialized view moving..." "etc.

    If someone posts to order too, it would be awesome!

    Thanks in advance

    Mviews and Mview Logs are a few paintings. Any code will refer to the schema table, not tablespace.

    Why not just run a test to confirm? It would be quicker to ask a question here.

    SQL> alter materialized view emp_mv move tablespace test;
    
    Materialized view altered.
    
    SQL> alter materialized view log on emp move tablespace test;
    
    Materialized view log altered.
    
    SQL> alter index A.SYS_C0011458 rebuild;
    
    Index altered.
    
    SQL> insert into emp values (3,'peter');
    
    1 row created.
    
    SQL> exec dbms_mview.refresh('EMP_MV');
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from emp_mv;
    
            ID NAME
    ---------- ----------
             1 john
             2 robert
             3 peter
    

    Or... a more dirty solution would be to just move the tables.

    SQL> exec dbms_mview.refresh('EMP_MV');
    
    PL/SQL procedure successfully completed.
    
    SQL> create tablespace test;
    
    Tablespace created.
    
    SQL> alter table MLOG$_EMP move tablespace test;
    
    Table altered.
    
    SQL> alter table EMP_MV move tablespace test;
    
    Table altered.
    
    SQL> alter index A.SYS_C0011458 rebuild;
    
    Index altered.
    
    SQL> insert into emp values (2,'robert');
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> exec dbms_mview.refresh('EMP_MV');
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from emp_mv;
    
            ID NAME
    ---------- ----------
             1 john
             2 robert
    

    Published by: Robert Geier on December 8, 2009 13:10

    Published by: Robert Geier on December 8, 2009 13:12

  • ADD THE AMOUNT WITHOUT USING THE COMMAND

    Hi 2 all...

    the table contains:

    UID billno amount
    1 101 100
    2 102 200
    3 103 300

    the o/p should be:

    UID total amount billno
    1 101 100
    2 102 200 300
    3 103 300 600

    I need the query for this pblm without using the command... Please advice... can someone send immed... Thanks in advance...

    If you still don't bother to write in proper understandable English or probably your keyboard is broken.

    Anyway you can do this

    SQL> WITH t AS (
      2  SELECT 1 col_uid, 101 billno, 100 amount FROM DUAL UNION ALL
      3  SELECT 2, 102, 200 FROM DUAL UNION ALL
      4  SELECT 3, 103, 300 FROM DUAL)
      5  -- end test data
      6  select col_uid, billno, amount, decode(amount, amount_cum, null, amount_cum) amount_cum
      7    from (
      8  select t.*, (select sum(amount) from t t1 where t1.col_uid <= t.col_uid) amount_cum
      9    from t)
     10  /
    
       COL_UID     BILLNO     AMOUNT AMOUNT_CUM
    ---------- ---------- ---------- ----------------------------------------
             1        101        100
             2        102        200 300
             3        103        300 600
    
  • I can not use the command share in safari, mail, notes, etc. since I updated to El Capitan (10.11.5). No way to solve it. Please help me.

    I can not use the command share in safari, mail, notes, etc. since I updated to El Capitan (10.11.5). No way to solve it. Please help me.

    There is a problem with your installation of OS X. The easiest way, but not the fastest way to fix it is to reinstall the operating system. Unless you are in a hurry or have measured access to the network, it is what I suggest, especially since I don't know if there are any problems with the installation. Please backup all data before reinstalling. You won't need the backup unless something is wrong.

    The below, advanced shortcut if it works, can save you some downtime (and the cost of a download of several gigabyte, if necessary.)

    1 back up all data.

    2. disconnect all external storage devices.

    3. start in recovery mode. Select a language, if you are prompted. The OS X Utilities appears. One of the options is to install OS X. This is not what you do.

    4. This step is only necessary if you use FileVault 2. If you don't know what's FileVault, you use it. Go to the next step. Otherwise, launch utility disk, then select the icon for the volume FileVault ("Macintosh HD", unless you have given it a different name.) It will be nested under another icon of the disc. Select open in the file menu and enter your login password when you are prompted. Then quit disk utility must be returned to the main screen.

    5. Select get online help. Safari will launch. While in recovery, you will have no access to your Favorites, but you won't need them. Load this web page.

    6. triple - click anywhere in the line below to select this option:

    chflags -R norestricted /V*/*/S*/*/Caches

    Copy the selected text in the Clipboard by pressing Control-C key combination.

    7. Quit Safari. You go back to the OS X Utilities screen.

    In the menu bar, select

    Utilities ▹ Terminal

    Launch the Terminal application. Paste in the Terminal window by pressing the command-V key combination.

    Wait for a new line ending with a number sign (#) to appear. Quit the Terminal must be returned to the main screen.

    8. Select

    ▹ Restart 

    in the menu bar.

    9. This step must be performed after the restart, and while you are logged as administrator, not in recovery mode. If you have only one user account, you are the administrator.

    Select and copy this line as in step 6:

    sudo /usr/libexec/xpchelper --rebuild-cache

    Paste in a Terminal as before. You will be asked for your login password. Nothing displayed when you type. Type carefully, and then press return. If you do not have a password, you will need to configure one before you can run the command. You can get a warning to be careful. Confirm. You don't need to display the warning.

    If you see a message that your user name "is not in the sudoers file", then you have not logged as an administrator. Log in as one and repeat this step. You don't have to repeat the previous steps.

    Wait for a new line ending with a dollar sign ($) below what you entered.

    10. make as in step 9 with this line:

    sudo /usr/libexec/*/app_sandbox_cache_builder --rebuild-cache

    You can then quit Terminal.

  • Can't paste the screenshots using the command C?

    Hi, I've always been able to take screenshots (command + Opt + shift + 4) and paste them directly in mac mail emails or Messages by using the command + c. lately I am not able, maybe since 10.11.4? I am still able to take screenshots but I am unable to paste them. They are now on my desk and I have to search for them and then drag - move which is more slow than before.  I also notice the same problem in photoshop CC 2015, that I can paste is more directly the screenshots but drag and drop them on the desktop.

    I don't know what is the cause. Everyone knows this and is there a way to fix it?

    Thanks for your help.

    Press the function instead of the Option key when taking the screenshot.

    (141973)

  • First HP: help using the command CAS.solve (STRING1, STRING2) within a program

    Hello and hope you can help me with my problem!

    I write a somewhat complicated program (operating mode no case) who has a subroutine called STSOLVE where his entry is always a string from the main program that contains a formula as "'I' = 'V' / 'R', 'R'" and its goal is to replace all the variables contained in "" to the compatible standard CASE generated automatically variable (teiXX where XX is a unique number) and then use the command solve to assess this formula (say final temporary formula "tei1 = tei2 / ') tei3, tei3"). Before returning, he replaces the temporary variables, generated automatically with the original on the result, so the original formula will be sent back solved in the main program.

    My problem:

    It returns the result {UNDEF} or simply {} even in expressions that absolutely work if used with the command solve manually, in the main screen of calculators CASES when the CAS.solve command is used either! Even though I know that the entry of this order is correct according to the tutorials I've read in the forums, I can't work properly.

    I tried all methods of writing the order and I only managed to get a result when I wrote this:

    RPART1: = cas.expr (RPART1);

    RESLT: = case. Solve (RPART1, "tei2");

    .. .or RPART1 contains, say, the part 'tei1 = tei2/tei3' (NOT AS A STRING!) and "tei2" SHOULD be written as shown here, a chain, entered manually just for test (can be 'tei1' or 'tei3' too for this particular case). However, if I put "tei2" in RPART2 of local variable in the subroutine as a string and then pass this variable to the solve command, say:

    RPART1: = cas.expr (RPART1);

    RESLT: = case. Solve (RPART1, RPART2);  RPART2 contains the string "tei2", "tei1" or "tei3.

    Here again, I get a {} as a result!

    I tried so already a lot of things that I don't know exactly what mention here, but I hope I described the main situation enough to start detailed and of course, I'll give you any other information you might need to give me more help. I tried to paste the entire subroutine, or even the entire program, but I don't have any windows pc to connect the first HP and copy the program. I am writing from an Android Tablet and I should maybe type the everything here is not very easy, I will of course if you ask.

    Perhaps, I should also note that the generated vars tei1, tei2 etc. do not exist as variables in the calculator, but if I copy channels same as the program tries to run in the command CAS.solve and manually write in case screen (not a string of course) then they get solved without problems.

    Hope to get help and learn from you and I wish I could found more help about it online, but it seems very difficult and also all the tutorials I found on the cas.solve command in the programs did not work in my case!

    Andreas

    It works, or is this not the problem?

    CAS.solve ("tei1 = tei2/tei3", "tei2");

    I get output: {tei1 * tei3} which is correct.

  • Can not do a screen shot using the command shift 4. Unable to capture the States. I restart the Mac.

    Can not do a screen shot using the command shift 4. Unable to capture the States. I restart the Mac.

    It is to capture a piece of the element you want to screenshot, make a fire using full-screen control + 3

  • Problem: Using the command 'msg' with 'system Exec.vi.

    I try to write to the LabView code that takes advantage of the 'Exec.vi System '. For the moment, I have tried to use it to ping machines, return the command ipconfig and run through the code example that provides NEITHER.

    I would use the "msg" command used on Windows operating systems to send a message to several machines on our network at a time. Warning that we're about to update a program and that they should disconnect, things like that.

    I tried to use the command 'msg' LabView maintains return errors. I also wrote a quick command as follows file:

    @echo we
    CD c:\Windows\System32\
    Msg.exe /server:localhost * test

    When I run the batch of windows, it runs. When I launch from LabView (using the Exec.vi system), it fails.

    Potential quirks:

    I discovered in a different place under a machine to receive these messages they need to have a registry entry:

    "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" and have a DWord value called "AllowRemoteRPC' = 1.

    Note that "/ Server: localhost" might be "/ server: anycomputer" and the "*" is used as a wildcard character that sends a message to anyone who is connected to this computer. Also note that the 'test' is the message to send.

    Any ideas why I'm having a problem?

    TL; Dr.: "System Exec.vi" does not have the command "msg". Why is this?


  • The list of permissions of the files using the command line

    Hi all

    My windows operating system is windows Server 2003 R2.

    Now, I'm trying to find a solution that can display all the permissions of the file of each folder and its subdirectory by using the command line syntax.
    I tried to use ICACLS to solve this problem, but its result contains the permissions of all files/folders. I just want to have the permission of files, not the permissions of each individual files.

    Is it possible to just show the permissions of folders with ICACLS? If it is possible, what sentence from command line?

    However, I also looked at Systinterals AccessChk and AccessEnum without finding a solution.

    If you have no good solution, please share with me.

    Advanced thanks.

    Hi Leo,

    The question you have posted is related to file permissions in Server 2003 and it would be better suited to the TechNet community.

    Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/winserversecurity/threads

    Hope it will be useful.

  • I can settings add e-mail account by using the command line?

    Can I programmatically or by using the command prompt add parameters of "e-mail account"? for example: IMAP/POP3 "Incoming mail server" etc.

    No, there is no API to add an account without the help of the default interface of the to do.

  • How to use the commands on the cmd prompt witout using a string like 'netstat' but I need output

    How use the commands on the cmd prompt witout using a string like netstat but I need output
    example: C:\ > netstat-an... will give its results
    But if the keyword netstat is blocked...
    I want to use the command netstat another way... can I convert it to binary, and then I can run or something else
    Please answer my questin

    Netstat is simply a file program located in the folder C:\Windows\System32.   It appears as "netstat.exe.  If you rename (or copy / paste / rename) to "abc.exe" then you can run it using 'abc' instead of 'netstat '.

    HTH,
    JW

  • Is there an online class to learn exactly how to use the command prompt which is quite through. OR y at - it clear a book that explains in detail for this? Who should I contact?

    I would like to know how to use the command prompt.  The nethodology type in the cmd prompt with the syntax and the Liposuction, in other words, the real return to a command prompt. I downloaded about evertthing I can find about this, but can't seem to put it all.

    My OS is Windows XP Pro sp3, lots of RAM, my address is * address email is removed from the privacy *.   I would like to take a rough online study if one is available if it is not too expensive.

    It really depends on what you mean by "to a command prompt."

    If you open a command prompt window (for example, in start > run > cmd > OK), you can enter a number of orders.  The list of available commands, including their syntax, is here--> http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

    You can also follow the links here:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_o.mspx

    If you want to get more sophisticated - automating command-line tasks - you can start here: http://technet.microsoft.com/en-us/scriptcenter/default.aspx

  • Error message: the software can be installed by using the command "run under...". ».

    I have amtrying to load the HP Photosmart D71000 series. Keep is error message: the software can be installed by using the command "run under...". ». Advice suggests logon as a user with administrator privileges. This was done and same message came.  Why?

    Try right click on the setup.exe > run as admin.

    If this does not work, try the Vista Hardware and drivers Forum:

    http://social.answers.Microsoft.com/forums/en-us/vistahardware/threads

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for