Tuesday, 3 March 2015

GENERAL KNOWLEDGE


1) Blue Mountain National Park is situated in which state of India? - Mizoram

2) Longest muscle in human body? - Sartorius

3) Bhariyas are the major tribes of which state? - Madhya Pradesh

4) What was the total number of members in the Drafting Committee of Constitution? - 7

5) Who was India's Constitutional Advisor? - B N Rao (B N Rao was also the first Indian judge at the International Court of Justice.)

6) The Law of Natural Selection is associated with? - Darwin

7) Which Indian artist decorated the handwritten Copy of the Constitution? - Nandalal Bose

8) Which Article is described as the "Heart and Soul of the Constitution"? - Article 32

9) The oath of office is administered to the Governor by the? - Chief Justice of high court

10) Who is head of Judiciary in the State? - High Court



How to Make a Video Resume for Your Job Search
Necessary Materials
First things first, how are you going to record yourself? We recommend a few options, depending on your budget:
ScreenFlow for Mac: ScreenFlow is a great recording software. Extremely easy to use and also has video-editing capabilities built in. Try the free demo before committing to purchase and see if this software works well for your needs.
ScreenToaster: Looking for a completely free alternative? Then ScreenToaster is for you. All you need to do is register an account and start recording! Allows for screen captures/recording, video recording and more.
YouTube Account: It’s free to use and also provides some useful statistics, such as how many views individual videos have as well as a public link to copy and paste into the body of your e-mail cover letter.

How Do I Look?

Believe it or not, your appearance is very important! A video resume is essentially a one-way interview, which means you need to dress as if this is the first time you will meet a decision maker within an organization.
This means …
Gentlemen: 

Wear a shirt, tie and jacket. It’s always better to be over dressed for an interview that to show up under dressed. Double check yourself in the mirror Ladies: This is the perfect time to break out a nice blouse/jacket combo. In most before you begin recording; do you have part of your breakfast left in your teeth?
cases, women have longer hair than men do. Be conscious of this and take a look at the image being recorded to see how your hair looks. Try changing your body angle to focus the recording on your face, not your hair.

Set Your Stage

You’ve re-examined your appearance, now it’s time to take a look at the stage you’re setting.

Lights: It’s always easier to find the best background lighting during the daytime.
If you choose to record at night, test out a combination of lights pointing directly at your face (like a news anchor). Direct lighting will draw attention to your face, not on the contents in the background of your recording.

Camera: Find the best camera angle to record from. You’d like to be at eye level

with the camera; as if you were looking in the eyes of a hiring manager. Also, avoid shooting from low-to-high because it will make you appear bulkier than you truly are.

Tell Your Tale

It’s time to record! Write out a rough outline of the topics you’d like to present to deliver. Do your best to keep the video concise; don’t tell your life story! The length of your video resume should not exceed one minute.
Here are three key topics to focus on when selling yourself in a video resume:

Introduce Yourself:

 Short and sweet! “Hello, my name is … and I am applying for the … position you have open.”

I’m a Great Fit Because … 

This is your shot to show the value you can bring to the organization. Cite one specific example (can be cherry picked from the job description) where you could improve the productivity of a position.

Thank Them For Their Time: Again, keep this short and sweet. Something

like, “I hope I could answer some questions about my ability to do the job exceptionally well and would like to thank you for taking the time to watch my video resume.”
The key is to not recount what is written on your resume. Instead, focus on specific example(s) where you could improve the productivity of the position and be able to prove how you would do so!
Remember, this is the first opportunity you have to break down the digital barrier with a potential employer. Take your time; focus on proving your potential value to the organization by accentuating your strengths and experience.
Happy Job Hunting!


Monday, 2 March 2015

Oracle Data Definition Language (DDL) Examples


Data definition language (DDL) statements enable you to perform these tasks:
  • Create, alter, and drop schema objects
  • Grant and revoke privileges and roles
  • Analyze information on a table, index, or cluster
  • Establish auditing options
  • Add comments to the data dictionary
The CREATEALTER, and DROP commands require exclusive access to the specified object. For example, an ALTER TABLEstatement fails if another user has an open transaction on the specified table.
The GRANTREVOKEANALYZEAUDIT, and COMMENT commands do not require exclusive access to the specified object. For example, you can analyze a table while other users are updating the table.
Oracle implicitly commits the current transaction before and after every DDL statement.
Many DDL statements may cause Oracle to recompile or reauthorize schema objects.
DDL Statements are

