Match the keyword with its function
|
|
Answer:------------
Makes something new, typically a table ===> O. CREATE
Provides values to a table ====> M. INSERT INTO
Declares a constraint on a table ===> K. CHECK
Chooses or reorders columns ===> Q. SELECT
Declares which tables are present ===> S. FROM
Identifies records of interest ===> I. WHERE
Renames either a column or a table ====> B. AS
Combines two tables or queries with equivalent structure. ===> L. UNION
Finds records that are shared between two tables or queries.. ===> D. INTERSECT
Determines items from a table or query that are not in the other table or query. ===> j. EXCEPT/MINUS
Extends records from one table (at the beginning) with another over a common attribute. ==> P. LEFT JOIN
Extends data from one table (at the end) with data from another table over a common attribute. ===> T. RIGHT JOIN
Attempts to match up data over a common attribute, displaying the matched data only.===> A. INNER JOIN
Attaches data together over a common attribute (if it exists or not) and shows all data in both tables.===> F.OUTER JOIN
Tries to mimic a text pattern. ===> H. Like
Declares a data entry linkage between two tables. ===> C. FOREIGN KEY
Declares the identifier of record for a table. ===>R. PRIMARY KEY
The value cannot be replicated, but it is not indexed. ===> L. UNIQUE
Condition applying to an aggregated group. ===> E. HAVING
Used to facilitate conditional aggregation. ===> N. GROUP BY
Match the keyword with its function Makes something new, typically a table Provides values to a...
You will develop an E-Commerce database used to maintain
customers, products and sales information. You are required to 1)
gather and analyze requirements 2) design logical structure of the
database 3) create stored procedures to develop the tables and
insert the data 4) write SQL statements for data extraction and
reporting.
Throughout the course of this semester you have analyzed the
requirements for an eCommerce database, designed and developed your
database. As a class we have gone through the process...
Summarize these pages in your own style and you have to
include in your report some figures highlighting the relation
between these operations.
Basic AGGREGATE functions (Revision) COUNT: returns the number of tuples, which meet the specified condition: SELECT COUNT(DISTINCT Dept) AS Num_Depts FROM subject: SUM: returns the sum of the values in a specified column (i.e. numeric column) SELECT COUNT(*) AS hi_sal, SUM(salary) FROM Lecturer WHERE Salary > 4500 MIN: returns the minimum value in a specified column (numeri...
Here is the P4 university database ---Drop tables --Drop Table FACULTY Cascade Constraints; --Drop Table OFFERING Cascade Constraints; --Drop Table STUDENT Cascade Constraints; --Drop Table COURSE Cascade Constraints; --Drop Table ENROLLMENT Cascade Constraints; Create Table STUDENT( Std_ID NUMBER(3) Constraint Student_STD_ID_FK PRIMARY KEY, Std_FN Varchar2 (9), Std_LN Varchar2 (8) , Std_City Varchar2 (10), Std_State Varchar2 (4), Std_Zip Number (5), Std_Major Varchar2 (6), Std_Class Varchar2 (3), Std_GPA NUMBER (3,2)); ---Insert records into Student Insert Into STUDENT Values( 101, 'Joe', 'Smith','Eau Clare','WI',18121,'IS','FR',3.8); Insert...
QUESTION 8 Which layer of the TCP/IP hierarchy presents incoming messages to the computer user? a. Network b. Link c. Transport d. Application 2.5 points QUESTION 9 A relational database is a collection of one or more tables that are related by key values. True False 2.5 points QUESTION 10 Which standards organization produced the OSI reference model for internet communication? a. IEEE b. ISO c. ANSI 2.5 points QUESTION 11 Which of the following is used...
The employee is table, the best candidate for primary key is Select one: a. Department ID b. Employee hiredate c. Employee ID d. Employee salary Question 2 A primary key can be composed of more than one attribute. Select one: True False Question 3 A foreign key allows you to join two tables. Select one: True False Question 4 Given two tables, department (dept_id, dept_location, dept_name) and EMPLOYEE(emp_id, emp_name, emp_dept_id, emp_name, emp_salary), which attribute (column) is the foreign key? Select...