SQL Statements With Aggregation and Filtering
SQL Statements With Aggregation and Filtering
and filtering
10248 90 5 1996-07-04 3
10249 81 6 1996-07-05 1
10250 34 4 1996-07-08 2
• And here there is a shippers table with the following data
• ShipperI ShipperName
1 Speedy Express
2 United Package
3 Federal Shipping
3 Antonio Moreno Antonio Moreno Mataderos 2312 México D.F. 05023 Mexico
Taquería
• The BACKUP DATABASE statement is used in SQL Server to create a full back up
of an existing SQL database.
• Syntax
• BACKUP DATABASE databasename TO DISK = 'filepath';
•• Backup with differential
• A differential backup reduces the backup time (since only the changes are
backed up).
• The following SQL statement creates a differential back up of the database
"testDB":
• Example: BACKUP DATABASE testDB TO DISK = 'D:\backups\testDB.bak' WITH
DIFFERENTIAL;