Vous êtes sur la page 1sur 4

NUML

(National University of Modern Languages)


BSSE – 4 (Morning)

Submitted to: Sir Aqib


Submitted by: Ahmad Ali Saim
Lab Report# week :1
Date of Submission: 18-2-2018
Roll No: 11352
DBMS :
DBMS means computerized form of data that allows users to create ,update delete and share the
data is called data base management system.

Types of database :

Data bases are of the following types

1. Single user database.(desktop db)


2. Multi user database.(workgroup db )
3. Distributed database.

Tables :
Data in the databases is in the form of tables which consists of rows and coloumns.A data has a
specified numbers of coloumns but the rows can be many. For example..

Following are some examples of database storage program that are used for creating databases.

 Ms Acess
 My sql
 Oracle
 Ms sql server

Commands that are used for various purposes in databases.

These statements or commands are called queries in sql language.


1. Select statement :

To select all data from database for display

Select * from nameoftable

2. Comment symbol in sql :


Following symbol is used for commenting in sql ( -- )

3. To select multiple coloumns from a given table:


Eg ; Select id,name from bsse4s

NOTE : Aestersik sign is used for all data (*)

4. Ascending or desecending order in coloumns :


Eg: select * from bsse4s order by semester asc.
This statement will arrange the semester coloumn into ascending order.

5. Display all the tables already built in a dbms platform :


Following query is used to display all the tables that have been already built in a dbms
platform

Select tablename from user_table

6. Alias statement :
If we want to display anything otherthan the actual name of coloumn for temporarily we
use the following statement

Select a_name as NAME from coloumn_name


This statement means that the a_name which is the name of coloumn is changed with
Name but in the database it is still stores as a_name.

7. To display the data of table in combined form

Select id||name||fee from bsse4s


Id||name||fee

2Maria60000

1Ali500000

3ahmad2000000
8. For display of space
To display the space we user the single dual commas in sql
Eg ;
Select id ||’ ‘||name||’ ‘ ||fee from bsse4s

Data filtering in the databases:


we can use the sql queries to filter the data in databases using where clause

For example :
Select * from bsse2018 where semester = 4
This statement in sql will display datal of only 4 th semester students from bsse4s table

Vous aimerez peut-être aussi