Premium Essay

Comp

In:

Submitted By ashmita
Words 867
Pages 4
Relational Database Design

SQL GRANT REVOKE Commands
DCL commands are used to enforce database security in a multiple user database environment. Two types of DCL commands are GRANT and REVOKE. Only Database
Administrator's or owner's of the database object can provide/remove privileges on a database object.

SQL GRANT Command
SQL GRANT is a command used to provide access or privileges on the database objects to the users.
The Syntax for the GRANT command is:

GRANT privilege_name
ON object_name
TO {user_name |PUBLIC |role_name}
[WITH GRANT OPTION];



privilege_name is the access right or privilege granted to the user. Some of the access rights are ALL, EXECUTE, and SELECT.



object_name is the name of an database object like TABLE, VIEW, STORED
PROC and SEQUENCE.



user_name is the name of the user to whom an access right is being granted.



PUBLIC is used to grant access rights to all users.



ROLES are a set of privileges grouped together.



WITH GRANT OPTION - allows a user to grant access rights to other users.

GRANT SELECT ON employee TO user1; This command grants a
SELECT permission on employee table to user1.You should use the WITH GRANT option carefully because for example if you GRANT SELECT privilege on employee table to user1 using the WITH GRANT option, then user1 can GRANT SELECT privilege on employee table to another user, such as user2 etc. Later, if you REVOKE the SELECT privilege on employee from user1, still user2 will have SELECT privilege on employee table.
For Example:

SQL REVOKE Command:
The REVOKE command removes user access rights or privileges to the database objects. The Syntax for the REVOKE command is:
REVOKE privilege_name
ON object_name
FROM {user_name |PUBLIC |role_name}

Introduction to Database

1

Relational Database Design
REVOKE SELECT ON employee

Similar Documents

Premium Essay

Comp

.... Your employer, Welgreen Pharm, is a large manufacturer and distributor of generic, over-the-counter healthcare products. Its corporate campus consists of three buildings within two blocks of each other in the city of Chicago. Each building houses approximately 100 employees, including those in the following departments: Administration, Accounting, Research, Legal, Quality Control, Order Fulfillment, and Production. In addition, Welgreen Pharm owns a large distribution warehouse approximately four miles away from the headquarters. Until now, its networks have relied entirely on wired connections. The company’s CIO (chief information officer) decided long ago that she would wait until wireless technology “settled down” before investing in it. ⦁ What can you tell her about the wireless standards that might convince her that now is the time to adopt wireless technology? There are many advantages to wireless networks. Some advantages of a wireless network are convienece, mobility, ease of set up, the cheaper cost in the long run, and with the newest 802.11 standards the troughput could be just as good or even better than some ethernet connections without the hasstle of all the wires. ⦁ Also, what can you tell her to convince him that wireless networking could improve the company’s productivity? With the implication of a wireless network it opens up more options for employees such as the ability to use laptops and their smartphones to complete work so it can be...

Words: 283 - Pages: 2

Free Essay

Comp

...The establishment of an online community is widely held as the most important prerequisite for successful course completion and depends on an interaction between a peer group and a facilitator. Beaudoin reasoned that online students sometimes engage and learn even when not taking part in online discussions. The context of this study was an online course on web-based education for a Masters degree in computer-integrated education at the University of Pretoria. We used a mixed methodology approach to investigate how online activity and discussion postings relate to learning and course completion. We also investigated how student collaborative behaviour and integration into the community related to success. Although the quantitative indices measured showed highly significant differences between the stratifications of student performance, there were notable exceptions unexplained by the trends. The class harboured a well-functioning online learning community. We also uncovered the discontent students in the learning community felt for invisible students who were absent without reason from group assignments or who made shallow and insufficient contributions. Student online visibility and participation can take many forms, like read-only participants who skim over or deliberately harvest others’ discussions. Other students can be highly visible without contributing. Students who anticipate limited access due to poor connectivity, high costs or other reasons can manage...

Words: 315 - Pages: 2

Free Essay

Comp

