Derived tables

इंटरमीडिएट SQL Server

Ginger Grant

Instructor

Derived tables क्या हैं?

  • ऐसी क्वेरी जिसे अस्थायी टेबल जैसा माना जाता है
  • हमेशा मुख्य क्वेरी के अंदर रहती है
  • FROM क्लॉज में लिखी जाती हैं
  • इनमें इंटरमीडिएट कैलकुलेशन हो सकते हैं जिनका उपयोग मुख्य क्वेरी में हो, या मुख्य क्वेरी से अलग joins हो सकते हैं
इंटरमीडिएट SQL Server

T-SQL में Derived tables

SELECT a.* FROM Kidney a
-- This derived table computes the Average age joined to the actual table 
JOIN (SELECT AVG(Age) AS AverageAge 
      FROM Kidney) b 
ON a.Age = b.AverageAge
इंटरमीडिएट SQL Server

अभ्यास करते हैं!

इंटरमीडिएट SQL Server

Preparing Video For Download...