1)proof the following rule by using university database
sigma <condition1>(sigma < condition2>
(R)) = sigma
<condition2>
(sigma < condition1>
(R)) .
2)proof the following rule by using university database
sigma <cond1>(sigma < cond2>
(sigma <cond3>(R))
= sigma <cond1>
AND < cond2> AND < cond3>(R)))
10. display the product of the product with the largest stock level
Write a trigger for the Product table to ensure the list price can never be raised more than 15 Percent in a single change. Modify the above trigger to execute its check code only if the ListPrice column is updated (Use AdventureWorks Database).
Write a procedure supply name information from the person.person table and accepting a filter for the first name Alter the above store procedure to supply default value if user does not enter any value(use AdventureWorks)
Write a procedure supply name information from the person.person table and accepting a filter for the first name
Polly Pipe is a water sports provider and installer based in Braintree, England. They needyou to design and implement a database that meets the data requirements. These necessitiesare defined in this scenario and below are samples of the paper records that the Polly Pipepreserves.
Below are examples of paper records that Polly Pipe currently maintains.
Staff Management Record
Staff Number
Name
Type
SHA1
Dave Clark
Plumber
SHA8
John Smith
Installation Manager
SHA2
Freddy Davies
Aquatics installer
SHA11
McCloud
Aquatics installer
SHA23
Satpal Singh
Plumber
SHA66
Winstn Kodogo
Aquatics installer
SHA55
Alison Smith
Brick Layer
Equipment Type Table
Type
Equipment
Tanks
20 gallon tank, 50 gallon tank, 100 gallon tank, 200 gallon tank
Thermostats
Standard, Super
Air Pumps
Standard, Super
Filters
Air driven, Undergravelb
please help
Get the number of videos released in each year
Categories the performance of all the videos released by the motivation grid channel (Id=350)
create table guest (
guestfname varchar(50) not null,
guestlname varchar(50) not null,
guestphone number(10),
guestadd varchar,
guestID varchar(10) not null,
constraint pk_bill primary key (guestphone),
references room (guestID)
);
When I run it says missing left parenthesis Why??
Directions: Give an example on how to illustrate the use of the following SQL DDL Commands.
1. Create a database using the CREATE DATABASE command.
2. Create a database table using the CREATE command.
3. After a table in SQL using the ALTER command, and show how to add new column to the existing table.
4. List the content of a table using the SELECT columnist command.
5. How to update table rows using the UPDATE command.
6 Delete a database in SQL using the DROP DATABASE command.
7.Delete a table in a database.