CREATE        :Use to create objects like CREATE TABLE, CREATE FUNCTION,
                        CREATE SYNONYM, CREATE VIEW. Etc.
ALTER           :Use to Alter Objects like ALTER TABLE, ALTER USER, ALTER
                         TABLESPACE, ALTER DATABASE. Etc.
DROP             :Use to Drop Objects like DROP TABLE, DROP USER, DROP
                        TABLESPACE, DROP FUNCTION. Etc.
REPLACE      :Use to Rename table names.

TRUNCATE   :Use to truncate (delete all rows) a table.

Create


To create tables, views, synonyms, sequences, functions, procedures, packages etc.

Example

To create a table, you can give the following statement



create table emp (empno number(5) primary key,
                   name varchar2(20),
                   sal number(10,2),
                   job varchar2(20),
                   mgr  number(5),
                   Hiredate  date,
                   comm number(10,2));

Now Suppose you have emp table now you want to create a TAX table with the following structure and also insert rows of those employees whose salary is above 5000.

Tax
Empno
Tax
Number(5)
Number(10,2)

To do this we can first create TAX table by defining column names and datatypes and then use INSERT into EMP SELECT …. statement to insert rows from emp table. like given below.

create table tax (empno number(5), tax number(10,2));

insert into tax select empno,(sal-5000)*0.40
                     from emp where sal > 5000;

Instead of executing the above two statements the same result can be achieved by giving a single CREATE TABLE AS statement.

create table tax as select empno,(sal-5000)*0.4
   as tax from emp where sal>5000

You can also use CREATE TABLE AS statement to create copies of tables. Like to create a copy EMP table as EMP2 you can give the following statement.

create table emp2 as select * from emp;

To copy tables without rows i.e. to just copy the structure give the following statement

create table emp2 as select * from emp where 1=2;

Alter


Use the ALTER TABLE statement to alter the structure of a table.

Examples:

To add  new columns addr, city, pin, ph, fax to employee table you can give the following statement

alter table emp add (addr varchar2(20), city varchar2(20),
      pin varchar2(10),ph varchar2(20));

To modify the datatype and width of a column. For example we you want to increase the length of the column ename from varchar2(20) to varchar2(30) then give the following command.

alter table emp modify (ename varchar2(30))

To decrease the width of a column the column can be decreased up to largest value it holds.

alter table emp modify (ename varchar2(15));

The above is possible only if you are using Oracle ver 8i and above. In Oracle 8.0 and 7.3 you cannot decrease the column width directly unless the column is empty.

To change the datatype the column must be empty in All Oracle Versions.

 

To drop columns.


From Oracle Ver. 8i you can drop columns directly it was not possible in previous versions.

For example to drop PIN, CITY  columns from emp table.

alter table emp drop column (pin, city);

Remember you cannot drop the column if the table is having only one column.
If the column you want to drop is having primary key constraint on it then you have to give cascade constraint clause.

alter table emp2 drop column (empno) cascade constraints;

To drop columns in previous versions of Oracle8.0 and 7.3. and to change the column name in all Oracle versions do the following.

For example we want to drop pin and city columns and to change SAL column name to SALARY.

Step     1: Create a temporary table with desired columns using subquery.

create table temp as select empno, ename,
 sal AS salary, addr, ph from emp;

Step     2: Drop the original table.

drop table emp;

Step     3: Rename the temporary table to the original table.

rename temp to emp;


Rename

Use the RENAME statement to rename a table, view, sequence, or private synonym for a table, view, or sequence.
  • Oracle automatically transfers integrity constraints, indexes, and grants on the old object to the new object.
  • Oracle invalidates all objects that depend on the renamed object, such as views, synonyms, and stored procedures and functions that refer to a renamed table.
Example

To rename table emp2 to employee2 you can give the following command.

rename emp2 to employee2

 

Drop


Use the drop statement to drop tables, functions, procedures, packages, views, synonym, sequences, tablespaces etc.

Example

The following command drops table emp2

drop table emp2;

If emp2 table is having primary key constraint, to which other tables refer to, then you have to first drop referential integrity constraint and then drop the table. Or if you want to drop table by dropping the referential constraints then give the following command

drop table emp2 cascade constraints;

 

Truncate