...COMPUTER OGRANIZATION AND ASSEMBLY LANGUAGE (COAL) PROJECT: TOPIC: ECLIPSE THE UNIVERSITY OF LAHORE Submitted to: PROF KHURRA BAJWA Submitted by: 1. M.FAHAD SHAHZAD BCS02133518-G 2. IQRA ARSHAD BCS02133027-G 3. MALIKA ARIF BCS02133495-G 4. DANISH ADREES BCS02133042-G 5. ALI WARRAICH BCS021123133-G DEFINATION: 1. In computer programming, Eclipse is an integrated development environment (IDE). It contains a base workspace and an extensible plug-in system for customizing the environment. Written mostly in Java, Eclipse can be used to develop applications. By means of various plug-ins, Eclipse may also be used to develop applications in other programming languages: Ada, ABAP, C, C++, COBOL, Fortran, Haskell, JavaScript, Lasso, Lua, Natural, Perl,PHP, Prolog, Python, R, Ruby (including Ruby on Rails framework), Scala, Clojure, Groovy, Scheme, and Erlang. It can also be used to develop packages for the software Mathematica. 2. The Eclipse software development kit (SDK), which includes the Java development tools, is meant for Java developers. Users can extend its abilities by installing plug-ins written for the Eclipse Platform, such as development toolkits for other programming languages, and can write and contribute their own plug-in modules. ------------------------------------------------- ------------------------------------------------- History: Eclipse was inspired by the Smalltalk-based VisualAge family of integrated development...

Words: 2025 - Pages: 9

Free Essay

Comp

...Understanding the developmental milestones in infants and toddlers are important in many different ways. First and foremost, developmental milestones can be used as an example on how a child should be developing. Although all children will develop at different rates, the developmental milestones are still an example for the typical child. If a parent is aware of the developmental milestones their child should be reaching at a particular time, they can assure the best physical and mental health for their child. Also, if a child is not meeting the developmental milestones at a reasonable amount of time, this can serve as an early alert so that the parents can immediately get help. Knowing the developmental milestones are not only beneficial to the parents, but to doctors as well. If the doctors knows what a child should be doing, but aren’t able to do, then the doctor can take appropriate precautions in finding a cure for the child. Knowing the developmental milestones of a child can be helpful when attempting to teach a child as well. For example, a four month child would not be able sit down a read a book, because they are not to that stage yet. But, if a five year old child cannot sit down and read a book, the parent would then know that something might not be right. Sigmund Freud, Jean Piaget, and Erik Erikson all had different viewpoints on the developmental stages of children. Freud believed that a child’s personality developed while they were discovering the world in different...

Words: 308 - Pages: 2

Free Essay

Comp

...Dismissal without Cause (Ch. 14) (for 1% - must be handed in in person at beginning of next class (Nov. 30th ) Student Name: Hayley Rioux 1. Review the Honda Canada Inc., v. Keays case, plus discussion, found on pp. 455 - 458 of the textbook) 2. Summarize the facts of the case in 2 -3 sentences: Honda has redefined many aspects of the law of wrongful dismissal damages. These include determining reasonable notice, moral damages/aggravated damages, punitive damages, the duty to accommodate and the employers’ entitlement to deal with employees directly. 3. Identify the relevant issue: Keays had worked for Honda and was enrolled in the their disability program. Keays could miss work as long as he provided a doctor’s note. When the tone of the notes became more “cryptic” they had stopped accepting these notes. Keays was given set terms, and felt as if they were unfair, he was then terminated and Keays sued on grounds for wrongful dismissal. 4. The Supreme Court of Canada decision overturned several parts of the trial and Court of Appeal decisions. Describe three of the ways in which the Supreme Court of Canada’s decision differed from the decisions of the two lower courts: The duty to accommodate- They must monitor employees who are regularly absent from work. The employer must recognize the illness of the employee to see what specific accommodations that employee will need. Employees entitlement to deal with an employer directly- An employer can refuse to...

Words: 357 - Pages: 2

Premium Essay

Comp

