Management Information System Assignment File
Management Information System Assignment File
Management Information System Assignment File
SUBMITTED AT:
DELHI SCHOOL OF PROFESSIONAL STUDIES & RESEARCH
ROHINI, NEW DELHI-85
[AFFILIATED TO GGSIPU-NEW DELHI]
INDEX
S.NO. CONTENT Pg No. T.SIGN
04 Q.No.4 6
05 Q.No.5 7
06 Q.No.6 8-10
07 Q.No.7 11-13
08 Q.No.8 14-16
10 Diagram of Organisation 18
Question 1: Introduction to SQL. Explain what are different types of data types in SQL.
Ans . SQL stands for Structured Query Language. It is designed for managing data in a relational
database management system (RDBMS).It is pronounced as S-Q-L or sometime See-Qwell. SQL
is a database language, it is used for database creation, deletion, fetching rows, and modifying
rows, etc. SQL is used to create new databases, tables and views. It is used to insert records in a
database. It is used to update records in a database. It is required to delete records from a
database. It is required to retrieve data from a database.
1) CHAR- A fixed length string (can contain letters , numbers, and special characters). The size
parameter specifies the column length in characters can be from 0 to 255. Default is 1.
2) VARCHAR - A variable length string (can contain letters, numbers, and special characters).
3) BOOLEAN - The BOOLEAN data type supports the storage of two values TRUE AND
FALSE.
4) INTEGER- The INTEGER data type accepts numeric values with an implied scale of zero.
5) DECIMAL - The DECIMAL data type accepts numeric values, for which you may define a
precision and a scale in the data type declaration.
6) FLOAT - The FLOAT data type accepts approximate numeric values, for which you may
define a precision up to a maximum of 64. If no precision is specified during the declaration, the
default precision is 64. Attempting to assign a value lager than the declared precision will cause
an error to be raised.
Ans . Data Definition language is one of the subcategories of SQL. It is used to define and work
with the database structure. This includes the attributes within each table, the name of each table,
the name of the database and the connection of keys between tables.
1) CREATE COMMAND- used to create the databases, the tables, and the columns within each
table. Within the create statement we also define the data type of each column. A data type is
literally the type of data we are supposed to store within each column, whether it be an integer, a
date, or a string.
2) ALTER COMMAND- used to alter existing database structures. This includes adding
columns and more.
Ans . Data Manipulation Language is used to work with the actual data within the database. If
we looked at an example with a users table, the table is created with DDL while the value “Caleb
Curry” is entered using DML.
1) SELECT- This is used to select data from our database. We first SELECT AND then we say
what columns to select. After we say what columns, we specify what tables using FROM. After
we select what columns and what tables we can limit our results using a WHERE clause.
3) DELETE- This is used to delete values(the database structure stays the same, only inserted
values are removed).
Question 4: Create table customer(c_id, c_name, address, city, pincode, country) insert atleast
10 values. Display the table.
A. EID,ENAME,DESG,BRANCH,SALARY,ADDRESS.
B. INSERT 10 RECORDS
Question 7: Create the following table AND PERFORM SQL COMMANDS STUDENT
(ROLL_NO, NAME, AGE, COURSE, MARKS).
4) Find out name, course, marks from student order by marks asc.