Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql with as

WITH temporaryTable (averageValue) as
    (SELECT avg(Attr1)
    FROM Table)
    SELECT Attr1
    FROM Table, temporaryTable
    WHERE Table.Attr1 > temporaryTable.averageValue;
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #sql
ADD COMMENT
Topic
Name
2+6 =