...Project Purpose This is a comprehensive project that you will work on throughout the course. You will work in groups to solve a problem using the theories, formulas, and concepts from this class. Course Objectives Execute problem-solving actions appropriate to completing a variety of case study assignments. Apply critical reading to identify the meaning of information in a problem statement. Apply analytical and logical thinking to extract facts from a problem description and determine how they relate to one another and to the problem(s) to be solved. Provide symbolic, verbal, and graphical interpretations of statements in a problem description. Apply analytical tools for evaluating the causes and potential implications of a problem. Generate potential solutions to a problem and determine the best course of action with regard to effectiveness, efficiency, and mitigation of risks. Design methodology for implementing problem solution(s). Develop tools for evaluating implementation of problem solution. Required Resources Textbook ITT Tech Virtual Library Project Logistics Select ONE of the following three projects: A, B, or C. You may work individually or in a group. Because of the workload, working in groups is recommended. Working as an individual on this project is discouraged. Project Deliverables Four written reports Final report Project presentation (Unit 10) Each written report must have the following items: APA formatting, double-spaced...

Words: 1859 - Pages: 8

Free Essay

Comp

...COMP101 – Problem Solving with Computing Homework - WEEK 12 [30 points] This is further review of some of the material from Chapter 6, some simple steps in coding using JavaScript and the repl.it website, and lectures from class. No credit for answers that are copies or near verbatim transcripts – please use your own words[1] and document sources where appropriate. Chapter 7 Answer the following questions: 1. JavaScript Debugging Exercises [1 point each, 5 points total] The snippets of JavaScript below contain syntax errors and/or logic errors. Identify the errors and insert your corrected code. a. function main() { var num1 = getNumber(); var num2 = getNumber(); } function getNumber() { var input = Number(prompt("Enter a number")); } main(); b. function main() { var total = 0; for (var ctr = 0; ctr < 10; ctr++) { total = computeTotal(total); } } function computeTotal(total, ctr) { total = total + ctr; return total; } main(); c. function main() { var playerName1; var playerName2; playerName1, playerName2 = getPlayerNames(); } function getPlayerNames() { var name1 = prompt("Enter the name of player1"); return name1; var name2 = prompt("Enter the name of player2"); return name2; } main(); d. module main() ...

Words: 2288 - Pages: 10

Free Essay

Comps

...Intelligence for the Twenty-First Century ALAN DUPONT Strategic discourse over the past decade has been dominated by a debate over the nature of future warfare and whether or not there is a ‘revolution in military affairs’ (RMA). Supporters contend that developments in military technology, especially precision guidance and high-speed data processing, in conjunction with advances in doctrine and strategy, will fundamentally transform the way in which future wars will be fought and privilege RMAcapable forces in the contest to achieve battlefield dominance.1 Sceptics, on the other hand, regard the RMA as being more evolutionary than revolutionary, and argue that many of the technical advances associated with the RMA do not necessarily presage a paradigm shift in warfare.2 However, all agree that timely, accurate and useable intelligence will be critical to the successful conduct of war in the twenty-first century, perhaps more so than in any previous era. It is surprising, therefore, how little academic attention has been devoted to the changes that are taking place in the technology, management and integration of the intelligence systems that will underpin any RMA. It is the contention of this article that the transformation of intelligence architectures, particularly in the West, is no less profound than that of the weapons, platforms and warfighting systems they are designed to support and enhance. Moreover, the cumulative weight of the changes in prospect will redefine the...

Words: 11896 - Pages: 48

Premium Essay

Comp