Use the Truncate statement to delete all the rows from table permanently . It is same as “DELETE FROM <table_name>” except
  • Truncate does not generate any rollback data hence, it cannot be roll backed.
  • If any delete triggers are defined on the table. Then the triggers are not fired
  • It deallocates free extents from the table. So that the free space can be use by other tables.

Example

truncate table emp;

If you do not want free space and keep it with the table. Then specify the REUSE storage clause like this

truncate table emp reuse storage;

Monday, 23 February 2015

 CURRENT AFFAIRS ON 22-2-15


1) Ranchi Rays won Hockey India League 2015:
--> Debutants Ranchi Rays won the third edition of the Hockey India League (HIL) defeating Punjab Warriors 3-2 in a penalty shootout in the final at the Major Dhyan Chand National Stadium on  February
--> The regulation time score read 2-2 which resulted in the shootout.
--> Though the Rays are a new team, the squad is more or less the same as that of the now non-existent Ranchi Rhinos which won the inaugural HIL in 2013.

2) Nitish Kumar sworn in as Bihar CM:
--> Nitish Kumar took oath as Bihar's CM for the fourth time on 22 February 2015.
-->  This follows the dramatic resignation of rebel JD(U) leader Jitan Ram Manjhi last week before the show of strength in the 243-member Bihar assembly.
--> He was administered the oath of office and secrecy at the Raj Bhawan in Patna by governor Keshari Nath Tripathi.

3) Dilip Shanghvi overtook Mukesh Ambani as the richest Indian:
--> Dilip Shanghvi overtakes Mukesh Ambani as the richest Indian in terms of market value.
--> The Sun Pharma's founder and MD, is worth about Rs 1.46 lakh crore thanks to his 63 per cent stake in three group companies - Sun Pharma, Sun Pharma Advanced Research and Ranbaxy Laboratories. 


4) India defeated South Africa by 137 runs in World Cup group match:
--> India announced themselves as genuine contenders to defend their World Cup title on 22 February 2015 by humbling South Africa's vaunted pace attack before bowling out the Proteas for an emphatic 130-run victory at the Melbourne Cricket Ground.
--> In front of a heaving crowd of 86,000, opener Shikhar Dhawan struck a sparkling 137 and Ajinkya Rahane an explosive 79 to fire India to a mammoth 307-7 and ensure their opponents would need a record chase at the stadium to win.
--> Shikhar Dhawan was adjudged Man of the Match.

5) India, Indonesian troops conduct joint training exercises named GARUDA SHAKTI-III:
--> Sharing experiences in conduct of counter-terrorism and insurgency operations, troops of India and Indonesia participated in joint army exercises in Mizoram.
--> The exercise was aimed at building and promoting positive military-to-military relations between the armies of the two nations, defence officials said.
--> Exercise 'GARUDA SHAKTI-III' is the third one in the ongoing series of joint exercises between armies of India and Indonesia.

6) Somdev Devvarman retained Delhi Open title:
--> Somdev Devvarman retained the Delhi Open title with a comeback win over Yuki Bhambri, whose game crumbled despite early promise in the summit clash.
--> With this victory, Somdev ended a long title-less run which began after winning this title last year.

7) In a first, women joined Sarang team:
--> For the first time, two women are part of the Sarang team of the Indian Air Force, a show-stopping helicopter-formation team that performed at the Aero India show.
--> Squadron Leader Deepika Misra and Flight Lieutenant Sandeep Singh, an engineering officer, hope that one day, there will be an all-woman quartet in the squad, whose name means peacock.

8) Maldives ex-leader Nasheed arrested on terror charges:
--> Police in the Maldives have arrested opposition leader and ex-President Mohamed Nasheed on terror charges.
--> The case against him was dropped last week, but the allegations have been reintroduced under anti-terror laws that punish acts against the state.
--> Mr Nasheed - a former human rights campaigner was president of Maldives from from 2008 to 2012.

9) World Thinking Day observed:
--> World Thinking Day was celebrated annually on 22 February by all Girl Guides and Girl Scouts.
--> It is also celebrated by Scout and Guide organizations and some boy-oriented associations around the world.

10) Indian-American, Purnendu Dasgupta, won prestigious chemistry award:
--> An Indian-American, who developed an environment friendly field analyser for checking toxic arsenic levels in water, has been awarded a prestigious award for his special contribution in the field of chemistry.

