久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='uSmjT'></bdo><ul id='uSmjT'></ul>

        <small id='uSmjT'></small><noframes id='uSmjT'>

      1. <legend id='uSmjT'><style id='uSmjT'><dir id='uSmjT'><q id='uSmjT'></q></dir></style></legend>
      2. <i id='uSmjT'><tr id='uSmjT'><dt id='uSmjT'><q id='uSmjT'><span id='uSmjT'><b id='uSmjT'><form id='uSmjT'><ins id='uSmjT'></ins><ul id='uSmjT'></ul><sub id='uSmjT'></sub></form><legend id='uSmjT'></legend><bdo id='uSmjT'><pre id='uSmjT'><center id='uSmjT'></center></pre></bdo></b><th id='uSmjT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='uSmjT'><tfoot id='uSmjT'></tfoot><dl id='uSmjT'><fieldset id='uSmjT'></fieldset></dl></div>
      3. <tfoot id='uSmjT'></tfoot>

        嵌套聚合函數(shù)

        Nested aggregate functions(嵌套聚合函數(shù))

        • <bdo id='hmYVe'></bdo><ul id='hmYVe'></ul>

            <tbody id='hmYVe'></tbody>

          <small id='hmYVe'></small><noframes id='hmYVe'>

          1. <legend id='hmYVe'><style id='hmYVe'><dir id='hmYVe'><q id='hmYVe'></q></dir></style></legend>

                  <tfoot id='hmYVe'></tfoot>
                • <i id='hmYVe'><tr id='hmYVe'><dt id='hmYVe'><q id='hmYVe'><span id='hmYVe'><b id='hmYVe'><form id='hmYVe'><ins id='hmYVe'></ins><ul id='hmYVe'></ul><sub id='hmYVe'></sub></form><legend id='hmYVe'></legend><bdo id='hmYVe'><pre id='hmYVe'><center id='hmYVe'></center></pre></bdo></b><th id='hmYVe'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='hmYVe'><tfoot id='hmYVe'></tfoot><dl id='hmYVe'><fieldset id='hmYVe'></fieldset></dl></div>
                  本文介紹了嵌套聚合函數(shù)的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..
                  SELECT MAX(AVG(SYSDATE - inv_date)) FROM invoice;
                  

                  這個(gè)查詢有什么問(wèn)題?

                  Avg 返回單個(gè)值 否Max 需要一個(gè)小組來(lái)處理,所以它不會(huì)執(zhí)行并給出錯(cuò)誤?請(qǐng)解釋工作這是一個(gè)不會(huì)執(zhí)行的測(cè)驗(yàn)問(wèn)題 我想知道它不執(zhí)行的原因 我不知道允許嵌套聚合函數(shù)嗎?

                  Avg returns single value no Max requires a group to work on so it dosent execute and give error? Please explain working It's a quiz question according to which it won't execute I want to know the reason why it dosent execute I can't figure it out nested aggregate functions are allowed right?

                  推薦答案

                  Oracle 允許嵌套聚合函數(shù)(參見(jiàn) 文檔).

                  Oracle allows nested aggregation functions (see the documentation).

                  然而,它需要一個(gè)GROUP BY.所以這是允許的:

                  However, it requires a GROUP BY. So this is allowed:

                  SELECT MAX(AVG(SYSDATE - inv_date))
                  FROM invoice
                  GROUP BY Cust_ID;
                  

                  基本上,這是一個(gè)捷徑:

                  Basically, this is a short-cut for:

                  SELECT MAX(x)
                  FROM (SELECT AVG(SYSDATE - inv_date) as x
                        FROM invoice
                         GROUP BY Cust_Id
                       ) i;
                  

                  不過(guò),就您而言,沒(méi)有 GROUP BY.Oracle 不允許在沒(méi)有 GROUP BY 的情況下嵌套 GROUP BY.

                  In your case, though, there is no GROUP BY. Oracle doesn't allow nested GROUP BY without the GROUP BY.

                  如果您好奇,我不喜歡這種擴(kuò)展功能.我不認(rèn)為它實(shí)際上解決了問(wèn)題.

                  And if you are curious, I'm not a fan of this extended functionality. I don't see that it actually solves a problem.

                  這篇關(guān)于嵌套聚合函數(shù)的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產(chǎn)品、類別和元數(shù)據(jù)的 SQL 查詢 woocommerce/wordpress)
                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數(shù)據(jù)庫(kù)列表和 SQL Server 實(shí)例使用的空間嗎?) - IT屋-程序員軟件開(kāi)發(fā)
                  How to create a login to a SQL Server instance?(如何創(chuàng)建對(duì) SQL Server 實(shí)例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過(guò)注冊(cè)表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會(huì)出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯(cuò)誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)

                      <tbody id='tDfvT'></tbody>

                        • <small id='tDfvT'></small><noframes id='tDfvT'>

                            <bdo id='tDfvT'></bdo><ul id='tDfvT'></ul>

                            <tfoot id='tDfvT'></tfoot>

                            <i id='tDfvT'><tr id='tDfvT'><dt id='tDfvT'><q id='tDfvT'><span id='tDfvT'><b id='tDfvT'><form id='tDfvT'><ins id='tDfvT'></ins><ul id='tDfvT'></ul><sub id='tDfvT'></sub></form><legend id='tDfvT'></legend><bdo id='tDfvT'><pre id='tDfvT'><center id='tDfvT'></center></pre></bdo></b><th id='tDfvT'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tDfvT'><tfoot id='tDfvT'></tfoot><dl id='tDfvT'><fieldset id='tDfvT'></fieldset></dl></div>
                            <legend id='tDfvT'><style id='tDfvT'><dir id='tDfvT'><q id='tDfvT'></q></dir></style></legend>
                            主站蜘蛛池模板: 久久久久久免费免费 | 伊人精品国产 | 国产精品成人一区二区三区夜夜夜 | 97超碰成人 | 黄色一级大片在线免费看产 | 精品美女视频在线观看免费软件 | 久久久精品一区二区三区 | 天天综合日日夜夜 | 日韩一级在线 | 中文字幕中文字幕 | 亚洲国产一区二区视频 | 国产91在线 | 中日 | 97国产一区二区 | 91精品国产综合久久久密闭 | 日韩综合在线 | 99久久精品国产一区二区三区 | 久久综合国产精品 | 日本高清视频在线播放 | 久久久视频在线 | 精品久久久久久亚洲国产800 | 亚洲午夜精品一区二区三区他趣 | 亚洲国产成人精品久久久国产成人一区 | 视频一区二区三区在线观看 | 久久久久久久国产精品影院 | 狠狠av | 毛片a | 国产一级片免费视频 | 亚洲一区二区三区在线视频 | 免费视频中文字幕 | 精品日韩一区二区 | 91久操视频 | 精品亚洲一区二区三区四区五区高 | 色精品视频 | 亚洲精品福利视频 | 亚洲久草 | 免费观看成人av | 成人精品毛片 | 日韩中文字幕一区 | 资源首页二三区 | 国产精品国产成人国产三级 | 午夜精品三区 |