...Question 11 (3 points) Question 11 Unsaved The figure above shows the corresponding K-Map of the function F(X1,X2,X3). What is the expression corresponding to the minimum cost of F? Question 11 options: X1'X2'X3'+X1'X2X3'+X1X2'X3+X1X2X3 X1'X2'+X1X3 X1'X3'+X1X2 None of the above Save Question 12 (3 points) Question 12 Unsaved The figure above shows the K-map of a four variable f(A,B,C,D). What is true about f? Question 12 options: Only a sum-of-products expression gives the minimum solution. Only product-of-sums expression gives the minimum solution. Either a sum-of-products or a product- of-sums gives minimum cost expression. A minimum solution for F will have at least three terms with three literlas. Save Question 13 (3 points) Question 13 Unsaved In the K-Map of the figure above, which of the following is true? Question 13 options: a) There are 5 prime implicants and not all are essential b) There are two prime implicants of four squares and two prime implicants of two squares. c) All prime implicants are essential d) Both answers b) and c) are correct e) None of the above Save Question 14 (3 points) Question 14 Unsaved The function f(A,B,C,D) is given in minterm expression. Which of the options given corresponds to the minimum expression of f(A...

Words: 472 - Pages: 2

Premium Essay

Comps

...10 Qualitative Research Methods in Psychology Deborah Biggerstaff Warwick Medical School University of Warwick, Coventry UK 1. Introduction In the scientific community, and particularly in psychology and health, there has been an active and ongoing debate on the relative merits of adopting either quantitative or qualitative methods, especially when researching into human behaviour (Bowling, 2009; Oakley, 2000; Smith, 1995a, 1995b; Smith, 1998). In part, this debate formed a component of the development in the 1970s of our thinking about science. Andrew Pickering has described this movement as the “sociology of scientific knowledge” (SSK), where our scientific understanding, developing scientific ‘products’ and ‘know-how’, became identified as forming components in a wider engagement with society’s environmental and social context (Pickering, 1992, pp. 1). Since that time, the debate has continued so that today there is an increasing acceptance of the use of qualitative methods in the social sciences (Denzin & Lincoln, 2000; Morse, 1994; Punch, 2011; Robson, 2011) and health sciences (Bowling, 2009; Greenhalgh & Hurwitz, 1998; Murphy & Dingwall, 1998). The utility of qualitative methods has also been recognised in psychology. As Nollaig Frost (2011) observes, authors such as Carla Willig and Wendy Stainton Rogers consider qualitative psychology is much more accepted today and that it has moved from “the margins to the mainstream in psychology in the UK.” (Willig & Stainton...

Words: 16075 - Pages: 65

Premium Essay

Comp

...Q1) List a dozen above the line deductions and explain the rule regarding moving expenses. List 7 itemized deductions from schedule A. Above the line deductions: a) Educators expenses b) Certain business expenses of reservists, performing artists, etc. c) Health savings account deduction d) Moving expenses e) Deductible part of self-employment tax f) Self-employed SEP, SIMPLE, and qualified plans g) Self-employed health insurance deduction h) Penalty on early withdrawal of savings i) Alimony paid j) IRA deduction k) Student loan interest deduction l) Tuition and fees deduction m) Domestic production activities deduction n) Jury duty repayments Below the line deductions (itemized deductions): a) Medical and dental expenses b) Taxes paid c) Interest paid d) Gifts to charity e) Casualty and theft losses f) Job expenses and certain miscellaneous deductions g) Other miscellaneous deductions Moving expenses: 1) Deduction for job-related relocation 2) Moving expenses are deductible to arrive at AGI to the extent the expenses are not reimbursed or paid for by the taxpayer’s employer. a) If expenses exceed reimbursements only the qualified expenses in excess of the reimbursement are deductible. b) If reimbursements exceed expenses, the excess is included in income 3) Qualifications: a) The individual’s new principal place of work is at least 50 miles farther from the former...

Words: 2216 - Pages: 9

Premium Essay

Comp

...EN1420-Composition 2 Unit 4 Assignment 1 Toulmin Analysis Question A: What is the claim? Is it explicitly stated, or did you have to infer it? Part 1: What is the Claim? The author refers to farming as a minority lifestyle, and believes that it is overrepresented in early childhood education. In short, we live in an advanced society, thus children should no longer be educated on the inner workings of farm life. Part 2: Is it explicitly stated, or did you have to infer it? No, I did not have to read between the lines discover the claim of the essay. The author was clear about the claim she made. Question B: What are some examples of support? The author uses a single episode of the television show “Blue’s Room” to support the claim. There was no other outside source to back up the author’s claim. Question C: What are the author’s warrants? Does the author supply backing for the warrants? If yes, how? Part 1: What are the author’s warrants? The author believes that educating children about farm life is a waste of time. She goes on to state that children would be better off educated on A.T.M.’s and ring tones. She then refers to a portion of the “Blue’s Room” farming episode as “shocking” in which a puppet demonstrates how to milk a cow. Part 2: Does the author supply backing for the warrants? No, she does not. The essay is filled with her opinions and supposition with no backing or proof. Question D: Do you share the author’s warrants? Do you have conflicting...