--> Purnendu Dasgupta, a Jenkins Garrett professor of chemistry at The University of Texas at Arlington, has been awarded the 2015 American Chemical Society Division of Analytical Chemistry J. Calvin Giddings Award.


Contents

   
1.
2.
3.
4.
5.
      

1. "man"

Display Manual Pages

The man command will display the manual pages for most UNIX commands. For more information on any of the Unix commands below, use this to see if there is an online manual page available. For example, if you require help on the move (mv) command, you would type:
man mv

The command syntax for man is:

man commandname

By default, the man command uses another command called more to display the manual page one screenfull at a time. To display the next screen, press the space bar. To end the display before the end of the file, press the "q" key. 

2. "ls"

List the contents of a directory

Use this command to list the contents of the current directory. This will display all files and directories within the current directory in a columnar format.
You may change the format in which ls displays your directory listing by adding options to the ls command. To add an option to the command, follow the ls command with a minus sign '-' and the option(s) you wish to add. For example, ls -l will list the current directory in long format, showing size, date, and permissions. ll is a common alias or shortcut for the list long command (ls -l).
In Unix, there are files which are normally hidden called "dotfiles". These dotfiles are files that start with a dot (i.e. a period - ".") and are used by programs and shells to retain control information such as preference settings and bookmarks. To see hidden files, use ls -a to list all files, including those files whose names begin with a period. Be careful not to remove dotfiles if you're not sure of their purpose.
The command syntax for ls is :

ls [ -aAcCdfFgilLqrstux ] filename 

If you use the ls command on a directory with many files, the display will probably scroll off the screen. To avoid this, you can "pipe" the display through the more command, just as with man pages. The Unix "pipe" symbol is a vertical bar (often a broken vertical bar on your keyboard). It means "take the command on the left, and use it as input to the command on the right". For example:

ls -la | more 

Which lists the content of the current directory, in long format (-l) and includes all files (-a), and sends the listing to the more command which displays the listing one screen at a time.

3. "cd" - and
    "mkdir"

Change Directory
Make Directory

The "change directory" command is used to switch from one directory to another. The purpose of having multiple directories is to enable you to easily organize your files. Your directory structure should resemble a filing cabinet, with folders (directories) for each set of files.
Using cd without a directory name following it will always return you to your home directory, no matter where you are in the Unix directories. To change to a subdirectory, for example one called "skiing", you would type:

cd skiing 

To "back up" a level in the directory structure from a subdirectory to its parent directory, you can use:

cd .. 

.. is a special directory which always links a directory backwards to its parent directory, you can see this directory with the ls -a command. There is a second special directory called . which always refers to the current directory.
The command syntax for cd is :

cd [directoryname] 

For more complete information on the cd command, try man cd.
The "make directory" command is used to create a new directory. As noted above, a directory serves to organize files in a manner to similar to a filing cabinet. However, unlike most filing cabinets, a single directory may contain several subdirectories. For example, to create a directory called "Banff":

mkdir Banff 

The command syntax for mkdir is:
mkdir directoryname   

4. "rm" and
    "rmdir"

Remove files
Remove Directories

The "remove" command is used to permanently delete your files from your directories. To remove a file named "whistler.ps" from the current directory:

rm whistler.ps 

To remove multiple files, use the remove command followed by the names of the files, separated by spaces. For example:

rm file1 file2 file3 

The command syntax for rm is:

rm [-fir] filename 

The "remove directory" command is used to delete your directories. The directory you wish to remove must be empty before using the rmdir command. To remove a directory called "bigsky", you would type:

rmdir bigsky 

The command syntax for rmdir is:

rmdir directoryname 

To remove a directory that is not empty (and all of its contents) you can use the rm command with the -r (recursive) option. This will recursively remove all files from a directory (or subdirectories) and then remove the directory itself. Repeating the previous example:
rm -r bigsky 

5."cp"

Copy files

The "copy" command is used to make a copy of a file in the same or a different directory. If copying to the same directory the filename of the copy must be different. This is useful for making backups or working copies of files while leaving the originals alone. To copy the file tahoe.txt to a backup file tahoe.txt.bak in the same directory:

cp tahoe.txt tahoe.txt.bak 

To copy the file named "tahoe.txt" from your home directory to a directory named "goodskiing" (without changing the name):

cp tahoe.txt goodskiing 

If you wished to rename the copied file:

cp tahoe.txt goodskiing/newname.txt 

The command syntax for cp is:
cp [ -ip ] filename1 filename2