Question

Please can I have the solution to this problem? Exercise 25.4 Briefly answer the following questions:...

Please can I have the solution to this problem?

Exercise 25.4 Briefly answer the following questions:
1. What is the difIerences between the WINDOW clause and the GROUP BY clause'?
2. Give an example query that cannot be expressed in SQL without the WINDOW clause but that can be expressed with the WINDOW clause.
:3. What is the fTCLrne of a window in SQL:19997
4. Consider the fonowing simple GROUP BY query.
SELECT FROM WHERE GROUP BY
T.year, SUM (S.sales) Sales 5, Tilnes T S.tilneid='T.timeid T.year
Can you write this query in SQL:1999 without using a GROUP BY cIa.use? (Hint: Use the SQL:1999 WINDOW clause.)

Thanks

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

can you just check third and fourth bit I think the question is not set proper kikindly write it clearly to under. Thank you

Add a comment
Know the answer?
Add Answer to:
Please can I have the solution to this problem? Exercise 25.4 Briefly answer the following questions:...
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
  • I have this answer: SELECT c.Code, count(*) FROM country c JOIN countrylanguage cl ON c.Code =...

    I have this answer: SELECT c.Code, count(*) FROM country c JOIN countrylanguage cl ON c.Code = cl.CountryCode GROUP BY cl.CountryCode HAVING COUNT(*) > 1 LIMIT 10; From a previous question I asked which was: Using the database you installed from the link below, provide an example query using both a group by clause and a having clause. Show no more than ten rows of your query result. Discuss if the query you wrote can be rewritten without those clauses. The...

  • I have this answer: SELECT c.Code, count(*) FROM country c JOIN countrylanguage cl ON c.Code = cl.CountryCode GROUP BY c...

    I have this answer: SELECT c.Code, count(*) FROM country c JOIN countrylanguage cl ON c.Code = cl.CountryCode GROUP BY cl.CountryCode HAVING COUNT(*) > 1 LIMIT 10; From a previous question I asked which was: Using the database you installed from the link below, provide an example query using both a group by clause and a having clause. Show no more than ten rows of your query result. Discuss if the query you wrote can be rewritten without those clauses. The...

  • Top of Form Q1 Which of the following is a valid aggregate function in SQL? Check...

    Top of Form Q1 Which of the following is a valid aggregate function in SQL? Check only those that apply. Question 1 options: AVG LEAST COUNT MIN MOST SUM Q2 Which of the following aggregate functions will only operate on a numeric value expression? Check only those that apply: Question 2 options: MIN MAX AVG COUNT SUM Q3 When applying DISTINCT to the value being calculated in an aggregate function like COUNT, what is the effect? SELECT COUNT(DISTINCT StreetName) FROM...

  • Summarize these pages in your own style and you have to include in your report some...

    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...

  • Can I have the full solution asap please thanks! 1. To play a certain lottery, the...

    Can I have the full solution asap please thanks! 1. To play a certain lottery, the player chooses 5 numbers from between 1 to 50 without replacement and chooses a money ball from between 1 to 36. Without replacement means once a number has been picked, it cannot be picked again. The order of the first 5 numbers doesn't matter. How many ticket combinations are there (give in terms of Cn() factors)? 2. A box contains 10 light bulbs. It...

  • please help with ALL a-g thanks in advance:) HW 6.1. Briefly answer the following questions. a)...

    please help with ALL a-g thanks in advance:) HW 6.1. Briefly answer the following questions. a) A clock is mounted on the wall. As you look at it, what is the direction of the angular velocity vector of the second hand? What is the value of the angular acceleration of the second hand? b) If the angular acceleration of a rigid body is zero, what is the functional form of the angular velocity? c) What if another planet the same...

  • K3 K3 School of CS & IT, RMIT Introduction to Database Systems Tutorial Sheet 2: SQL...

    K3 K3 School of CS & IT, RMIT Introduction to Database Systems Tutorial Sheet 2: SQL The database below is for a department store, and describes stock, staff, clients, and sales. Each question in this tutorial concerns this "store" database. SALE ITEM ITEM STAFF NUMSOLD CLIENT SDATE TYPE DESCRIP PRICE K3 Simon 6 Clark 19980311 Knife set $17.95 K11 Simon Cilla 19980121 K5 Ladle $6.95 K11 Simon Cilla 19980123 K11 Scraper $0.95 L12 Sorcha 5 Charles 19971130 L12 Rack $22.95...

  • i need the solution in pseudo code please. 4 Dynamic Programmii Consider the following problem based on the transf...

    i need the solution in pseudo code please. 4 Dynamic Programmii Consider the following problem based on the transformation of a sequence (or collection) of coloured disks. Assume that you have a very large collection of disks, each with an integer value representing the disk colour from the range [0, cl. For example, the colour mapping might be: O-red, 1-yellow, 2-blue, 3-pink,. c-black For a given sequence of coloured disks eg.,0,1,2,3,4), at each time step (or iteration) you are only...

  • Can you please answer questions from Exercise 11-7 E through L and questions from Exercise 11-8...

    Can you please answer questions from Exercise 11-7 E through L and questions from Exercise 11-8 A through E b. The sum of two fair dice being 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, or 12 c. A coin landing heads or tails when flipped d. A coin landing heads or tails when spun on its side c. A tennis racquet landing with the label up or down when spun on its end f. Your grade in...

  • can u please on matlab, i have the solution on paper. [30pts] Write a robust, efficient...

    can u please on matlab, i have the solution on paper. [30pts] Write a robust, efficient MATLAB script to find the eigenvalues and eigenvectors of a 2 x2 matrix input by the user. You should test out your script using the following matrices. 1::)-::) 3 2 3 1 B. 1 2 C 2 3 A- D- 4 1 2 4 4 8 -3 8 You may not use any special MATLAB tools. Instead, work symbolically and derive general expressions for...

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
ADVERTISEMENT