Words: 548 - Pages: 3

Premium Essay

Comp

...lts and Discussion The heart of a laboratory report is the presentation of the results and the discussion of those results. In some formats, "Results" and "Discussion" appear as separate sections. However, P.B. Medawar [1979] makes a strong case that the two should appear together, particularly when you have many results to present (otherwise, the audience is faced with a "dump" of information that is impossible to synthesize). Much here depends upon your experiment and the purpose of your laboratory report. Therefore, pay attention to what your laboratory instructor requests. Also, use your judgment. For instance, combine these sections when the discussion of your first result is needed to understand your second result, but separate these sections when it is useful to discuss the results as a whole after all results are reported. In discussing the results, you should not only analyze the results, but also discuss the implications of those results. Moreover, pay attention to the errors that existed in the experiment, both where they originated and what their significance is for interpreting the reliability of conclusions. One important way to present numerical results is to show them in graphs. Sample Results and Discussion This section analyses the results of the experiment. The experiment went as expected with no unusual events that would have introduced error. The voltages as measured for the pressure and temperature transducers appear in Table A-1 of the Appendix...

Words: 562 - Pages: 3

Premium Essay

Comp

...Organizational Objectives and Total Compensation in Different Markets Juan Holguin University of Phoenix HRM/324, Total Compensation. September, 14 2015 Rebekah Benson Human resources (HR) consultant. The factors that will have an effect on the organization are particularly the federal contractor. The areas of compensation are well regulated it, and they have established controls parameters that will have a final effect in the organization production. The McNamara service contract Act requires contractors that have contracts over $2500 to pay more than the prevailing wage (United States Department of Labor, 2009). In contrast, all contractors that aren’t part of the Federal Reserve will have a fair payment over the minimum wage, adding over time and benefits. As we all know, it is necessary to name the Davis Bacon Act as the one that would have an effect over the contractor legislation. Davis Bacon Act would have an effect on contracts of repair and alteration on public buildings and places that belong to the city. As the Act has been applied to the contractor, the organization will be forced to adjust its compensation, having to safety secure each individual by making sure the wages keeps over the base paid, and the benefits will remain active as the organization makes sure every employee have the same treatment. (Department of Labor, 2009). Davis-Bacon will ensure every employee gets corporate benefits, as they keep the employee...

Words: 548 - Pages: 3

Premium Essay

Comp

...CHAPTER 1 – STRATEGIC MANAGEMENT STRATEGY Strategy: formulation of organizational missions, goals, objectives and actions plans (how the organization intends to achieve its goals Mintzberg’s 5 P’s of Strategy: i. Plan: intended course of action a firm has selected to deal with a situation ii. Purpose: consistent stream of action that sometimes are the result of a deliberate plan and sometimes the result of emergent actions based on reactions to environmental changes or shifting of assumptions iii. Ploy: specific manoeuvre at the tactical level with a short time horizon iv. Position: the location of an organization relative to its competitors and other environmental factors v. Perspective: gestalt or personality of the organization HR Planning Notebook 1.1 – Description of Strategy Strategy: declaration of intent (considered as both plan and purpose) Strategic Intent: tangible corporate goal; point of view about the competitive positions a company hopes to build over a decade Strategy Formulation: entire process of conceptualizing the mission of an organization, identifying the strategy, and developing long-range performance goals Strategy Implementation: activities that ees and managers of an organization undertake to enact the strategic plan and achieve the performance goals Objectives: the end, the goals Plans: product of strategy, the means to the end Strategic Plan: written statement that outlines the future goals of an organization...

Words: 19138 - Pages: 77