67% found this document useful (3 votes)
882 views4 pages

Dbms Lab Report 1

The document discusses database management systems (DBMS). It defines DBMS as a computerized form of data that allows users to create, update, delete and share data. It mentions three types of databases: single user, multi user, and distributed. Data in databases is stored in tables which consist of rows and columns. Examples of database storage programs include MS Access, MySQL, Oracle, and MS SQL Server. The document then lists and explains eight SQL commands used for various purposes like selecting, commenting, ordering, displaying tables, using aliases, combining fields, and filtering data using a WHERE clause.

Uploaded by

ahmad ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
67% found this document useful (3 votes)
882 views4 pages

Dbms Lab Report 1

The document discusses database management systems (DBMS). It defines DBMS as a computerized form of data that allows users to create, update, delete and share data. It mentions three types of databases: single user, multi user, and distributed. Data in databases is stored in tables which consist of rows and columns. Examples of database storage programs include MS Access, MySQL, Oracle, and MS SQL Server. The document then lists and explains eight SQL commands used for various purposes like selecting, commenting, ordering, displaying tables, using aliases, combining fields, and filtering data using a WHERE clause.

Uploaded by

ahmad ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like