Question

What is the result of following queries? 26) SELECT SUBSTR('The World',3,4) "Substring" FROM DUAL; 27) SELECT...

What is the result of following queries?

26) SELECT SUBSTR('The World',3,4) "Substring" FROM DUAL;

27) SELECT LENGTH ('PROGRAM') "Length in bytes" FROM DUAL;

28) SELECT LEAST (150, 134, 70) "Least" from dual;

0 0
Add a comment Improve this question Transcribed image text
Answer #1

26) SELECT SUBSTR('The World',3,4) "Substring" FROM DUAL; -> e Wo ( it will fetch 4 chars from 3rd position)

27) SELECT LENGTH ('PROGRAM') "Length in bytes" FROM DUAL ; -> 7 as it has 7 chars

28) SELECT LEAST (150, 134, 70) "Least" from dual; -> 70 as 70 it smallest number

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me

Add a comment
Know the answer?
Add Answer to:
What is the result of following queries? 26) SELECT SUBSTR('The World',3,4) "Substring" FROM DUAL; 27) SELECT...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider EMPLOYEE database. Create the database and run the following queries and write the result you...

    Consider EMPLOYEE database. Create the database and run the following queries and write the result you get. What would be the result of the following query (please create the resulting table will all the columns and rows)? SELECT                      D.Dname, E.Lname, P.Pname FROM                         DEPARTMENT D, EMPLOYEE E, WORKS_ON W, PROJECT P WHERE                      D.Dnumber=E.Dno AND E.Ssn=W.Essn AND W.Pno=P.Pnumber ORDER BY                 D.Dname DESC, E.Lname DESC;

  • ,,1. Which of the following statments are valid C++ statements? A) cout << "Hello World" :...

    ,,1. Which of the following statments are valid C++ statements? A) cout << "Hello World" : B) cout << Hello World; C) cout << "Hello " << "World" ; D) cout << "Hello" << "World" ; 2. What is the difference between the literals 'A' and "A"? ,3. Read the input from user; Check for valid entries If input is invalid: print an error message; else: calculate the result and print to the console; exit; The code snippet above may...

  • 26. Which of the following is NOT a general guideline for displaying tables and lists? Select...

    26. Which of the following is NOT a general guideline for displaying tables and lists? Select one: a. Labels should be separated from other information by using highlighting. b. Columns should have at least two spaces between them. c. Right-justify textual data, and use a short line length. d. Similar information displayed in multiple columns should be sorted vertically. e. Avoid overly fancy fonts.

  • QUESTION 27 The SET command is used in which statement UPDATE SELECT DISTINCT DELETE FROM INSERT...

    QUESTION 27 The SET command is used in which statement UPDATE SELECT DISTINCT DELETE FROM INSERT VALUES QUESTION 28 Which view would you use to see only the tables you have created ALL_TABLES USER_TABLES USER_TABS ALL_OBJECTS QUESTION 29 Which command should you use to write logical units of work to disk permanently SAVEWORK COMMIT ROLLBACK INSERT QUESTION 30 A Top-N Analysis is capable of ranking a top or bottom set of results. True False QUESTION 31 If you are performing...

  • 26 What are three important functions of the kidney and two disease conditions that result in...

    26 What are three important functions of the kidney and two disease conditions that result in loss of at least one of these functions? 27 What is idiopathic pulmonary fibrosis? How is this condition diagnosed, what is the prognosis and what types of treatments are currently available? How might nuclear medicine play a role in helping to decrease the mortality from this disease especially in the elderly? 8. What causes muscles and other associated tissues to atrophy with immobilization and...

  • # After the if statement that follows is executed, what will the value of $discount_amount be?...

    # After the if statement that follows is executed, what will the value of $discount_amount be? $discount_amount; $order_total = 200; if ($order_total > 200) { $discount_amount = $order_total * .3; } else if ($order_total > 100) { $discount_amount = $order_total * .2; } else { $discount_amount = $order_total * .1; }         2         20         40         60 # To open a file in PHP, you use the _________ function.         fopen()        ...

  • What is wrong with the following query? select firstname , lastname from Customer intersect select productid...

    What is wrong with the following query? select firstname , lastname from Customer intersect select productid , price , quantity from order_detail join orders on order_detail.orderid = orders.orderid; Group of answer choices 1 Nothing is wrong with this query 2 When working with set operators both queries have to contain the same number of columns. 3 The wrong set operator is being used. This query should use EXCEPT. 4 The wrong set operator is being used. This query should use...

  • Use the following information for questions 25-26. Show your calculations and reasoning to the right side...

    Use the following information for questions 25-26. Show your calculations and reasoning to the right side of the question, then select one answer Food-specific Attack Rates of Gastroenteritis Persons Eating Food Item Persons Not Eating Food Item Food Item potato salad hamburger baked beans Total ML Attack Rate(%) 100 88 126 90 99 76 55 34 Totall Attack Rate (%) 33 5 3116 10 S 71 48 milk 25. The attack rate for those persons who ate baked beans is...

  • Consider the following linear program: Min 3A + 48 +28 26 AB 20 2. Select the...

    Consider the following linear program: Min 3A + 48 +28 26 AB 20 2. Select the correct graph that shows the feasible region and the optimal solution for the problem. 0 (1) 10 8 Optimal Solution: A-2, B-2 - Optional Solution And, BM A (iv) Optimal Solution: A-0, B- Optimal Solution: A=2, B-2 b. What is the value of the objective function? If required, round your answer to one decimal place. Objective function value:

  • Using the following table what will result from the SQL command "SELECT Item SKU, Price? Item...

    Using the following table what will result from the SQL command "SELECT Item SKU, Price? Item SKU Price Manufacturer 651 $ 5.00 Nike 546 $ 4.00 Nike 876 $ 5.00 Under Armour 165 $ 10.00 Addidas All data in the 1st and 2nd columns for the first and last row. ОООО All rows but only columns with numerical data. All rows but only the 1st and 2nd column. All data in the table.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT