0% found this document useful (0 votes)
32 views

SQL Server

Database is a structured collection of data stored in a computer system. A database management system (DBMS) allows data to be easily accessed and organized, while a relational database management system (RDBMS) also enables the establishment of relationships between different tables of data. Key differences between DBMS and RDBMS include that RDBMS supports relationships between tables and multi-user access, while DBMS generally does not and is for single users.

Uploaded by

Vijaya Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

SQL Server

Database is a structured collection of data stored in a computer system. A database management system (DBMS) allows data to be easily accessed and organized, while a relational database management system (RDBMS) also enables the establishment of relationships between different tables of data. Key differences between DBMS and RDBMS include that RDBMS supports relationships between tables and multi-user access, while DBMS generally does not and is for single users.

Uploaded by

Vijaya Kumar
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

What is database

Database is a structured collection of records or data that is stored in a computer system. In order for a database to be truly functional, it must not only store large amounts of records well, but be accessed easily DBMSDatabase Management System RDBMS-Relational 7/6/12 Management System Database

Difference between DBMS and RDMS


The main difference between the dbms and rdbms is we can establish the relation between the tables in rdbms.in case of dbms we cannot establish relation between tables.

eg: dbms-->sysbase foxpro eg: rdms-->oracle,sql server only.

DBMS is for single user 7/6/12 RDBMS is for multi-user.

SQL server
SQL Server is a Relational Database Management System. Data is stored is Tables consisting of columns and rows. Tables can be linked, or Related, to one another. Tables and objects that belong to the same family or require similar security are collectively stored in a Database.
7/6/12

Versions of SQL server


SQL Server 2008 SQL Server 2005 SQL Server 2000 SQL Server 7 SQL Server 6.5

7/6/12

SQL Server Date Functions


GETDATE() Returns the current date and time DATEPART() Returns a single part of a date/time DATEADD() Adds or subtracts a specified time interval from a date DATEDIFF() Returns the time between two dates CONVERT() Displays date/time data in different formats
7/6/12

Mathematical Functions
ROW_NUMBER () : Returns the sequential number of a row within a partition of a result set RANK () : Returns the rank of each row within the partition of a result set

7/6/12

Aggregate Functions
Aggregate functions return a single value summarizing a given data set and they can operate on all other numeric data . Aggregate Functions are: Sum() Avg() Max() Min() Count()
7/6/12

Difference between Having and Where Clause


HAVING specifies a search condition for a group or an aggregate function used in SELECT statement.

HAVING can be used only with the SELECT statement. HAVING is typically used in a GROUP BY clause. When GROUP BY is not used, HAVING behaves like a WHERE clause.

A HAVING clause is like a WHERE clause, but applies only to groups as a whole, whereas the WHERE clause applies to individual rows.

A query can contain both a WHERE clause and a HAVING clause.

The HAVING clause is then applied to the rows in the result set. You can apply a HAVING clause only to 7/6/12

You might also like