8. SQL statement: SELECT ROUND (554.356, 2), ROUND (554.356, -1), ROUND (554.356, 2) FROM DUAL; will produce the following output respectively. А. ROUND (554.356, 2) ROUND (554.356, -1) ROUND (554.356, -2) 554.36 550 600 ROUND (554.356, 2) ROUND (554.356, -1) ROUND (554.356, -2) 554.35 550 600 С. ROUND (554.356, 2) ROUND (554.356, -1) ROUND (554.356, -2) 554.36 554 500 D. ROUND (554.356, 2) ROUND (554.356, -1) ROUND (554.356, -2) 554.36 550.356 600.356 B.
Q: means that all services required by the user should be defined Select one: O a. Bid O b. Consistency…
A: I have given an answer in step 2.
Q: Bias values are subject to iterative adjustment O True O False
A: To state true or false for the statement " Bias values are subject to iterative adjustment".
Q: Write a program to perform the following function: • Ask users to enter weight and height • Display…
A: Your C program is given below as you required with an output.
Q: In SQL statement, alias is used for which purpose? O a. retrieving information from the database O…
A: Option a is wrong. Aliases are not used to retrieve information from the database Option b is wrong.…
Q: An RPGLE payroll program has embedded SQL statement to find out how many records are in the…
A: Answer: The most prevalent explanations are as follows: The name of a member is required. QRPGLESRC…
Q: What is the main difference between UNION and UNION ALL?
A: Question. What is the main difference between UNION and UNION ALL? Answer. UNION and UNION ALL are…
Q: Assume that you have a product code that has the following format: XXXXNNN Where X is a character…
A: Below is the detailed PL/SQL program to separate the code into its two parts as shown in the above…
Q: The C++ ___ operator returns dynamically allocated memory to the system for reuse. return remove…
A: The dynamic memory allocation concept is used to reduce the memory wastage and here the memory…
Q: #include using namespace std; void transaction(double&, double, char&, int); int main() { double…
A: Given C++ program contains a function transaction and many variables are initialised in this…
Q: A Trigger is executed
A: ANSWER: Trigger A trigger is an extraordinary kind of put away technique that guarantees referential…
Q: Assume that you have a product code that has the following format: XXXXNNN Where X is a character…
A: Answer :
Q: Write a MATLAB program (aq5.m) to do the following in the specified order: (a) Use MATLAB's…
A: As per our guidelines, we are supposed to answer only 1st three parts. Kindly repost the remaining…
Q: I have this condition in sql and php it searches things but when there is space or line break in…
A: THe solution for the above given question is given below:
Q: Hello I just need help creating test cases for the functions below. examples: assertequal,…
A: Lets go step by step 1) Validate_name() True:- false:- 2)validate_company True:- False:-…
Q: Call the function from a PROCEDURE. Name the procedure findDiscPrice. Allow the user to pass a…
A: Create table for customer Since you are not giving table for function, I am creating a table. BEGIN…
Q: In mySQL, the WHERE clause is not used in which types of statements? A. SELECT B. DELETE C. INSERT…
A: In MySQL, WHERE clause is not supported by INSERT statement. The syntax of the given statements are:…
Q: 1- Use edit command to edit the det function, then try to edit sin function. State the difference.…
A: 1 ) If type edit dct in matlab you will get a m file which is the matlab code for dct function . You…
Q: In what circumstances does it make sense to assume that two select statements from the same database…
A: Introduction: Union compatibility is achieved when both tables contain the same amount of attributes…
Q: 9.use the data which is given as shown bwlow to Write a SQL statement to display the most expensive…
A: Answer :-- SELECT product_id,product_name,price from product where price = (Select MAX(price) From…
Q: C++ What is the output? int columns; int rows; for (rows = 0; rows < 2; ++rows) { for…
A: Given: C++ What is the output? int columns;int rows;for (rows = 0; rows < 2; ++rows) {…
Q: The following program includes WAW (write-after-write) dependencies. Show these.
A: Dependent on WAW, RAW and WAR. (1.) WAW Dependence: The complete WAW form is Write after writing.…
Q: The result of the ceil command of 7.2 is a/-7 b/7 G/8
A: answer is given below:
Q: can result by executing Tollowing SQL statements nswer in word then upload it): 1. SELECT S.Fname,…
A:
Q: (uata types are HOT ITCUCU). SalesPerson (salesPersonId, salespersonLastName, dateOfBirth, gender,…
A: Solution: 3.1) 3.1.1) SQL Query: SELECT salesPersonId, salespersonLastname from…
Q: Write a script that declares a variable and sets it to the count of all products in the Products…
A: Write a script that declares a variable and sets it to the count of all products in the Products…
Q: Write a Java program to issue the following SELECT statements and display all the columns retrieved,…
A: Retrieving And Modifying Values From Result Set Explanation From Following Example The following…
Q: Problem #1: Write a program that prompts the user to enter a client's account ID, then displays the…
A: The Java if statement is used to test the condition
Q: PL/SQL Display the first name and salary*10000 of all employees who works for department 50. Handle…
A: SET SERVEROUTPUT ON; DECLARE N NUMBER:=0; SALARY NUMBER:=0; CURSOR EMP IS SELECT…
Q: Question: Call the function from a PROCEDURE. Name the procedure findDiscPrice. Allow the user…
A: Call the function from a PROCEDURE. Name the procedure findDiscPrice. Allow the user to pass a…
Q: Which of the statement is false and why? i) pCount = &count; ii) *pCount = &count; iii) int* pCount…
A: Answer is option 2 *pCount = &count; Because * appears before the pointer variable.
Q: write XPath expressions in an R Notebook that evaluate the following queries; display the results in…
A: According our policy we give answer first three…
Q: Execute the following statements using MYSQL: 1. Create a Trigger "trigger_regno" for the salesman…
A: Answer: our instruction is answer the first three part from the first part and . I have given…
Q: A WriteOnly attribute may be implemented automatically. True vs. False
A: Given that: A Write Only attribute may be implemented automatically. True vs. False
Q: Create the following c functions: - void acceptSubscribers(Subscriber *, int size); // accept all…
A: According to the question, we have to create the c functions for the desired output. Note : we will…
Q: means that all services required by the user should be defined Select one: O a. Readable O b.…
A: check the answer in second step
Q: What is a constant that contains a single character enclosed within single quotes?
A: Correct answer is "Character" Explanation:- A character literal contains a sequence of characters or…
Q: Write a stored procedure named displayCountryMessage(). The displayCountryMessage () should…
A: Here below, i am writing a stored procedure :…
Q: Which of the following is not part of a standard SQL statement? a. Importable programming…
A: Given : mcq given as Which of the following is not part of a standard SQL statement? with options a…
Q: When regularization parameter A is set to large value. this cause underfitting the data. (A) True B)…
A: When regularization parameterλ is set to large value,this cause underfitting the data . A TRUE B…
Q: Sid sname Ricky Ellen MaryLou Ellen Table name: Courses Primary key: cid cid cname 1 ICS Finance…
A: The table Students has two attributes. One is sid (i.e. Student ID) and another one is sname (i.e.…
Q: What is the output of the given anonymous block? Refer to the EMP table: EMP_ID DEPTID SALARY 101 10…
A: Here we have to find what's average salary for given query.
Q: write SQL code that involve calculation by using if else statement
A: Syntax- IF (Expression ) BEGIN -- if expression is true True Statements; END ELSE BEGIN…
Q: What is meant by the term null value control ?
A: To be determined: Define the term null value control
Q: Question 7 (1 point) Saved Multiple Choice, Select One: In C, what is the value of False null Any…
A: NOTE :- As per our Guilelines i can only provide the answers of first three questions asked.…
Q: This is a java data structures question Indicate if the java.util.PriorityQueue method returns an…
A: The problem is based on the basics of java data structures.
Q: ou need to use Java to connect with the mysql and create a simple mysql system. Databases "POS"…
A: Below is the required java program. Program Approach: Import necessary packages to get the SQL…
Step by step
Solved in 2 steps
- Write a SQL statement that display the emp id , dep id, dep name Output showCan you Write the SQL statements to do the following please : 1. Display the artist's name from the Artist table in uppercase.2. Display the person's Key, First Name, Last Name and Area Code (first 3 digits of the phone number) from the Person table and label the output as such. 3. Display the current date and five days from that date.4. Display the difference between the current date and the PurchaseDate of the Inventory.5. Display the day of the week, in words, on which the Purchases were place. (Hint: Use datepart dw.)6. Display the minimum, maximum, sum, average, count fields, count records for the SaleDetailPrice from the SaleDetail table. Appropriately label the output.7. Display the count of phone numbers in the Person table.8. Display the record count of the Person table.9.use the data which is given as shown bwlow to Write a SQL statement to display the most expensive and the cheapest product (list price). Display product ID, product name, and the list price.
- 1. Write a SQL function that accepts a principal mortgage amount, an annual percentage rate (APR), and the number of years a mortgage will be paid back over. Calculate the associated monthly mortgage payment according to the following annuity formula: ? = ?( ? + (? /((1+?)^? ( −1 )) where: A = Monthly Payment Amount P = Principle (Initial) Mortgage Amount i = APR / 12 = Monthly Interest Rate n = years * 12 = Total Number of Payments Be sure to specify that data types of the input arguments have enough significant digits to account for realistic mortgage amounts (as large as in the millions of dollars) and APRs (down to the sixth decimal place will be sufficient).In what circumstances does it make sense to assume that two select statements from the same database are consistent with one another?Saira owns a small business and she frequently makes transactions. Sometimes she makes payments and other times payments are credited in her account. One of her customer Tania purchased a product and credited payment while another payment by Saira was in progress. Now the sequence of transaction is as follows:1. Tania’s account read amount in saira’s account2. Saira’s account read amount in saira’s account3. Tania added Rs. 500/- in original amount (that was lets suppose Rs. 60,000/ 4. Saira’s account subtracted Rs. 2000/- that she debited in someone else’s account form the original amount (that was Rs. 60,000) 5. Tania’s account committed the transaction 6. Saira’s account committed the transaction Draw the above-mentioned sequence in form of a table and see if there is a problem. What this problem is called and how can we avoid such kind of problem? Propose some solutions (at least two) and then explain which one is better and why?
- Create a SQL program where a user can check all the books online. They can also order a book online, in which case the inventory will get updated, and the book count will reduce.Write a SQL function that accepts a principal mortgage amount, an annual percentage rate (APR), and the number of years a mortgage will be paid back over. Calculate the associated monthly mortgage payment according to the following annuity formula: ? = ? ? + ? (1+?) ? ( −1 ) where: A = Monthly Payment Amount P = Principle (Initial) Mortgage Amount i = APR / 12 = Monthly Interest Rate n = years * 12 = Total Number of Payments Be sure to specify that data types of the input arguments have enough significant digits to account for realistic mortgage amounts (as large as inWrite a SQL function that accepts a principal mortgage amount, an annual percentage rate (APR), and the number of years a mortgage will be paid back over. Calculate the associated monthly mortgage payment according to the following annuity formula: ? = ? ? + ? (1+?) ? ( −1 ) where: A = Monthly Payment Amount P = Principle (Initial) Mortgage Amount i = APR / 12 = Monthly Interest Rate n = years * 12 = Total Number of Payments Be sure to specify that data types of the input arguments have enough significant digits to account for realistic mortgage amounts (as large as in the millions of dollars) and APRs (down to the sixth decimal place will be sufficient). You must name your function: __monthlyPayment Where is your last name and is the day of the month you were born. This naming convention is merely meant to make the grading process easier, so that all of the functions, procedures, and triggers have unique names. How would I invoke this function? Below is an example of my function…
- Why would you assume that two select statements from the same database are consistent?Use My Guitar Shop Database Use Microsoft SQL Server Write a script that includes these statements coded as a transaction: INSERT Orders VALUES (3, GETDATE(), '10.00', '0.00', NULL, 4, 'American Express', '378282246310005', '04/2019', 4); SET @OrderID = @@IDENTITY; INSERT OrderItems VALUES (@OrderID, 6, '415.00', '161.85', 1); INSERT OrderItems VALUES (@OrderID, 1, '699.00', '209.70', 1); Here, the @@IDENTITY variable is used to get the order ID value that’s automatically generated when the first INSERT statement inserts an order. If these statements execute successfully, commit the changes. Otherwise, roll back the changes.Execute the following statements using MYSQL: 1.Create a Trigger "trigger regno" for the salesman table (Before INSERT) set the value as O for the experience > 7 and evaluate it. Also write the syntax to drop the Trigger "trigger regno* 2. Insert a value for Customer table (#Last 3 digit of your register no, #Your name, Vellore, 55, 010). Insert a value for salesman table ("10", #Your name, 5, 4000). 3. List out the number of customers in each city by arranging them from low to high. ( 4. Select all the salesman who's work experience is between 4 and 8.