CMPTR
3rd Edition
ISBN: 9781337681872
Author: PINARD
Publisher: Cengage
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
Select the best answer from the given choices:
Using the company schema, when creating the "works_on" table, the primary key should be
specified as
All of the answers are correct
primary key (essn, pno)
primary key (essn), primary key(pno)
primary key (essn) and primary key(pno)
Given the Employee, Class, and Training tables.
Employee
Emp_id (PK)
EM8765
Address
USA
Name
Phone
Email
Ali
ali@yahoo.com
nazire@gmail.com
katrina@gmail.com
lemi@hotmail.com
alican@yahoo.com
mustafa@hotmail.com
hasan@gmail.com
98733211
ЕМ3456
Nazire
Dubai
98764533
90857464
EM7658
Katrina
USA
EM1987
Lemi
USA
99663425
EM8009
Alican
UK
95583372
|EM7698
Mustafa
Dubai
Jordan
92234452
EM6666
Hasan
92123366
Class
Class_id (PK)
Class_name
Multimedia
Credit
СOM106
COM206
Database
сомз06
Public Speaking
9.
Training Table
Emp_id (FK)
EM8765
Date
Class_id (FK)
Result
05-May-2010
08-May-2011
08-Feb-2010
08-Feb-2010
соM106
Pass
EM3456
COM206
Pass
EM7658
сомз06
Fail
EM1987
сомзо6
Fail
28-Jan-2011
10-March-2012
EM8009
сомз06
Pass
EM7698
сом106
Fail
EM8765
08-May-2011
сOM206
Pass
Write the appropriate SQL queries
a) Get the address of employee whose name is Alican
b) Get the name and email of employees located in Dubai. Sort the results in
alphabetical order of name.
c) Show the count of employees…
Identify for each table, the followings: Foreign keys Candidate keys Primary key Alternate keys
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- CUSTOMERColumns = 7, Rows = 10 CustomerID LastName FirstName Address ZIP Phone Email 1 Shire Robert 6225 Evanston Ave N 98103 206-524-2433 Robert.Shire@somewhere.com 2 Goodyear Katherine 7335 11th Ave NE 98105 206-524-3544 Katherine.Goodyear@somewhere.com 3 Bancroft Chris 12605 NE 6th Street 98005 425-635-9788 Chris.Bancroft@somewhere.com 4 Griffith John 335 Aloha Street 98109 206-524-4655 John.Griffith@somewhere.com 5 Tierney Doris 14510 NE 4th Street 98005 425-635-8677 Doris.Tierney@somewhere.com 6 Anderson Donna 1410 Hillcrest Parkway 98273 360-538-7566 Donna.Anderson@elsewhere.com 7 Svane Jack 3211 42nd Street 98115 206-524-5766 Jack.Svane@somewhere.com 8 Walsh Denesha 6712 24th Avenue NE 98053 425-635-7566 Denesha.Walsh@somewhere.com 9 Enquist Craig 534 15th Street 98225 360-538-6455 Craig.Enquist@elsewhere.com 10 Anderson Rose 6823 17th Ave NE 98105 206-524-6877 Rose.Anderson@elsewhere.com EMPLOYEEColumns = 5, Rows = 5 EmployeeID LastName FirstName…arrow_forwardCUSTOMERColumns = 7, Rows = 10 CustomerID LastName FirstName Address ZIP Phone Email 1 Shire Robert 6225 Evanston Ave N 98103 206-524-2433 Robert.Shire@somewhere.com 2 Goodyear Katherine 7335 11th Ave NE 98105 206-524-3544 Katherine.Goodyear@somewhere.com 3 Bancroft Chris 12605 NE 6th Street 98005 425-635-9788 Chris.Bancroft@somewhere.com 4 Griffith John 335 Aloha Street 98109 206-524-4655 John.Griffith@somewhere.com 5 Tierney Doris 14510 NE 4th Street 98005 425-635-8677 Doris.Tierney@somewhere.com 6 Anderson Donna 1410 Hillcrest Parkway 98273 360-538-7566 Donna.Anderson@elsewhere.com 7 Svane Jack 3211 42nd Street 98115 206-524-5766 Jack.Svane@somewhere.com 8 Walsh Denesha 6712 24th Avenue NE 98053 425-635-7566 Denesha.Walsh@somewhere.com 9 Enquist Craig 534 15th Street 98225 360-538-6455 Craig.Enquist@elsewhere.com 10 Anderson Rose 6823 17th Ave NE 98105 206-524-6877 Rose.Anderson@elsewhere.com EMPLOYEEColumns = 5, Rows = 5 EmployeeID LastName FirstName…arrow_forwardSelect employees and managers with inner join USING MYSQL The Employee table has the following columns: ID - integer, primary key FirstName - variable-length string LastName - variable-length string ManagerID - integer Write a SELECT statement to show a list of all employees' first names and their managers' first names. List only employees that have a manager. Order the results by Employee first name. Use aliases to give the result columns distinctly different names, like "Employee" and "Manager". Hint: Join the Employee table to itself using INNER JOIN.arrow_forward
- Design by using come; -arrow_forwardPlease elaborate on the kind of details each of the four user groups need.arrow_forwardPlease help me as this is in regards to Oracle 12 database Question 7 IN SELECT statement you always add SELECT , FROM and WHERE keywords because without WHERE condition you wouldn't know which data you search Question 7 options: True False Question 8 What will the following statement return after execution? SELECT employeenumber, lastname, email FROM products ORDER BY employeenumber DESC and email; Question 8 options: The results are sorted first numerically and then alphabetically. The results are sorted first numerically from high to low and then alphabetically. The results are sorted first alphabetically and then numerically. The query returns an error. Question 9 Which clause would you use in a SELECT statement to limit the display to those employees whose salary is greater than 5000? Question 9 options: ORDER BY SALARY > 5000 GROUP BY SALARY > 5000 WITH SALARY > 5000 WHERE SALARY > 5000arrow_forward
- please use sql to answer the following question an erd has been provide Task 1: Creating a Logon Procedure The home page of the Brewbean’s Web site has an option for members to log on with their IDs and passwords. Develop a procedure named MEMBER_CK_SP that accepts the user ID and password as inputs, checks whether they match a valid logon, and returns the member first name+lastname and cookie value. The name should be returned as a single text string containing the first and last name. The head developer wants the number of parameters minimized so that the same parameter is used to accept the password and return the name value. (passwd Paramater as IN OUT use passwd as INPUT firstname||lastname as OUTPUT) Also, if the user doesn’t enter a valid username and password, return the value INVALID in a parameter named p_check. Test the procedure using a valid logon first, with the username rat55 and password kile. Then try it with an invalid logon by changing the…arrow_forwardUsing mysql client create a database named supermarket create a table named groceryitems in the supermarket database. Groceryitems table should have the following information : itemname, itemtype(i.e fruit, vegetable, pantry, meat, dairy etc), item description, price per unit, quantity available. Use appropriate data type for each of the columns. Itemname should be the primary key. Create a php page through which you can connect to the grocery database and you can insert information into the grocery table. The php page displays an interface , texboxes for itemname , textfield for item description, radio button for item type, text box for unit price , text box for quantity available and a submit button. Once you click the submit button the php file should first validate the data types inserted. After successfully adding a row of information the same php page should show a confirmation message about successful information in the table. Make the radio buttons used for…arrow_forwardOpen the Missing Addresses query in Design view. Add a new column to determine if a customer does not have an address on file. If the customer’s Address is null, it should display Missing. If not, it should display nothing. Name the column AddressPresent. Add criteria of Missing to the column you just created, so only the customers missing an address display. Move the AddressPresent field so it appears between PhoneNumber and Address. Run the query. Ensure only customers with null Address fields display. Save and close the query.arrow_forward
- However, there IS a relationship depicted in the ER diagram between the PROMOTION and the BOOKS tables. What kind of relationships do you think it is? Which commands did you use and what the results . you see?arrow_forwardSQL DO NOT COPY FROM OTHER WEBSITES Upvote guarenteed for a correct and detailed answer. Thank you!!!arrow_forwardquestion 6 use the picture below to answer the following question Add a ZIP field/column to the customer table.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:CengageA Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology PtrProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning